LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

autoscale one side of scale only

Hi,

 

is it possible to auto scale one side of scale while keeping the other side fixed?  

 

If so, could this be toggled while the VI is running?

0 Kudos
Message 1 of 4
(3,143 Views)

Hi daquiry,


daquiry wrote:

Hi,

 

is it possible to auto scale one side of scale while keeping the other side fixed?  

 

If so, could this be toggled while the VI is running?


 

      It is possible to turn X and Y scale auto-scaling property on/off independently and programmatically.  You'll want to create a property-node for the Graph (right-click, create Property Node), right-click on node and under "Properties" select either "X Scale" or "Y Scale", then set the "Scale Fit" property - 0 is OFF, 1 and 2 auto-scale (see the Help for this property Smiley Wink .)

 

Cheers! 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 4
(3,125 Views)

daquiry wrote:

is it possible to auto scale one side of scale while keeping the other side fixed?  


Yes, it is possible, but you have to do it yourself.

 

I assume you want a scale going from min to max but e.g. keep min fixed at 0 while still autoscaling the other end of the axis. Just turn off autoscaling and set min and max using a property node. You could use "array max" on the data to determine the max for the scale.

0 Kudos
Message 3 of 4
(3,123 Views)

Propably what you want is a combination of both posts, only autoscale the max (or min) while keeping the other fixed.

To do so, you first read the YScale.Range.Min property, use Autoscale once and write the obtained Min value back to the same property.

 

Felix 

0 Kudos
Message 4 of 4
(3,102 Views)