LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

executing all levels of a stacked sequence structure at the same time

I have a vi that has 5 seperate 'tabs' in a stacked sequence structure. I'm needing all 5 tabs to be executing and collecting data at the same time, not just when one tab is active. It's being used to control a test table, and one of the tabs is a data collection tab, which needs to pull current values from three of the four other tabs constantly. Any help would be appreciated.

thank you,
J. Morgan
0 Kudos
Message 1 of 3
(2,180 Views)
The only point of a sequence structure is to execute sequentially. If the frames could execute in parallel, it wouldn't be a sequence structure;). You could have your code in five different while loops or in five different subVIs (with no data dependency between them) in the same frame of a sequence.
Message 2 of 3
(2,175 Views)
If the code is a simple "run through once" type code, you could place 5 single frames on your block diagram and link them with a single wire input. Take a constant or a control and connect it as an input to your 5 frames to use as a software type trigger.

Also, understand that unless you have multiple processors your code can never execute truly "simultaneously"...but more of a time-slice execution where the CPU does pieces of each operation in order.

-Brett
0 Kudos
Message 3 of 3
(2,152 Views)