Jump to content

Flat Sequence structure: Difference between revisions

From LabVIEW Wiki
m Q moved page Functions Palette/Programming/Structures/Flat Sequence Structure to Flat Sequence structure: Renaming to make it more in line with other palette items.
Added info table
Line 1: Line 1:
{{TOCright}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Structures{{!}}Structures palette|type=structure}}
[[File:Flat Sequence Structure - Components.png|thumb|Components of the Flat Sequence Structure]]
[[File:Flat Sequence Structure - Components.png|thumb|Components of the Flat Sequence Structure]]
A Flat Sequence Structure is a primitive [[Functions Palette/Programming/Structures|structure]] that can have one or more [[Subdiagram|subdiagrams]] (also known as "Frames"), that are executed sequentially from left to right.
A '''Flat Sequence Structure''' is a primitive [[Functions Palette/Programming/Structures|structure]] that can have one or more [[Subdiagram|subdiagrams]] (also known as "Frames"), that are executed sequentially from left to right.


<br clear="all">
== Usage ==
== Adding and removing frames ==
=== Adding and removing frames ===


Frames can be added and removed via the right-click menu:
Frames can be added and removed via the right-click menu:
Line 25: Line 28:
* Use the flow of data between nodes instead of flat sequence structures<ref>[https://forums.ni.com/t5/LabVIEW-News/Top-5-LabVIEW-Rookie-Mistakes/ba-p/3483109 LabVIEW News: Top 5 LabVIEW Rookie Mistakes]</ref>
* Use the flow of data between nodes instead of flat sequence structures<ref>[https://forums.ni.com/t5/LabVIEW-News/Top-5-LabVIEW-Rookie-Mistakes/ba-p/3483109 LabVIEW News: Top 5 LabVIEW Rookie Mistakes]</ref>
* Use ''error in (no error)'' and ''error out'' terminals instead of flat sequence structures to enforce sequential execution of VIs.
* Use ''error in (no error)'' and ''error out'' terminals instead of flat sequence structures to enforce sequential execution of VIs.
* In [[LabVIEW 2018]] and later, use [[Functions Palette/Programming/Timing/Stall Data Flow|Stall Data Flow]] instead of a flat sequence structure to delay execution.
* In [[LabVIEW 2018]] and later, use [[Stall Data Flow function|Stall Data Flow]] instead of a flat sequence structure to delay execution.
 
== History ==
{{ambox|text=History information is needed.  What changes have occurred over previous versions?}}
{| class="wikitable"
! Version
! Change(s)
|-
|[[File:LV2018.png|frameless|border|64x64px|LabVIEW 2018|link=LabVIEW 2018]]
|More info to come.
|}


== See also ==
== See also ==

Revision as of 20:28, 23 June 2020

Object information
Owning palette(s) Structures palette
Type Structure
Requires Basic Development Environment
Components of the Flat Sequence Structure

A Flat Sequence Structure is a primitive structure that can have one or more subdiagrams (also known as "Frames"), that are executed sequentially from left to right.

Usage

Adding and removing frames

Frames can be added and removed via the right-click menu:

Option Description
Add Frame After Adds a frame after the current frame
Add Frame Before Adds a frame before the current frame
Delete This Frame Deletes the current frame

Best practice

  • Use the flow of data between nodes instead of flat sequence structures[1]
  • Use error in (no error) and error out terminals instead of flat sequence structures to enforce sequential execution of VIs.
  • In LabVIEW 2018 and later, use Stall Data Flow instead of a flat sequence structure to delay execution.

History

Version Change(s)
LabVIEW 2018 More info to come.

See also

References