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

AVEVA™ Plant SCADA

TrnSetPeriod

  • Last UpdatedJul 18, 2023
  • 1 minute read

Sets the display period (time base) of a trend. When the period is changed, Plant SCADA reads the historical data to reconstruct the trend data, and refreshes the trend. Every pen has the same display period.

This function clears the span set by the TrnSetSpan() function.

Syntax

TrnSetPeriod(nAN, Period)

AN:

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

Period:

The new sampling period (in seconds) of the trend. To set the display period to the sampling period, set this argument to 0 (zero),

Return Value

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

TrnGetPeriod, TrnEcho, TrendSetTimebase, TrendSetSpan

Example

System Keyboard

Key Sequence

## Enter

Command

TrnSetPeriod(20, Arg1)

Comment

Set a new sampling period for the trend at AN20

See Also

Trend Functions

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