11-04-2008 10:46 AM
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?
11-04-2008 07:55 PM
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 .)
Cheers!
11-04-2008 08:09 PM
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.
11-05-2008 06:46 AM
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