LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Strip Chart Autoscale

Is there really no easy way to AutoScale my Yaxis in CVI on a stripchart other than the example of keeping a history and rescaling it manually with the history...


thanks,



0 Kudos
Message 1 of 4
(3,595 Views)
Unfortunately yes. Autoscaling is only available for the graph, not for the stripchart. So you have to set the min and max value programmatically for the y-axis of a strip chart.
0 Kudos
Message 2 of 4
(3,573 Views)

Fortunately, this should not be too difficult to do. Basically I would approach it like this (as long as you want to only have the scale grow, if you want it to shrink back, that takes more logic and requires that you keep track of what is "on chart"):

Define two variables to hold the min and max scale values.

If the current value is more negative than the min, set min to that value, change the scale minimum.

Else, if the current value is more positive than the max, set max to that value, change the scale maximum.

Else do nothing.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 3 of 4
(3,561 Views)
Here is an example of how to set this up

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E17556A4E034080020E74861&p_node=DZ52151&p_source=External

Hope this helps

Bilal Durrani
NI
0 Kudos
Message 4 of 4
(3,538 Views)