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 issue

I can not get this case structure to run.
the error is "no case for some selector values"
 
Thanks in advance
tomiee
 
0 Kudos
Message 1 of 4
(2,434 Views)

You have stumped me on this one.

The VI you posted runs fine for me.

Generally speaking that message indicates that LV has not figured out what to do with all of the possible values that can be passed to a case structure. This is not the case in the VI you posted.

Please recheck what you posted and reply with more info if you still need help.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(2,428 Views)
The VI you posted has no error. If you have a case structure wired to a Boolean, you must have both a true and false case defined. If you have a case structure with a numeric, string, or enum wired to the selector, one of the cases must be defined as a default case. To make a case default, right click on the selector level and select "Make This the Default Case". A default case is necessary to handle any unexpected values.
Message 3 of 4
(2,422 Views)
Thank you, Ben & Dennis
0 Kudos
Message 4 of 4
(2,398 Views)