Stacked Sequence structure
|Owning palette(s)||Structures palette|
|Requires||Basic Development Environment|
A Stacked Sequence Structure, or SSS, is a set of subdiagrams represented by numerical indices that executes in order of the indices. Since LabVIEW 2014 it has been removed from the Structures palette and is considered deprecated. However, due to software in older versions of LabVIEW using the structure, it has not been removed from the development environment nor from the run-time engine. Therefore, the code will still show the stacked sequence structure where used.
In most cases better code organization (including SubVIs, proper design patterns, and/or frameworks) will negate the need for a stacked sequence structure. In some cases where sequential code execution is still necessary, it can be handled using the squencer pattern variation of the state machine design pattern. The exact reasoning why the sequencer pattern can be argued to be better is due to its extensibility and readability over the stacked sequence structure.
The stacked sequence structure has some severe disadvantages with the three most prominent:
- Passing data from "case" to "case" requires sequence locals. These are no-gos for code design.
- You can see only a fraction of code at one view. While this is true for other structures (case, event), the SSS does not provide the flexibility and power of the other structures.
- Speaking of flexibility: The SSS has a strict order of execution. If you want to swap "cases", you often have VERY much to do in the code to make it work. Adding new "cases" is also very often close to nightmare.
|History information is needed. What changes have occurred over previous versions?|
|More info to come.|
- Proper Use of Stacked Sequence Structure NI Forum Post
- Why structures function palette is not complete? NI Forum Post
- Is there anything wrong with sequence structures? NI Forum Post
- Sequencer Template by Chris Cilino, NI Forums
- "Proper use of stacked sequence structure", NI Forums. https://forums.ni.com/t5/LabVIEW/proper-use-of-stacked-sequence-structure/m-p/2844938/highlight/true?profile.language=en#M830647