Step 10 : Set Delay Sampling

Delay sampling is the sampling performed after the sampling stop conditions are satisfied. After sampling stop condition other than forced stop by AioStopAi function is satisfied, sampling for the number of delay sampling times is performed and conversion data is stored in memory. If the number of delay sampling times is set to 0, sampling is terminated when the sampling stop condition is satisfied.

Set the number of delay sampling times by using function AioSetAiStopDelayTimes.

Ret = AioSetAiStopDelayTimes ( Id , AiStopDelayTimes)

In AiStopDelayTimes, set the number of delay sampling times.
The number of delay sampling times means the number of times conversion is performed, irrespective of the number of channels used for conversion. It is irrelevant to the number of channels used for conversion.