LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to connect indicator to stacked sequence structure ?

hi all.
i  build stacked sequence structure with 10 frames. in frame number 5 i build "while loop". the program get out from "while loop" only if indicator X  equal "1".
my problem is: the indicator (this indicator from daq device) is locate out from the " stacked sequence structure ". how i can connect wire from this indicator to the wile loop, end ensure that every loop new data from will enter to the " stacked sequence structure "  ?
 
thanks

Message Edited by pro111 on 12-02-2006 02:00 PM

0 Kudos
Message 1 of 3
(2,989 Views)
If I have understood your question, you want to read the current value of an indicator
within a while loop inside of a sequence structure.  If you pass in a reference to the
indicator you can read its current value with a property node like the following.  If I haven't
understood your question, this is probably useless 😉

Matt




Message Edited by Matthew Williams on 12-02-2006 04:54 PM

0 Kudos
Message 2 of 3
(2,975 Views)
First of all, stacked sequences (especially with 10 frames and loops) are not hallmarks of good program design. The code will be hard to read, it is impossible to skip frames or exit early, and things step on each others toes as you noticed. Have a look at state machine architecture instead.
 
While it is not completely clear from your description how things are arranged, simplest would probably be to create a local variable of your indicator, change the local variable to read, and place it inside your while loop.
Message 3 of 3
(2,972 Views)