LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Stripchart Y scale

I read the example of autostrip that automatic set the Y scale of stripcharts.
I don't need the level of fancy, I just need to change the Y scale as needed.
So I use the function:    
SetAxisRange (PANEL1, PANEL1_STRIPCHART, VAL_NO_CHANGE, 0, 1,
         VAL_MANUAL, Ymin, Ymax);
But I got error and said it is not supported. I could not find in the "setctrlattrib()" for stripchart Y scale.
Could someone suggest a better way that can set the strip chart scale? Thanks.
0 Kudos
Message 1 of 5
(3,531 Views)
SetAxisScalingMode (panel, control, VAL_LEFT_YAXIS, VAL_MANUAL, min, max); should meet your needs.
SetAxisRange became obsoleted when graphs gained the right Y-axis and should not be used anyway.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,522 Views)
Thanks, it works!
0 Kudos
Message 3 of 5
(3,505 Views)
Hy,
 
I'm getting trouble by SetAxisRange in log-mode.
I need Y-Achses from 0.1 to 20, but using this order above I get the range 0.1 to 100.0
 
does anyone know, how to scale the axis in this case properly ?
 
thanks
 
franky
 
0 Kudos
Message 4 of 5
(3,477 Views)

franky71:

Unfortunately it seems that you can't achieve what you want. Look at this post by Wendy for an explanation on how graphs accomodate scales when in log mode. It's my understandment that strip chart will work the same way.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,473 Views)