LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass parameters in a stacked sequence

I am trying to pass paremeter from one case of stacked sequence to another. It gives me a error message of undirected tunnel. Is there any way I can pass parameters from one stack to another stack within a stacked sequence without using the local variable?

0 Kudos
Message 1 of 8
(10,931 Views)
Right click and select add sequence local but really, really rethink what you are doing. A stacked sequence is horrible style. It should never be used.
0 Kudos
Message 2 of 8
(10,928 Views)

If I'm reading you right that's what a sequence local is for.  There is ALWAYS a better way to code than to use a sequence structure though.  Post your code and I'm sure we can help you remove that ugly, confusing thing. Smiley Wink

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 8
(10,926 Views)

You can right click on your stacked sequence and choose Replace with Flat Sequence to keep all your code and flow intact.  It'll be messy on your diagram at first but be much easier to see what you're doing and clean up.


--Using LV8.2, 8.6, 2009, 2012--
0 Kudos
Message 4 of 8
(10,910 Views)

Hi MansoorEE,

 

To pass data from one frame to another frame, a stacked sequence structure uses a "sequence local" terminal.

 

I would agree that using a sequence structure, especially a stacked sequence structure, should be avoided if possible. If you feel that you require a sequence structure, then a flat sequence structure would allow you, and others, to visualize the flow of data more easily.

 

If you search LabVIEW Help for "Stacked Sequence Structure" there is some great information about this that might be able to answer your question more thoroughly. Also, if you have any other issues, please let us know.

 

Best Regards,

 

Nathan Burke

Applications Engineer

National Instruments

0 Kudos
Message 5 of 8
(10,876 Views)

How else do you stop your code growing exponentially in size?

0 Kudos
Message 6 of 8
(55 Views)

@Muaddib0308 wrote:

How else do you stop your code growing exponentially in size?


The code will only grow exponentially if the time spent coding it grows exponentially.

My guess is that you really meant "How else do you stop your code getting very big?", but you like the word "exponentially" better than "big", despite the fact that you don't know what "exponentially" means (it doesn't mean "big" or "fast" or "a lot").

The answer is: Sub VIs.

0 Kudos
Message 7 of 8
(50 Views)

...

0 Kudos
Message 8 of 8
(48 Views)