LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to structure a control and its display in the same while loop and same display panel (instead of display panel and a seperate parameter-setting panel )

As you can see, I need to adjust the Target position to certain value (like 1068.88), the actual position is showing 1066.99.  What kind of flow control structure will achive this goal?
Notice the Labview example "Vibration analysis"  may shed some light on this issue.  Will someone give out a simpler code to show how it works?

The image “http://members.sparedollar.com/Yanflower1/spectro-Control.JPG” cannot be displayed, because it contains errors.
The image “http://members.sparedollar.com/Yanflower1/vibration-analysis.JPG” cannot be displayed, because it contains errors.
0 Kudos
Message 1 of 2
(2,467 Views)
lightblue,
 
Just to make sure we are on the same page, you would like to set the position, then monitor it.  Is that correct?  In that case, you might have a few options.  You could have a sequence that would set the position, and then a while loop that would monitor the position, however this wouldn't allow you to update anything else.  The other option would be to use parallel while loops, which would be similar to the parallel sequence structure you have below.  The only issue with this would be that if you are calling the driver from both loops, you could run into errors.  The Vibration Analysis.vi takes the setpoint, then calculates the actual available position, so it won't serve as a very good example, code-wise. 
 
Hope this helps!
Andy F.
 
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 2
(2,444 Views)