LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Populate a Cluster Boolean array Labels

Solved!
Go to solution

I am using LabVIEW 2016. This will used in an Executable. I would like to be able to change the labels on the Cluster of each Boolean Control. Channel Selection Cluster has 16 Controls named CH1 ... CH16. I have a string of Channel Names that I would like to use to replace the Channel Selection Boolean Control labels.  

0 Kudos
Message 1 of 9
(3,108 Views)

Hi bassinbc,

 

generic rule: you cannot change the label of a control at runtime! So right now there is no way to change those "CH1" labels programmatically.

 

But: you can change the caption of a control - but you need to create it once before trying to change the caption. You can use property nodes to access the caption of each button…

 

Another approach: hide the label of the buttons in the frontpanel and place a string control next to each button. Now you can change the value of each string more easily than to access captions by references…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(3,097 Views)

Here is an example of what Gerd was talking about.

Tim
GHSP
0 Kudos
Message 3 of 9
(3,093 Views)

Please change to 2016 version

0 Kudos
Message 4 of 9
(3,085 Views)
Solution
Accepted by bassinbc
Message 5 of 9
(3,082 Views)

Thanks.

0 Kudos
Message 6 of 9
(3,071 Views)

You are welcome. One thing to remember moving forward is that you need to turn on the caption before you can change it. If you do not turn on the caption then you will get an error that tells you that the caption does not exist.

Tim
GHSP
0 Kudos
Message 7 of 9
(3,069 Views)

One thing that is a bit annoying about captions is that, once you turn them on for a given object, you cannot turn them back off.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 9
(3,048 Views)

@billko wrote:

One thing that is a bit annoying about captions is that, once you turn them on for a given object, you cannot turn them back off.


I'm curious - what is the downside of Captions being turned on?

 

I find it annoying that they have to be turned on to access them in the first place

(and that this can't be done at run time). 

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 9 of 9
(2,993 Views)