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

TrnSamplesConfigured

Gets the number of samples configured for the currently displayed trend.

Syntax

TrnSamplesConfigured(AN)

AN:

The AN where the trend is located.

Return Value

The number of samples configured for the trend, or 0 (zero) if an error is detected. You can call the IsError() function to get the actual error code.

Example

/* For the trend at AN20, get and display the number of samples */
INT nSamples;
nSamples=TrnSamplesConfigured(20);
DspStr(31,"",IntToStr(nSamples));

See Also

Trend Functions