Sets a new scale for a trend pen. In the automatic scaling mode, the zero and full scales are automatically generated.
TrnSetScale(AN, Pen, Percent, Scale)
The AN where the trend is located. Set to -1 for all trends on the current page.
The trend pen number:
-1 - All pens
0 - The pen currently in focus
1...8 - Pen1...Pen8
The scale mode:
-2 - Set both zero and full scales to the default scales.
-1 - Place the trend into automatic scale mode.
0 - Set the zero scale.
100 - Set the full scale.
The new value of the scale. Scale is ignored if Percent is -2.
0 (zero) if successful, otherwise an error is returned.
TrnGetScale, TrnEcho, TrnSetScale
! For the trend at AN20
! Sets the full scale of all pens to 5000.0