NI Home > Community > NI Discussion Forums

LabVIEW

Reply
Member
G.Ramian
Posts: 3
0 Kudos

Can't change scale ranges on a multiple XY plot

I am attempting to make a multiple XY graph with three different Y
scales. I have done the following:

-Picked XY graph.
-Pulled up "plot legend" to make 3 plots.
-Removed autoscaling from "scale legend" menus.
-Right clicked over Y scale and selected "duplicate scale" twice.
-Associated each scale with a plot from plot legend menu.
-Created input property nodes for "select plot," "select X axis," and
"select Y axis".
-These were put in frame 0 of a two frame sequence inside a for loop
(n=3) and connected to the loop index.
-Created property nodes for X & Y scale, range, minimum & maximum in
the second frame, and input their values.

What happens is that only the original Y axis changes three times as
though the select ax
is inputs are ignored. If relevant, this is
Labview 6.0i. I'm relatively new to labview so apologize if I'm doing
something dumb here.

Jerry
Member
DaveR
Posts: 28
0 Kudos

Re: Can't change scale ranges on a multiple XY plot

G.Ramian wrote:
> I am attempting to make a multiple XY graph with three different Y
> scales. I have done the following:
>
> -Picked XY graph.
> -Pulled up "plot legend" to make 3 plots.
> -Removed autoscaling from "scale legend" menus.
> -Right clicked over Y scale and selected "duplicate scale" twice.
> -Associated each scale with a plot from plot legend menu.
> -Created input property nodes for "select plot," "select X axis," and
> "select Y axis".
> -These were put in frame 0 of a two frame sequence inside a for loop
> (n=3) and connected to the loop index.
> -Created property nodes for X & Y scale, range, minimum & maximum in
> the second frame, and input their values.
>
> What happens is that only the original Y axis changes three times as
> though the select
axis inputs are ignored. If relevant, this is
> Labview 6.0i. I'm relatively new to labview so apologize if I'm doing
> something dumb here.
>
> Jerry

I tried your described prog and it seems to work for me (LV 6.02)
If you post your code to email2me@unforgettable.com I can try it here.
Active Participant
wha@atmel
Posts: 230
0 Kudos

Re: Can't change scale ranges on a multiple XY plot

Hello,

I think in every case Jerry should upgrade from Lv6.0 to LabVIEW 6.0.2. This is for free. Simpy download this upgrade from Natinst - as far as I remember, there were some bugs removed in 6.0.2 - version.
regards
wha
Member
G.Ramian
Posts: 3
0 Kudos

Re: Can't change scale ranges on a multiple XY plot

wha, Thanks for that tip. I just upgraded to 6.02, unfortunately, it
didn't change the multiple plot scale behavior. The mass compile part
of the upgrade did try my patience, and the log showed numerous
errors, so I hope it really installed properly.

"wha@atmel" wrote in message news:<506500000005000000337C0000-1021771306000@exchange.ni.com>...
> Hello,
>
> I think in every case Jerry should upgrade from Lv6.0 to LabVIEW
> 6.0.2. This is for free. Simpy download this upgrade from Natinst -
> as far as I remember, there were some bugs removed in 6.0.2 - version.
> regards
> wha

DaveR, I e-mailed the test file graph.vi to you earlier. I hope you
can spot my problem.

Thanks.

Jerry
Member
DaveR
Posts: 28
0 Kudos

Re: Can't change scale ranges on a multiple XY plot

Hi,
I think I found your bug. In your inner sequence you have a single property node expanded to write to 3
properties: ActPlot, ActXScl and ActYScl. Placing an Error Handler on the error output of this property node
reveals a problem.

You only have one XScale yet you are trying to select XScales 0,1,2 in the your loop. Because XScales 1 and 2
don't exist it seems the whole property node aborts without setting the Active YScale on these iterations. The
solution is to wire a constant 0 to the ActXScl input instead of the [i] terminal. I guess you could also remove
this property entirely since if you have only 1 X Scale you shouldn't have to select it at all.

I notice also in your example that you have Autoscaling of the Y axis turned on for p
lots amplitude 2 and 3 and
this also prevents manlual scaling.

Hope this solves it for you; your fixed example seems ok here.

Regards,
DaveR.
Member
G.Ramian
Posts: 3
0 Kudos

Re: Can't change scale ranges on a multiple XY plot

Thank you Dave. That indeed was the problem. I didn't know that
property nodes had an error output. The autoscaling kept turning
itself back on, probably because of the property node error.

Jerry

DaveR wrote in message news:<3CF75A5D.7F43CCFE@unforgettable.com>...
> Hi,
> I think I found your bug. In your inner sequence you have a single property node expanded to write to 3
> properties: ActPlot, ActXScl and ActYScl. Placing an Error Handler on the error output of this property node
> reveals a problem.
>
> You only have one XScale yet you are trying to select XScales 0,1,2 in the your loop. Because XScales 1 and 2
> don't exist it seems the whole property node aborts without setting the Active Y
Scale on these iterations. The
> solution is to wire a constant 0 to the ActXScl input instead of the [i] terminal. I guess you could also remove
> this property entirely since if you have only 1 X Scale you shouldn't have to select it at all.
>
> I notice also in your example that you have Autoscaling of the Y axis turned on for plots amplitude 2 and 3 and
> this also prevents manlual scaling.
>
> Hope this solves it for you; your fixed example seems ok here.
>
> Regards,
> DaveR.