Showing results for 
Search instead for 
Did you mean: 

How to assign Array Values to names in a new Cluster/Array

Go to solution

Hi everyone,

I'm very new to Labview and searching for a possibility to solve my Issue.


I have an array (1D) with different hex values (1,3,1F,....),which varies from 34 to 100 parameters each time. I'd like to give every value a name (for instance 1=Apple, 3=Cucumber, 1F=Tomato) and put all the Informations in a new Cluster or another Array.


What would be the easiest way to do this? I attached a picture to make it easier to understand.


Thanks in advance for your help!

0 Kudos
Message 1 of 3
Accepted by topic author Kahlua85

Hi Kahlua,


create a cluster containing two array: your Array1 (values) and Array2 (with their labels). For each element in Array1 you put the corresponding label into Array2…


Or do you want to create key-value-pairs? Use variant attributes

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

0 Kudos
Message 2 of 3

thank you i think that will do it!

0 Kudos
Message 3 of 3