LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change range of Y Axis on stacked plots

How can I programatically set range of each Y Axis on multiplot stacked
charts. Atrribute node 'Active Plot' and 'Y range' doesn't work. I can
change
Y range of the 'Plot0' only.
0 Kudos
Message 1 of 13
(5,085 Views)
Hi Mariusz,
I have the same problem, unfortunately.
Mike Manzheliy
Automated Control Systems

Mariusz Brauner wrote:

> How can I programatically set range of each Y Axis on multiplot stacked
> charts. Atrribute node 'Active Plot' and 'Y range' doesn't work. I can
> change
> Y range of the 'Plot0' only.
0 Kudos
Message 2 of 13
(5,085 Views)
Example attached.

Mike Manzheliy wrote in message
news:3AB260BA.8FB27C4@levsha.ru...
> Hi Mariusz,
> I have the same problem, unfortunately.
> Mike Manzheliy
> Automated Control Systems
>
> Mariusz Brauner wrote:
>
> > How can I programatically set range of each Y Axis on multiplot stacked
> > charts. Atrribute node 'Active Plot' and 'Y range' doesn't work. I can
> > change
> > Y range of the 'Plot0' only.
>



[Attachment MultiScaleDemo.vi, see below]
0 Kudos
Message 3 of 13
(5,085 Views)
Hi Craig,
thank you,
but I mean Waveform Graph, not XY.
Please try to design two generators and then display it on the same Waveform Graph
and setting different scales programmatically.
Mike

Craig Graham wrote:

> Example attached.
>
> Mike Manzheliy wrote in message
> news:3AB260BA.8FB27C4@levsha.ru...
> > Hi Mariusz,
> > I have the same problem, unfortunately.
> > Mike Manzheliy
> > Automated Control Systems
> >
> > Mariusz Brauner wrote:
> >
> > > How can I programatically set range of each Y Axis on multiplot stacked
> > > charts. Atrribute node 'Active Plot' and 'Y range' doesn't work. I can
> > > change
> > > Y range of the 'Plot0' only.
> >
>
> Name: MultiScaleDemo.vi
> MultiScaleDemo.vi T
ype: LabVIEW Instrument (application/x-unknown-content-type-LabVIEWInstrument)
> Encoding: x-uuencode
0 Kudos
Message 4 of 13
(5,085 Views)
Instead of 'Active Plot', use 'Active Scale'
0 Kudos
Message 5 of 13
(5,085 Views)
I have LabVIEW 5.1.1 - is there any solution. I don't have 'Active Scale' on
my list of properties.

Uzytkownik "Dennis Knutson" napisal w wiadomosci
news:5065000000050000004F1D0000-984280909000@quiq.com...
> Instead of 'Active Plot', use 'Active Scale'
0 Kudos
Message 10 of 13
(5,085 Views)
Hi Mariusz,
you can solve this problem.
First of all you have to use two graphs.
The first graph for display your waveforms.
The second graph you have to paint as transparent and use only Y scale.
Then put the second graph (Y scale) over the first graph.
I designed a graph with two scales last year, it's working.
If you need I can send an example to you but unfortunately XY graph.
Mike

Mariusz Brauner wrote:

> I have LabVIEW 5.1.1 - is there any solution. I don't have 'Active Scale' on
> my list of properties.
>
> Uzytkownik "Dennis Knutson" napisal w wiadomosci
> news:5065000000050000004F1D0000-984280909000@quiq.com...
> > Instead of 'Active Plot', use 'Active Scale'
0 Kudos
Message 12 of 13
(4,779 Views)
I've just tried that example with a "Waveform Graph", a "Waveform Chart" and
a "Digital Waveform Graph" and I see no problem. I've attached an updated
example that has specifically a "Waveform Graph" in it with two "Y" axes.
When you run the program a straight line is generated and the same data
plotted on both sides to verify that indeed the rescaling is working.

Mike Manzheliy wrote in message
news:3AB265DD.538AA9C@levsha.ru...
> Hi Craig,
> thank you,
> but I mean Waveform Graph, not XY.
> Please try to design two generators and then display it on the same
Waveform Graph
> and setting different scales programmatically.
> Mike




[Attachment MultiScaleDemo.vi, see below]
0 Kudos
Message 6 of 13
(5,085 Views)
Hi Craig,
see attached file, please ( Strange.vi.)
My version 6.01
As you can see the scale of the plot is changing but the waveform
don't overdrawing. It's truncated 😞
Mike

Craig Graham wrote:

> I've just tried that example with a "Waveform Graph", a "Waveform Chart" and
> a "Digital Waveform Graph" and I see no problem. I've attached an updated
> example that has specifically a "Waveform Graph" in it with two "Y" axes.
> When you run the program a straight line is generated and the same data
> plotted on both sides to verify that indeed the rescaling is working.
>
> Mike Manzheliy wrote in message
> news:3AB265DD.538AA9C@levsha.ru...
> > Hi Craig,
> > thank you,
> > but I mean Waveform Graph, not XY
.
> > Please try to design two generators and then display it on the same
> Waveform Graph
> > and setting different scales programmatically.
> > Mike
>
> Name: MultiScaleDemo.vi
> MultiScaleDemo.vi Type: LabVIEW Instrument (application/x-unknown-content-type-LabVIEWInstrument)
> Encoding: x-uuencode
0 Kudos
Message 8 of 13
(5,085 Views)
Pop the right mouse button menu over the second plot in the "plot legend",
go down to "Y-Scale" and select "Amplitude 2". Problem sorted. Each axis can
hold more than one dataset so you have to tell the graph which datasets go
with each axis.

Mike Manzheliy wrote in message
news:3AB5D8EB.CB527209@levsha.ru...
> Hi Craig,
> see attached file, please ( Strange.vi.)
> My version 6.01
> As you can see the scale of the plot is changing but the waveform
> don't overdrawing. It's truncated 😞
> Mike
0 Kudos
Message 9 of 13
(5,085 Views)