Functions Palette/Programming/Structures: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
| Line 2: | Line 2: | ||
Structures have three uses. They either: | Structures have three uses. They either: | ||
# Control the | # Control the execution between blocks of code ([[Functions Palette/Programming/Structures/Flat Sequence Structure|Flat Sequence Structure]], [[Functions Palette/Programming/Structures/Stacked Sequence Structure|Stacked Sequence Structure]], [[Functions Palette/Programming/Structures/In Place Element Structure|In Place Element Structures]], [[Functions Palette/Programming/Structures/Timed Structures/Timed Sequence|Timed Sequence]]) | ||
# Allow a choice between different blocks of code to execute ([[Functions Palette/Programming/Structures/Case Structure|Case Structures]], [[Functions Palette/Programming/Structures/Event Structure|Event Structures]], [[Functions Palette/Programming/Structures/Diagram Disable Structure|Diagram Disable Structures]], [[Functions Palette/Programming/Structures/Conditional Disable Structure|Conditional Disable Structures]]) | # Allow a choice between different blocks of code to execute ([[Functions Palette/Programming/Structures/Case Structure|Case Structures]], [[Functions Palette/Programming/Structures/Event Structure|Event Structures]], [[Functions Palette/Programming/Structures/Diagram Disable Structure|Diagram Disable Structures]], [[Functions Palette/Programming/Structures/Conditional Disable Structure|Conditional Disable Structures]]) | ||
# Allow code to repeat execution ([[Functions Palette/Programming/Structures/For Loop|For Loops]], [[Functions Palette/Programming/Structures/While Loop|While Loops]], [[Functions Palette/Programming/Structures/Timed Structures/Timed Loop|Timed Loops]]) | # Allow code to repeat execution ([[Functions Palette/Programming/Structures/For Loop|For Loops]], [[Functions Palette/Programming/Structures/While Loop|While Loops]], [[Functions Palette/Programming/Structures/Timed Structures/Timed Loop|Timed Loops]]) | ||
Revision as of 21:50, 23 July 2019
A Structure is a construct that surrounds other programming elements. It divides the block diagram into a hierarchy of sub-diagrams. Some structures only contain one sub-diagram, or frame, (i.e. For Loops, While Loops, In Place Element Structures, etc.). While others contain multiple sub-diagrams, or frames, (i.e. Case Structures, Event Structures, Diagram Disable Structures, and Conditional Disable Structures).
Structures have three uses. They either:
- Control the execution between blocks of code (Flat Sequence Structure, Stacked Sequence Structure, In Place Element Structures, Timed Sequence)
- Allow a choice between different blocks of code to execute (Case Structures, Event Structures, Diagram Disable Structures, Conditional Disable Structures)
- Allow code to repeat execution (For Loops, While Loops, Timed Loops)
The Stacked Sequence Structure is considered to be deprecated and has been removed from the Structures Palette since LabVIEW 20xx (version needed) although it is still functional to code upgraded from older versions.