LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sequence structure

How can I use a value, for example,in the second frame of a sequence structure when I have obtained this value in the first frame of my sequence?Do I have to go out of the sequence structure and then go back?
0 Kudos
Message 1 of 4
(2,861 Views)
If you click the right button of your mouse on the frame one of the options is 'Add sequence local'. If you feed your value in the first frame into this box, it will be available in all subsequent frames.
Randall Pursley
Message 2 of 4
(2,856 Views)
Thank you!
0 Kudos
Message 3 of 4
(2,851 Views)
Just a note: Stacked sequence structures are somewhat evil, so don't overuse them (I no longer use them at all!). They tend to encourage ugly code (Hidden code, backwards wires, no easy way to break out, encourage local variables, etc.).

Use a flat sequence or a statemachine type construct (Search the example browser for examples). Often, data flow alone is enough to keep things in check. 🙂
Message 4 of 4
(2,840 Views)