LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved!
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
(3,254 Views)
Solution
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,
GerdW


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

thank you i think that will do it!

0 Kudos
Message 3 of 3
(3,231 Views)