LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cases of case structure

Perhaps there is a "trick" I don´t know:

Is there any way to read out all the cases of a predefined case structure programmatically ? (Background: LV naturally "knows" all the cases of a case structure and you can get a list of all cases by clicking on the case selector during programming - now I want to have this list in an array (or something else) to handle it programmatically in order to show it to the user during program execution ...)

Thanks a lot for any help in advance !
0 Kudos
Message 1 of 2
(2,518 Views)
I don't know of any way to get the list of cases programmatically. What we use is some kind of enumerated type (usually as a type def) to select the case of a case structure. You can then use the enumerated type to know what cases are possible.

Rob
Message 2 of 2
(2,518 Views)