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

Case Structures: Executing a Section of Code Based on Input Values

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

A Case structure, shown as follows, has two or more subdiagrams.

Only one case subdiagram is visible at a time, and the structure executes only one subdiagram at a time. An input value determines which subdiagram executes. The Case structure is similar to switch statements or if...then...else statements in text-based programming languages.

The case selector label at the top of the Case structure, shown as follows, contains the name of the selector value that corresponds to the case in the center and decrement and increment arrows on each side.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit