LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmtically build controls indicators that are grouped together.

Solved!
Go to solution

I Basically have a group of controls/indicators where the number that exist change from a text file that is read.

The Data is also controls and indicators, so i have to be able to individually enable/disable them and uniquely update their captions, which is why I don't a simple array would work. How can I programmatically create these controls and indicator groups (up to 12). That are spaced evenly and can be unqiely controlled (programmatically) after creation? OOP? Xcontrols?

 

Screenshot 2024-09-09 094135.png

0 Kudos
Message 1 of 3
(189 Views)
Solution
Accepted by topic author eli.barber

Hi eli,

 

you cannot programmatically "create" controls in LabVIEW.

 

But you can create them at edit time, hide them programmatically on the frontpanel and show them programmatically when needed!

Best regards,
GerdW


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

With simple functions requiring a user interface the tab control provides a nice way to select a mode or create a wizard style sequence of steps the user could then accomplish. Or you can allow the tabs to show up and create a configuration dialog, the use cases are numerous. A word of warning though, the complexity of the function starts to increase rapidly when you add pages to your tab control, so it may not be a good idea to use tab control for your main user interface in complex or heavy/large applications.

0 Kudos
Message 3 of 3
(121 Views)