LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access an array of clusters as an array of cluster members?

Hi everyone,
 
I am trying to figure out how to access the members of a cluster in an array as an array.  I have an array of clusters, each cluster consisting of one string indicator and one boolean control.  I did it this way because I wish to associate a boolean and a string, similar to a C typedef struct.  What I need to be able to do is to access the booleans (and strings too) as an array by itself.  I'd like to have something like:
 
mycluster[i].myboolean
 
and be able to loop through i and substitute values easily.  I also need to be able to resize it.  It seems to be a bit of a pain to do this.  I have attached two VIs that I have for accessing this and the control.  Can anyone think of a much simpler way to do this?
 
Thanks,
 
Jason
 
0 Kudos
Message 1 of 3
(2,704 Views)
To get to the myCluster[i].myboolean in labview, index the the array and unbundle the cluster by name, select the Boolean element and you will have the answer,
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 3
(2,691 Views)
Sorry I only have LV 7.0 here so I cant open your exact case.  I can take alook at the code if you post it as LV 7.0
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 3
(2,690 Views)