The sampling stop condition is set by function AioSetAiStopTrigger.
The control of Sampling start and stop are independent, and they are set
separately.
If conversion of multiple channels is performed, the sampling at the time
when the external trigger is input stops after the conversion of all channels
has completed.
Ret = AioSetAiStopTrigger ( Id , AiStopTrigger )
The values and meanings set in AiStopTrigger are as follows.
0 |
Stop conversion by the specified times |
1 |
External trigger rising edge |
2 |
External trigger falling edge |
3 |
Level comparison |
4 |
Command (AioStopAi) |
5 |
In Range comparison |
6 |
Out Range comparison |
10 |
Event controller output |
The values that can be set depend on the devices.
Please refer to [Specifications based on devices] of function AioSetAiStopTrigger.
Sampling stops automatically when converting data of the specified number
of sampling times is stored in memory.
When using this stop condition, set the number of sampling times by function
AioSetAiStopTimes.
After sampling starts, it is in the status of waiting for the external
control signal.
When an external control signal in the preset edge direction is input,
sampling stops.
After sampling starts, compare the preset value of comparison level
with the magnitude of the analog signal of the specified channel.
Stop the sampling, when they match the comparison condition.
When level comparison is used as the stop condition, please set the level comparison stop condition.
It is a mode to continue sampling indefinitely.
The sampling operation is stopped when function AioStopAi
is executed or an error occurs.
Stop the conversion with the output signal from event controller which
is the stop condition.
Please refer to the tutorial of Event
Controller.