Cicode Programming Reference > Cicode Function Categories > Trend Functions Introduction > TrendSetTimebase


Sets a new sampling period for a trend. You can enter a sampling period 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 sampling period.


TrendSetTimebase(AN [, Value] )


The AN of the trend.


An optional value for the sampling period, as a string.

Return Value

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

Related Functions

TrendDspCursorScale, TrendDspCursorTag, TrendDspCursorTime, TrendDspCursorValue, TrendGetAn, TrendRun, TrendSetDate, TrendSetScale, TrendSetSpan, TrendSetTime, TrendZoom


See built-in trend templates.

See Also

Trend Functions