LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Change Array to Cluster Size

Hello,

I have a Chart with several values scrolling across it. The number of
values is variable. To prepare the data for the Chart, I use the Array to
Cluster element. Is there a way I can programmatically change the size of
the cluster output?

Thanks,

Peter
0 Kudos
Message 1 of 2
(3,269 Views)
Peter,

As far as I know, you cannot programatically chage the size of the cluster output in the Array to Cluster vi. However, you may not need to convert to a cluster for charting. The chart will take a 2D array and plot mutiple lines. See the attached example which uses Reshape Array to form the data for a chart.

The only hitch is that it erases the plot when you change the number of values to plot. This may or may not be important to you.

Tim
Message 2 of 2
(3,269 Views)