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

AVEVA™ Plant SCADA

TrnGetMode

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the mode (real-time or historical trending) of the trend pen.

Syntax

TrnGetMode(nAN, Pen)

nAN:

The AN of the chosen trend.

Pen:

The trend pen number:

0 - The pen currently in focus

1...8 - Pen1. . .Pen8

Return Value

The current mode, 0 for real-time or 1 for historical.

TrnScroll

Example

! For the trend at AN20

INT Mode;

Mode=TrnGetMode(20,0);

! Gets the current mode of the pen in focus.

IF Mode=0 THEN

DspText(31,0,"Real Time Trending");

ELSE

DspText(31,0,"Historical Trending");

END

See Also

Trend Functions

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