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