LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing data from one sequence frame to another

I am using flat sequence structure. I need to pass data from 2nd sequence structure to 4th sequence structure (to be used in a loop), and 3rd from 5th (also a loop). Is there an more graceful way to do this than using wiring?

newbie
0 Kudos
Message 1 of 3
(2,835 Views)
There is nothing wrong with wires. Just pass the wires straight across the other sequence frames.

This is definitely the most "graceful" way to do this! 🙂
0 Kudos
Message 2 of 3
(2,829 Views)
I presume you mean the 2nd and 4th frame.
In general, it's best to use wires to move data around, in order not to disrupt the dataflow. If you keep your wiring clean, it shouldn't be a problem. If you don't want that, you have two options - you could use local variables (by right clicking on the terminal and selecting "create>>local variable"), which act like variables in other languages, but you should watch out for race conditions (writing to the same variable from two different places). The other option, if you have 7.0 and above, you can replace the flat structure with a stacked structure and right click on its edge to create a "sequence local" which allows you to transfer data between frames.

___________________
Try to take over the world!
0 Kudos
Message 3 of 3
(2,827 Views)