Skip to content
ThomasPRZilliox edited this page Aug 14, 2025 · 3 revisions

How to control enums

Behind the scenes an enum acts in LabVIEW as an integer, to be able to set a value simply use the methods set_value_DBL

For example:

enum_label = "my_enum"
fmv.set_value_DBL(enum_label,1) # Set the enum control to the value corresponding to the index 1

Feel free to look at the script test_enums.py for more details

How to control tabs

Behind the scenes an tab control acts in LabVIEW as an integer, to be able to set a value simply use the methods set_value_DBL

For example:

tab_label = "my_tabs"
fmv.set_value_DBL(tab_label ,1) # Set the tab control to the second page 

Feel free to look at the script test_tabs.py for more details

It's important to know that tab control might take a bit of time to update in the LabVIEW UI, it's recommended to use the time.sleep() function after selecting a new page.

Clone this wiki locally