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 " ?
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-200604:54 PM
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.