LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sequence wiring

This problem has been bothering me for some time. If I have a flat sequence like the one shown in the attached vi and then I wire from the first frame straight across to the third frame and then "replace" with stacked sequence everything flows correctly... first frame to second frame and second to third. However, say I have a "stacked" sequence. How do I wire it so that it flows from the first to second to third frame without having to replace it with a flat sequence, wire, and then replace back to stacked sequence?
0 Kudos
Message 1 of 3
(2,667 Views)

First, extensive use of any type of sequence structure is usually not necessary. Using dataflow will accomplish the same thing. Wire up error in/error out clusters and if you don't have them in subVIs, add them.

Second, much better than a sequence structure is a state machine. This gives you much more flexibility and still allows you to control execution order.

Third, in a few situations, sequence structures can be used and if you want to pass data from one frame to another, ight click on the edge of a frame and select 'Add Sequence Local'.

0 Kudos
Message 2 of 3
(2,665 Views)

Hi,

Thanks for the great response, Dennis. Here is a KnowledgeBase article with more information about sequence structures. Happy coding!

Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 3 of 3
(2,636 Views)