LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Array of Controls

Solved!
Go to solution

Hello,

 

I would like my VI to create an array of controls that can be operated by the Front Panel. That is, I have an integer which specifies the amount of controls I need. I then would like my VI to automatically create an array of boolean controls that I can change from the Front Panel. I can create the array for Indicators, but unfortunately the behaviour(control/indicator) of the elements inside seems to be bound to the behaviour of the array.

 

Thanks in advance

0 Kudos
Message 1 of 4
(3,359 Views)
Solution

You can create an array of references to controls which already exist.  Hide/show the controls you want by indexing the array and passing the reference for each control to a property node. 

 

I don't think it's possible to Create/Destroy controls during run-time.

Message 2 of 4
(3,347 Views)
Solution

Hi,

 

you cannot create controls in runtime.

 

But you can create an array of boolean switches in edit time and you can change the number of shown array elements in runtime. Is that all you want to have?

Best regards,
GerdW


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

I see.

Hiding the unused elements via property node will have to do then.

 

Thanks to both of you.

0 Kudos
Message 4 of 4
(3,335 Views)