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.
Related Functions
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);