Showing results for 
Search instead for 
Did you mean: 

array of strings + array of numbers ?= cluster of numbers with names

Go to solution

I have an array of strings.  They need to be cluster element labels.

I have another array of numbers.  They need to be the values of the cluster elements.


How do I make this happen?  I don't know any way to write a string variable value to the name of a cluster element.


Updating with things I find as I keep looking:

0 Kudos
Message 1 of 3
Accepted by topic author EngrStudent
11-11-2016 09:02 AM

The main question here is why you need such feature? Do you want to change the labels of the cluster elements during runtime, or during edit time? Maybe a table control would serve you better?


Anyway, here is a method to do what you want, however keep in mind that using property nodes can have an impact on applicaton performance. Another thing is that, label text property is not writable during runtime, but you can show the caption instead of the label, and you can rewrite captions during runtime:



Message 2 of 3

Hi student,


this sounds like key-value-pairs!

In LabVIEW you can easily create them using Variant attributes

Best regards,
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 3 of 3