LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I search inside an array of cluster?

Solved!
Go to solution

I have a cluster that holds a string control and a DBL control.

An array consists of that cluster.

 

The array looks like the lines below.

 

"min" 3.55

"max" 10.33

"average" 7.33

 

How can I extract the value of "min" without having to inspect every element of that array in my LabVIEW code?

 

In C, C++, and java, there is "map", but there doesn't seem to be an equivalent to map in LabVIEW.

0 Kudos
Message 1 of 3
(3,136 Views)

You can take the reference of the cluster and find which control is having the name "min" and can extract the value. See the attached example.

 

 

Array element.PNG

 

Good luck

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 3
(3,121 Views)
Solution
Accepted by topic author iCat
0 Kudos
Message 3 of 3
(3,116 Views)