The sampling stop condition is selected from the following table. The control of Sampling start and stop are independent, and they are set separately.
Stop Conversion by the Specified Times |
External Trigger Rising Edge |
External Trigger Falling Edge |
Level Comparison |
Command (AioStopAi) |
In Range Comparison |
Out Range Comparison |
Event Controller Output |
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.
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.
The stop condition is set by function AioSetAiStopTrigger.
Ret = AioSetAiStopTrigger ( Id , AiStopTrigger )
The values and meanings set in AiStopTriggerare as follows.
0 |
top Conversion by the Specified Times |
1 |
External Trigger Rising Edge |
2 |
External Trigger Falling Edge |
3 |
Level Comparison |
4 |
Command (AioStopAi) |
The values that can be set depend on the devices. Please refer to [Specifications
based on devices] of function AioSetAiStopTrigger.
When level comparison is used as the stop condition, please set
the level comparison stop condition.
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.