LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph question

Hi everybody, I have a question here:

I have a multiplot XY Graph indicator with two plots inside, is it possible
to set two different Y scales (one for the first plot and the other one for
the second) in the same graph?

Thanks in advance,
Pizza67
0 Kudos
Message 1 of 6
(2,830 Views)
Hmmm...

It looks to me like you should be able to as if you'll look under XY Graph Properties->Plots, each plot has a drop-down list of items specifying the Y-Scale and X-Scale that the current plot is using.

The only problem is, each list only contains a single item - either the current X-Scale or Y-Scale, and under the scales tab (unless I'm blind), I can't see any options that might allow you to create new scales...

As a stop-gap, just write your own VI that will scale the second plot's Y values to correspond to the first plot's Y scale - should take you maybe 5 minutes, and then you can always take it out later if you find a new way.

Sorry I'm not much more help than that.
0 Kudos
Message 2 of 6
(2,830 Views)
Right click on the Y scale and select Duplicate Scale. You can keep it on the left side or right click again on the scale you want and select Swap Sides. When you have a duplicate scale, the next thing to do is to associate that scale to a specific plot. In the plot legend, right click the plot and select Y Scale. You should see both scales and select the one you want to associate it with.
0 Kudos
Message 3 of 6
(2,830 Views)
"Dennis Knutson" ha scritto nel messaggio
news:506500000005000000677B0100-1079395200000@exchange.ni.com...
> Right click on the Y scale and select Duplicate Scale. You can keep it
> on the left side or right click again on the scale you want and select
> Swap Sides. When you have a duplicate scale, the next thing to do is
> to associate that scale to a specific plot. In the plot legend, right
> click the plot and select Y Scale. You should see both scales and
> select the one you want to associate it with.


Thanks Dannis, it's exactly what I was looking for, but now I have another
question: I'm trying to set both Y scales from the block diagram with
property nodes, but I can't find a way to set two different Min and Max Y
range for each plot. A
ny idea to do that?

Finally there is a way to set Y grid lines of each plot from the block
diagram, with property nodes?


Thanks a lot,
Pizza67
0 Kudos
Message 4 of 6
(2,830 Views)
> Thanks Dannis, it's exactly what I was looking for, but now I have another
> question: I'm trying to set both Y scales from the block diagram with
> property nodes, but I can't find a way to set two different Min and Max Y
> range for each plot. Any idea to do that?
>
> Finally there is a way to set Y grid lines of each plot from the block
> diagram, with property nodes?
>

Be sure to set the Active Scale property, then set the scale min/max so
that LV knows which scale you mean. Otherwise it defaults to 0.

As for the grids, you can set those using the Scale properties, again,
use the active scale to specify which you mean.

Greg McKaskle
0 Kudos
Message 5 of 6
(2,830 Views)
"Greg McKaskle" ha scritto nel messaggio
news:jx7ic.15232$hR1.9080@fe2.texas.rr.com...
> > Thanks Dannis, it's exactly what I was looking for, but now I have
another
> > question: I'm trying to set both Y scales from the block diagram with
> > property nodes, but I can't find a way to set two different Min and Max
Y
> > range for each plot. Any idea to do that?
> >
> > Finally there is a way to set Y grid lines of each plot from the block
> > diagram, with property nodes?
> >
>
> Be sure to set the Active Scale property, then set the scale min/max so
> that LV knows which scale you mean. Otherwise it defaults to 0.
>
> As for the grids, you can set those using the Scale properties, again,
> use the active scale to
specify which you mean.
>
> Greg McKaskle
>

Great!
Thanks a lot Greg.
0 Kudos
Message 6 of 6
(2,830 Views)