Execution Control Express VIs and Structures

Owning Palette: Express VIs and Functions

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Execution Control Express VIs and structures to add control and timing to VIs.

Example

Palette ObjectDescription
Case StructureContains one or more subdiagrams, or cases, exactly one of which executes when the structure executes. The value wired to the selector terminal determines which case to execute.
Elapsed TimeIndicates the amount of time that has elapsed since the specified start time.
Flat Sequence StructureConsists of one or more subdiagrams, or frames, that execute sequentially. Use the Flat Sequence structure to ensure that a subdiagram executes before or after another subdiagram.

Data flow for the Flat Sequence structure differs from data flow for other structures. Frames in a Flat Sequence structure execute from left to right and when all data values wired to a frame are available. The data leaves each frame as the frame finishes executing. This means the input of one frame can depend on the output of another frame.
Tick CountReturns the value of a free running counter in the units specified. The output and internal counter are both of the configured width.
Time DelayInserts a time delay into the calling VI.
WaitDelays for a certain time interval before the output data dependence becomes valid.
While Loop with Stop ButtonRepeats the subdiagram inside it until the conditional terminal, an input terminal, receives a particular Boolean value. When you place this While Loop on the block diagram, a stop button also appears on the block diagram and is wired to the conditional terminal.

Example

Refer to the Structures in the labview\examples directory for an example of using the Execution Control Express VIs and Structures.

 Open example  Find related examples