LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically populate an array of checkbox controls

I am having trouble programming my application and am unable to find any example code on the support site. I would greatly appreciate any help.

I have a 1-D array of string (Channel Name) and a 2-D array of double (data for each channel). I want to create a form that has a series of check boxes on the left which has the "Channel Name" in the Boolean Text field. To the right of the check box will be a graph of the data which corresponds to the channel. The # of channels will be variable (1 to 5), so I need to be able to dynamically create the controls and overwrite the properties. I tried to create an array control and fill it with Boolean DialogCheckBox controls as elements. I however haven't been able to change the l
abel for each individual checkbox element.

The purpose of the form is to allow the user to choose 1-5 channels of data to process.

I appreciate any help.

Thanks,
Ravi Ghanta
0 Kudos
Message 1 of 3
(3,917 Views)
You should use an array of clusters containing a string for the channel name and the check box. This is the only way I see to work with an array of independently named elements.
Does this help ?
Chilly Charly    (aka CC)
Message 2 of 3
(3,917 Views)
Hi Ravi,

You cannot change the label for a checkbox element programmatically. Try changing the caption instead. Use the Caption.Text property of the checkbox.

Regards,
Ankita A.
Message 3 of 3
(3,917 Views)