TrendSetTime
- Last UpdatedJul 18, 2023
- 1 minute read
Sets the end time for all the pens on a trend. Samples taken after this time will not be displayed. You can enter an end time in the Value argument, or leave the Value blank - a form is then displayed in run time for the operator to enter a value for the end time.
Syntax
TrendSetTime(AN [, Value] )
nAN:
The AN of the trend.
Value:
An optional value for the end time, as a string. Samples taken after this time will not be displayed.
Return Value
0 (zero) if successful, otherwise an error code is returned.
Related Functions
TrendDspCursorComment, TrendDspCursorScale, TrendDspCursorTag, TrendDspCursorTime, TrendDspCursorValue, TrendGetAn, TrendRun, TrendSetDate, TrendSetScale, TrendSetSpan, TrendSetTimebase, TrendZoom
Example
See built-in trend templates.