TrnGetUnits
Gets the data units for the trend tag plotted by a specified Pen.
Syntax
TrnGetUnits(AN, Pen)
AN:
The AN of the chosen trend.
Pen:
The trend pen number:
0 - The pen currently in focus
1...8 - Pen1. . .Pen8
Return Value
The data units for the trend tag plotted by Pen, otherwise an empty string is returned, and an error code is set. You can call the IsError() function to get the actual error code.
Related Functions
Example
! For the trend at AN20
DspText(31,0,TrnGetUnits(20,0));
! Displays the data units for the focus pen.
See Also