NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Nesting Case Structures

VERSION 3

Created on: Feb 17, 2009 11:47 AM by MargaretF. - Last Modified:  Sep 12, 2009 6:41 AM by MargaretF.

The attached file exemplifies how to use case structures within case structures to access different ranges of input. In the example, the use enters a number and is told which of three ranges that number falls into. This example shows how to implement and If...then...else statement into LabVIEW.

 

case structure.png

 

It is also worth mentioning here that if you are using a datatype that the selector terminal for the case structure accepts (integer, Boolean value, string, or enumerated type), you can implement this behavior with the case structure directly:

Nesting Case Structures Edit.jpg

 

You can specify comma seperated values for lists, and both bounded and open-ended numeric ranges as shown above. See the LabVIEW help for Case Structures for more details.

 

Downloads:
Average User Rating
(0 ratings)




Todd Sierer Todd Sierer  says:

Please add "LabVIEW" to the tag field so it shows up on the main page.