From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure with multiple cases

What do I have to hook to a case selector to get something more than a boolean? I have 4 different cases but I dont know how to accesss them. I appreciate your help.
Ron Deavers, CLD
0 Kudos
Message 1 of 3
(4,013 Views)
There are many possibilities:

Hook up a string and type the appropriate keywords in each case, add new cases as needed.
Hook up an integer, and the cases will be numbered.
Hook up an Enum, and the cases will be named after the values.
Hook up an error cluster and you get two cases "Error" and "No error".
Hook up a radio button control (LabVIEW 7.1 only) and you get cases named after each boolean.

And so on... 🙂

For Enums and radio button, you can even right-click on the case and "Add case for every value" if there are more values than cases.
Just play around with it.... and you'll discover more treasures.
Message 2 of 3
(4,009 Views)
Thank you very much. I was playing around and found the enum. I think thats what I want to do. Thanks again.
Ron Deavers, CLD
0 Kudos
Message 3 of 3
(4,006 Views)