LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

contorl number of plots in chart

Hi,

 

I like to implement a strip chart with stacked plots and the number of plots should be controlled by user configuration.  I tried to find a way to programmatically change the number the plots that wires to the chart.  I tried "array to cluster" function before wiring to the chart, but the size of the cluster cannot be changed on the fly.  I tried 2D array and set property node to control the columns of the array.  But both didn't work.  I am wondering if someone can share expeeriences or any code samples, I'd really appreciate it.

0 Kudos
Message 1 of 5
(2,757 Views)
Do you specifically need stacked plots? Perhaps this thread may help.
Message 2 of 5
(2,751 Views)
I guess for block diagram wiring one chart with multiple stacked plots seems simpler than multiple individual charts.   As long as I can programmatically control the number of plots dsiplay on the screen, it really doesn't matter.   Thanks for the info and I'll take a look at.
0 Kudos
Message 3 of 5
(2,744 Views)

Well, a chart accepts one point at a time or it can accept an array of points. If you wire a 2D array that's multiple plots where you're providing either one or more points for each plot:

 

The stacked/overlay is really more of a difference in the way you present the data to the user. The programming is the same either way.

Message Edited by smercurio_fc on 09-22-2008 04:32 PM
Message 4 of 5
(2,731 Views)
I agree.  I wish the LV allow the damatic change the number of plots display in the stacked mode.
0 Kudos
Message 5 of 5
(2,721 Views)