Jump to content

Functions Palette/Programming/Structures

From LabVIEW Wiki
Revision as of 16:17, 24 July 2019 by Logmanoriginal (talk | contribs) (Add palette icons)
Structures Palette

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:

  1. Control the execution between blocks of code (Flat Sequence Structure, Stacked Sequence Structure, In Place Element Structures, Timed Sequence)
  2. Allow a choice between different blocks of code to execute (Case Structures, Event Structures, Diagram Disable Structures, Conditional Disable Structures)
  3. 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.


Subpalettes

Timed Structures Timed Structures
Decorations Decorations

Structures

For Loop For Loop
While Loop While Loop
Case Structure Case Structure
Event Structure Event Structure
In Place Element Structure In Place Element Structure
Flat Sequence Structure Flat Sequence Structure
Stacked Sequence Structure Stacked Sequence Structure
Diagram Disable Structure Diagram Disable Structure
Conditional Disable Structure Conditional Disable Structure

Functions

Shared Variable Shared Variable
Local Variable Local Variable
Global Variable Global Variable
Feedback Node Feedback Node