Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

TrnGetUnits

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the data units for the trend tag plotted by a specified Pen.

Syntax

TrnGetUnits(nAN, 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.

TrnGetFormat, TrnGetScale

Example

! For the trend at AN20

DspText(31,0,TrnGetUnits(20,0));

! Displays the data units for the focus pen.

See Also

Trend Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in