The sampling start condition is set by function AioSetAiStartTrigger.
The control of Sampling start and stop are independent, and they are set
separately.
Ret = AioSetAiStartTrigger ( Id , AiStartTrigger )
The values and meanings set in AiStartTrigger are as follows.
0 |
Software |
1 |
External Trigger Rising Edge |
2 |
External Trigger Falling Edge |
3 |
Level Comparison |
4 |
In Range Comparison |
5 |
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 AioSetAiStartTrigger.
Sampling starts immediately after executing the conversion start function (AioStartAi) under the set sampling condition, and stores the conversion data in memory.
After executing the conversion start function (AioStartAi),
it is in the status of waiting for the external control signal.
When an external control signal (TTL) in the preset edge direction is input,
sampling starts and stores the conversion data in memory.
After executing the conversion start function (AioStartAi),
compare the preset value of comparison level with the magnitude of the
analog signal of the specified channel.
Start storing the conversion data, when they match the comparison condition.
When level comparison is used as the start condition, please set the level comparison start condition.
Start storing the conversion data with the output signal from event
controller which is the start condition.
Please refer to the tutorial of Event
Controller.