LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Y range on stacked plots

I've got a stacked chart with eight traces, and I'd like to autoscale them
but have the scale be the same for each of the eight. Autoscaling them
all individually isn't hard to do, of course, and it's easy to take the
arrays for all eight and find the max and min -- but when I use a property
node to adjust the Y range using that max and min, only the first plot is
set to the correct range. I know from a bit of Deja(/Google) research
that there was no workaround for LabVIEW 5.x, but is there one for 6.0
("6.i")? Or is my only real option to set up eight seperate charts? My
application is significantly slowed every time I do anything
display-related, so I'm trying to keep it to a minimum...

Thanks

Mike Shear

--

Mike Shear mshear@wpi.edu
WPI '02 EE grad student
MA EMT-B N1YQH(tech)
0 Kudos
Message 1 of 2
(2,836 Views)
Actually, you can now have stacked plots which do this in 6 i. You just have to get used the idea of having multiple y scales. If you look at your scales pallette, you'll probably notice that you have several y scales, one for each of the stacked plots. You can turn autoscaling on for one of them and off for all the others. Programmatically, you can then use property nodes to read the range settings of the autoscaled plot and write the same range to all the others. Remember that the scale properties such as range will only apply to the active Yscale, so you will have to change the active scale before operating on the individual scales. This is not that bad because you can expand the property node to do the same thing for each of the scales. Property
nodes will execute top to bottom. I'll attach a small example that might help
Message 2 of 2
(2,836 Views)