Can I Programmatically Set the Number of Stacked Plots in a Waveform Chart in LabVIEW?

Updated Sep 13, 2018

Reported In

Software

  • LabVIEW

Issue Details

I want to programmatically control the number of stacked plots that show up on my waveform chart in case I want to add or remove data.

Solution

Plotting a cluster to a waveform chart will automatically generate the correct number of stacked plots on your front panel. You can create a cluster from multiple points using the Bundle function. For this to work you have to set the chart on the front panel to stack plots instead of overlaying plots by Right-Clicking on the Chart >> Properties >> Stack Plots.

It is important to note that since clusters have a fixed size, you would have to manually create a cluster of a different size if you want to change the number of stacked plots on your chart.

Additional Information

You can also use arrays to plot data to a chart with stacked plots. Arrays can have their sizes changed programmatically which would make programmatically adding or removing data sets simpler. 

Unlike clusters, arrays will not automatically generate the correct number of stacked plots on your front panel. Manually resizing the plot legend will allow you to change the number of displayed stacked plots.

WAS THIS ARTICLE HELPFUL?

Not Helpful