LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Kalman filter output

Hello,

 

I am attaching a labview file. There is a section in the VI that has Kalman filters (there are 2 of them). I want to know how can I read the output of the Kalman filters without it being passed onto another case structure.

 

Thanks

0 Kudos
Message 1 of 7
(4,521 Views)

Howdy PKBombay,

 

I took a look at your code and I believe you could replace the case structure with a Select function.  This VI is found in the Functions » Comparison palette.  However, if the case structure works, I'm curious why you would want to change it.  Try out this solution and let me know if you have any other questions.

Sincerely,

Chris G in AE
0 Kudos
Message 2 of 7
(4,487 Views)

Hello Chris,

 

Thanks for your reply and suggestion. I am now sending the code that I am actually working on. The output of the Kalman filter will actually become a Constant Gain controller which will actually control a 24MHz sine wave input between 26MHz and 22MHz. I want to know how will I obtain the Kalman Filter output.

 

Thanks

0 Kudos
Message 3 of 7
(4,463 Views)

PKBombay,

 

It sounds like you are interested in how to get the numerical data out of your Kalman filter.  There are two ways to accomplish this.  If you are not using this function as subVI, then all you have to do is right-click on the output of your filter and select "Create Indicator".  This will display the output on the block diagram.  If you'd like to use this VI as a subVI, then you can link that output to a terminal of the VI.   

 

If you literally just want the output of the Kalman filter VI to lead into some other bit of code, then all you have to do is wire the output to the input of whatever the next VI you need to process the information.  

 

Please let me know if this answer is not what you were looking for.  I'm not quite sure what you mean by "Obtain the output of the Kalman Filter", so please elaborate on that point if you post back.  Thanks, I look forward to your reply, and I hope this answer helps.  

Sincerely,

Chris G in AE
0 Kudos
Message 4 of 7
(4,415 Views)

Chris,

 

Thank yuo very much for your reply. I tried what u have suggested, but it doesnt look like I am going to get the result that way. Please take a look at the attachments. I want to make the output of the quad as the input of the Kalman filter VI. Now the issue over here is that the quad VI has 2 outputs and the Kalman filter has just 1 input. How do I go about obtaining the results now.

 

Much appreciated

Download All
0 Kudos
Message 5 of 7
(4,410 Views)

PKBombay,

 

It seems that you have the inputs and outputs configured properly for the Kalman filter VI, but you do not have the connector pain wired at all for the quad VI.  This is the first thing that I noticed about the two VIs that would affect their ability to be wired together.  However, you are going to have to figure out what inputs your Kalman VI needs and supply those - either through you Quad VI or by some other way of passing the parameters in. 

 

It seems that you are missing the fundamental concept of data flow.  Please take a look at the Learn LabVIEW in 3 Hours tutorial and let me know if you still have questions.

Sincerely,

Chris G in AE
0 Kudos
Message 6 of 7
(4,382 Views)
Dou you know how to merge an induction motor with kalman filter in matlab. If you have answer, reply me.
0 Kudos
Message 7 of 7
(4,101 Views)