LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

setting default in an enum programmatically

Hi,

is there an easy way to make one entry in an enum to be default programatically?

The application is a list of different instruments, where the actual instrument shall be made default depending on the serial number that is read from the instrument.

Thanks!

0 Kudos
Message 1 of 3
(968 Views)

Hi sylvester,

 


@sylvester wrote:

The application is a list of different instruments, where the actual instrument shall be made default depending on the serial number that is read from the instrument.


After reading the device's serial number you can set that enum control to the desired value using a local variable of the enum…

 

(IMHO there's no need to set that value as "default value" of the enum control as you will read the device serial number each time you start your executable.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(944 Views)

Thanks, that helped.

0 Kudos
Message 3 of 3
(861 Views)