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

AVEVA™ Plant SCADA

TrnGetCursorPos

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the offset of a trend cursor from its origin, in samples.

Syntax

TrnGetCursorPos(nAN)

nAN:

The AN where the trend is located.

Return Value

The offset of a trend cursor from its origin, in samples, or -1 if the trend cursor is disabled.

TrnSetCursorPos

Example

! For the trend at AN20

! If the trend cursor is disabled

Offset=TrnGetCursorPos(20);

! Sets Offset to -1.

! If the trend cursor is 50 samples from the origin

Offset=TrnGetCursorPos(20);

! Sets Offset to 50.

See Also

Trend Functions

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