LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I the range of a 2nd y axis?

Solved!
Go to solution

I have created an xy graph with two y-axes and have associated plots 0-5 with y scale index 0 (Plot.YScaleIdx) and plots 5-11 with y scale index 1. I would like to change the minimum and maximum of each of the y ranges programmatically. I've tried making different plots (associated with different axes) the default and changing the YScale.Range.Minimum or the YScale.Range.Maximum property. But this always affects the same scale no matter which plot is the default. Can anyone tell me how to select the y-scale that these properties affect?

 

Using LabVIEW 2012 32-bit on Windows7.

 

Tom

 

------------------------------
All statements are my opinion and worth every cent you paid for them.
Tom Whitaker, CLD
- - - - - - - - - - - - - - - - - - - -
"Give every man thy ear but few thy voice."
Polonius in Hamlet.
0 Kudos
Message 1 of 4
(2,643 Views)

Somehow the word "change" was dropped out of the subject - sorry.

 

Tom

------------------------------
All statements are my opinion and worth every cent you paid for them.
Tom Whitaker, CLD
- - - - - - - - - - - - - - - - - - - -
"Give every man thy ear but few thy voice."
Polonius in Hamlet.
0 Kudos
Message 2 of 4
(2,642 Views)
Solution
Accepted by topic author TJWhit

If I understand right, you need to set the Active Y Scale property before changing parameters for that scale.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 3 of 4
(2,637 Views)

Thanks Tim. I must have looked at the properties five times for exactly that. Ah well, I'll look harder next time before posting.

 

Tom

------------------------------
All statements are my opinion and worth every cent you paid for them.
Tom Whitaker, CLD
- - - - - - - - - - - - - - - - - - - -
"Give every man thy ear but few thy voice."
Polonius in Hamlet.
0 Kudos
Message 4 of 4
(2,631 Views)