LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic array to cluster

During runtime my main VI is loading a data file that is dynamic in size and content (created by another VI). It is loaded as a 1D array. I am looking to convert this array into a cluster of elements and display the titles and values of each element. I'm pretty sure I can figure out the labeling but I can't get the conversion to work dynamically... Can anyone help??

Scott@P&E
0 Kudos
Message 1 of 3
(2,993 Views)
Unfortunately, you can't dynamically control a cluster's size.
If you're only concerned about display, you can use the property NumRows to control the number of rows displayed. To do this, you need to create a property node. Right click on the control or the terminal and select Create>>Property Node. Then, find the property and wire the proper number in.
If this didn't help, please write more about what you're trying to accomplish.
Also, your post came out twice. You should try to avoid that.

___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,983 Views)
If your problem is to associate a name/label to each numerical value from the 1D array, you should consider using a 2D string array. The first column could contain the names and the second column the values. A Table control could do the trick very nicely.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 3 of 3
(2,976 Views)