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

AVEVA™ Plant SCADA

TrnSetCursor

  • Last UpdatedJul 18, 2023
  • 1 minute read

Moves the trend cursor by a specified number of samples. If the trend cursor is disabled, this function enables it. If the cursor is enabled and the number of samples is 0 (zero), the cursor is disabled. If the cursor is moved off the current trend frame, the trend scrolls.

Syntax

TrnSetCursor(nAN, Samples)

AN:

The AN where the trend is located. Set to -1 for all trends on the current page.

Samples:

The number of samples to move the cursor.

Return Value

0 (zero) if successful, otherwise an error code is returned.

TrnGetCursorTime, TrnGetCursorValue, TrnGetCursorValueStr, TrnSetCursorPos

Example

! For the trend at AN20

TrnSetCursor(20,1);

! Moves the trend cursor forwards 1 sample.

TrnSetCursor(-1,-40);

! Moves the trend cursor (of all trends on the current trend page)
backwards 40 samples.

See Also

Trend Functions

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