Showing results for 
Search instead for 
Did you mean: 

LabVIEW equivalent of Array[i].ClusterElement = Value

Go to solution

I have an array of clusters, which are composed of mixed data types (booleans, numeric, string controls). I would like to write a value to a particular cluster element of a particular array member.


If I right-click on that element and then create a writable property by going to Create->Property Node->Value then for some reason it always refers to the first array element even though I made the property node from, let's say, 4th element.


So how do I write to a particular place in my data structure? In other words, what would be an equivalent of C's assignment operator Array[i].ClusterElement = Value ?

0 Kudos
Message 1 of 3
Accepted by topic author depswa

Use an In-Place Element Structure to index the array element. Bundle in the value to the element you want to replace. This could be a SubVI. You could build a SubVI for each cluster element or look into creating a Polymorphic VI.


Index Array of Clusters.png

Feel free. Contact me for anything more,

You too can be LabVIEW Awesome!
0 Kudos
Message 2 of 3

Thanks a lot, pangvady. I though I would have to use references and "To More Specific Class" operators, but it turned out to be much easier.

0 Kudos
Message 3 of 3