Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Case Structure

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Structures

Requires: Base Development System

Contains 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.

Components of a Case Structure

Case selector label—Displays the value(s) for which the associated case executes. You can specify a single value or a range of values. You also can use the case selector label to specify a default case.
Subdiagram(case)—Contains the code that executes when the value wired to the case selector terminal matches the value that appears in the case selector label. To modify the number or order of subdiagrams, right-click the border of the Case structure and select the appropriate option.
Selector terminal—Selects which case to execute based on the value of the input data. The input data can be a Boolean, string, integer, enumerated type or error cluster. The data type you wire to the selector terminal determines the allowed cases you can enter in the case selector label.

Configuring a Case Structure

Rearranging a Case Structure

Troubleshooting a Case Structure


 Was this document helpful?  submit
  Helpful Not Helpful