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

AVEVA™ Plant SCADA

TrnGetPeriod

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the current display period of a trend. (To obtain the sampling period, use the TrnInfo function.)

Syntax

TrnGetPeriod(nAN)

nAN:

The AN of the chosen trend.

Return Value

The current display period of a trend (in seconds), or 0 (zero) if an error code is detected.

TrnSetPeriod, TrnInfo

Example

/* For the trend at AN20, get and display the current display
period. */

! If the period is 10 seconds

INT Period;

STRING Str;

Period=TrnGetPeriod(20);

Str=TimeToStr(Period,5);

DspStr(31,"",Str);

See Also

Trend Functions

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