Functions Palette/Programming/Structures: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
| Line 28: | Line 28: | ||
}} | }} | ||
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. [[ | 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 Loop structure|For Loops]], [[While Loop structure|While Loops]], [[In Place Element structure|In Place Element Structures]], etc.). While others contain multiple sub-diagrams, or frames, (i.e. [[Case structure|Case Structures]], [[Event structure|Event Structures]], [[Diagram Disable structure|Diagram Disable Structures]], and [[Conditional Disable structure|Conditional Disable Structures]]). | ||
Structures have three uses. They either: | Structures have three uses. They either: | ||
# Control the execution between blocks of code ([Flat Sequence | # Control the execution between blocks of code ([Flat Sequence structure|Flat Sequence Structure]], [[Stacked Sequence structure|Stacked Sequence Structure]], [[In Place Element structure|In Place Element Structures]], [[Timed Sequence structure|Timed Sequence]]) | ||
# Allow a choice between different blocks of code to execute ([[Case | # Allow a choice between different blocks of code to execute ([[Case structure|Case Structures]], [[Event structure|Event Structures]], [[Diagram Disable structure|Diagram Disable Structures]], [[Conditional Disable structure|Conditional Disable Structures]]) | ||
# Allow code to repeat execution ([[For Loop | # Allow code to repeat execution ([[For Loop structure|For Loops]], [[While Loop structure|While Loops]], [[Timed Loop structure|Timed Loops]]) | ||
== Subpalettes == | == Subpalettes == | ||
| Line 52: | Line 52: | ||
! Name | ! Name | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - For Loop.png|frameless|border|For Loop|link=For Loop | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - For Loop.png|frameless|border|For Loop|link=For Loop structure]] | ||
| [[For Loop | | [[For Loop structure|For Loop]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - While Loop.png|frameless|border|While Loop|link=While Loop | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - While Loop.png|frameless|border|While Loop|link=While Loop structure]] | ||
| [[While Loop | | [[While Loop structure|While Loop]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Case Structure.png|frameless|border|Case Structure|link=Case | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Case Structure.png|frameless|border|Case Structure|link=Case structure]] | ||
| [[Case | | [[Case structure|Case Structure]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Event Structure.png|frameless|border|Event Structure|link=Event | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Event Structure.png|frameless|border|Event Structure|link=Event structure]] | ||
| [[Event | | [[Event structure|Event Structure]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - In Place Element Structure.png|frameless|border|In Place Element Structure|link=In Place Element | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - In Place Element Structure.png|frameless|border|In Place Element Structure|link=In Place Element structure]] | ||
| In Place Element | | [[In Place Element structure|In Place Element Structure]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Flat Sequence Structure.png|frameless|border|Flat Sequence Structure|link=Flat Sequence | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Flat Sequence Structure.png|frameless|border|Flat Sequence Structure|link=Flat Sequence structure]] | ||
| Flat Sequence | | [[Flat Sequence structure|Flat Sequence Structure]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions_Palette_-_Programming_-_Structures_-_Stacked_Sequence_Structure.png|frameless|border|Stacked Sequence Structure|link=Stacked Sequence | ! style="text-align: center;" | [[File:Functions_Palette_-_Programming_-_Structures_-_Stacked_Sequence_Structure.png|frameless|border|Stacked Sequence Structure|link=Stacked Sequence structure]] | ||
| [[Stacked Sequence | | [[Stacked Sequence structure|Stacked Sequence Structure]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Formula Node.png|frameless|border|Formula Node|link=Formula Node | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Formula Node.png|frameless|border|Formula Node|link=Formula Node structure]] | ||
| [[Formula Node | | [[Formula Node structure|Formula Node]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Structures Palette - MathScript.png|frameless|border|MathScript|link=MathScript structure]] | ! style="text-align: center;" | [[File:Structures Palette - MathScript.png|frameless|border|MathScript|link=MathScript structure]] | ||
| [[MathScript structure|MathScript]] | | [[MathScript structure|MathScript]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Diagram Disable Structure.png|frameless|border|Diagram Disable Structure|link=Diagram Disable | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Diagram Disable Structure.png|frameless|border|Diagram Disable Structure|link=Diagram Disable structure]] | ||
| [[Diagram Disable | | [[Diagram Disable structure|Diagram Disable Structure]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Conditional Disable Structure.png|frameless|border|Conditional Disable Structure|link=Conditional Disable | ! style="text-align: center;" | [[File:Functions Palette - Programming - Structures - Conditional Disable Structure.png|frameless|border|Conditional Disable Structure|link=Conditional Disable structure]] | ||
| [[Conditional Disable | | [[Conditional Disable structure|Conditional Disable Structure]] | ||
|- | |- | ||
! style="text-align: center;" | [[File:TSS Icon.pngFunctions Palette - Programming - Structures - Type Specialization Structure.png|frameless|border|Type Specialization Structure|link=Type Specialization | ! style="text-align: center;" | [[File:TSS Icon.pngFunctions Palette - Programming - Structures - Type Specialization Structure.png|frameless|border|Type Specialization Structure|link=Type Specialization structure]] | ||
| [[Type Specialization structure|Type Specialization Structure]] | | [[Type Specialization structure|Type Specialization Structure]] | ||
|- | |- | ||
Revision as of 15:49, 25 June 2020

| Object information | |
|---|---|
| Owning palette(s) | Programming palette |
| Type | Palette |
| Requires | Basic Development Environment |
| Icon | |
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|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)
Subpalettes
| Icon | Name |
|---|---|
| Timed Structures | |
| Decorations |
Structures
Functions
| Icon | Name |
|---|---|
| Shared Variable | |
| Local Variable | |
| Global Variable | |
| Feedback Node |
History
| Version | Change(s) |
|---|---|
| The Type Specialization Structure was added in conjunction with the addition of Malleable VIs. | |
| The Stacked Sequence Structure is considered to be deprecated and has been removed from the Structures Palette although it is still functional to code upgraded from older versions. | |
| In Place Element Structure was added. | |
| Diagram Disable Structure, Conditional Disable Structure and Shared Variable were added. | |
| Flat Sequence Structure and Feedback Node were added. | |
| Event Structure was added. |