LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stacked Plots Question

I'm working on a project based on the Continuous Data Acquisition
sample that shipped with Labview 7. My problem is that when I try to
plot multiple channels of data using the "Stacked Plot" property of
the Waveform Chart, I still get overlaid plots. The input to the graph
is the 2D array created by the example. Is there any way to get a
stacked plot here?

Many Thanks!
Dan
0 Kudos
Message 1 of 5
(3,297 Views)
You might need to convert the array to cluster before feeding in to the chart... here is example for 1D stack plot
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 5
(3,297 Views)
Hello Dan.
As Ian pointed, conversion to cluster will allow stacked plots whith automatic resizing. I guess NI people should add this property to charts when the input is a n_Dimensions array or waveforms array. Till then, the solution I use is resizing "plot legend" to the number os stacked displays you want to have.

Hope this helps you.
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 3 of 5
(3,297 Views)
Thanks for the reply!

I grew the legend to show more plots, and now have a Chart with
multiple plotting areas. However, when I run my program, I still have
all of the data showing up on the first plot and none showing up on
any of the other plots. The input is a 2D array created by the AI Read
VI. Any further suggestions? I feel like I'm very close!!

Thanks!
Dan

alipio wrote in message news:<506500000005000000C92C0100-1042324653000@exchange.ni.com>...
> Hello Dan.
> As Ian pointed, conversion to cluster will allow stacked plots whith
> automatic resizing. I guess NI people should add this property to
> charts when the input is a n_Dimensions array or waveforms array. Till
> then, the solution I use is resizing "plot legend" to the numb
er os
> stacked displays you want to have.
>
> Hope this helps you.
> Alipio
0 Kudos
Message 4 of 5
(3,297 Views)
Oops. I figured out that I had to go into the Scale tab and set each
plot to a different y-axis. Now it works! Many thanks!

As you can probably tell by my questions, I'm a bit of a newbie. Does
anyone have any recommendations for good resources for info on how to
write Labview programs for data acquisition? I got the book "Labview
for Data Acquisition", but I'm finding that it's not all that detailed
or useful. Any suggestions?

Many thanks!
Dan

alipio wrote in message news:<506500000005000000C92C0100-1042324653000@exchange.ni.com>...
> Hello Dan.
> As Ian pointed, conversion to cluster will allow stacked plots whith
> automatic resizing. I guess NI people should add this property to
> charts when the input is a n_Dimensions array or wav
eforms array. Till
> then, the solution I use is resizing "plot legend" to the number os
> stacked displays you want to have.
>
> Hope this helps you.
> Alipio
0 Kudos
Message 5 of 5
(3,297 Views)