Writing a Data to a Cluster Located in Another Cluster

Updated Jan 28, 2025

Environment

Software

  • LabVIEW

I want to write data to an array in a sub-cluster located in a main cluster through refnums. 

To do this, follow the steps below:

  1. Place a "Property Node" and connect it to the reference of the cluster,
  2. Place an "Index Array" which will allow you to call the required sub-cluster.
  3. Place "To More Specific Class" to typecast reference of the control so it can inherit the data of the cluster,
  4. Place another "Property Node" to get the reference to the array,
  5. Place a "Property Node", select Controls[], then place an "Index Array" to get the reference of the array at a specific index,
  6. Write the data as a variant into the array.

 

The steps above should allow you to manipulate the array in a sub-cluster.

This image is attached as a snipped. Download it and drag-and-drop it onto the block diagram to convert it to a LabVIEW code. If it did not help, try downloading the snipped from the attachments.