LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

generate controls and indicators

Hello,

I would like to generate controls or indicators on a VI. For example I have a .vi from which I set the number of controls and indicators and when I hit a buton another vi opens with the number of controls and indicators that I defined previously in the first VI.

 

How can I do that, beside "hide" property from the front panel. I would like to know if there is a simple way, ofcourse I want to use as less memory as I can.

 

Thank you,

Stefan

0 Kudos
Message 1 of 3
(2,133 Views)

Hi Stefan,

 

in LV you cannot create new controls/indicators at runtime. Point.

 

You can:

- use arrays and change the number of visible elements

- use the "visible" property of previously created controls (as already mentioned in your question)

 

- use scripting features of LV (only available to selected users 🙂

 

What's the purpose of this request?

Just create a new vi with some predefined controls on the front panel? Then you can make your own entries in the functions palette to provide (at least) similar functionality...

Best regards,
GerdW


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

Ok, I knew that I can't create new controls when running but I wanted to be sureSmiley Happy, now I know what I have to do.

 

Thanks a lot,

This forum is great, wish you the best.

0 Kudos
Message 3 of 3
(2,119 Views)