11-17-2008 01:53 PM
I am attaching 2 codes; one is a Quad Detector VI and the other a Kalman filter VI. I want to know how can I make the output of Quad Detector as the input of Kalman Filter.
Quad equations: X = [(B+D) - (A+C)] / A+B+C+D ; Y = [(A+B) - (C+D)] / A+B+C+D
Kalman filter equation: Yn = Xn + a * Yn-1 where Xn is the input.
11-17-2008 03:50 PM
On the two vi's ... go the symbol in the upper right hand part of the screen which shows an icon for the vi. Right click on it and select "show connector". On the Quad Vi, click one of the right hand connector boxes and then click the output indicator on your Quad front panel. On the other vi...do the same thing except connect one of the left hand connectors and then click on the control which inputs the input data for the vi.
Then in the Quad vi...open the block diagram, and select add a vi from the bottom of the function palet...add the Kalman vi...
right click on the Kalman vi...set the show as icon to off ... that will let you look at all of the i/o for the Kalman filter vi. You should see your Quad input ...connect the dots and run...put whatever outputs you want on the Kalman front panel...put them in loops if you wish...but basically that I think is what you are trying to do.
You could also add the Quad vi as a part of the Kalman filter block diagram...which might actually be a better idea.
Hope that helps.