Step 7 : Set Start Condition

Set the conversion start condition by using function AioSetAoStartTrigger.

Ret = AioSetAoStartTrigger ( Id , AoStartTrigger )

The sampling start condition is selected from the following table.

0

Software

1

External trigger rising edge

2

External trigger falling edge

10

Event controller output

 

When AoStartTrigger = 0, the start condition is [Software], conversion starts as function AioStartAo is performed.


When AoStartTrigger = 1 or 2, the start condition is external trigger input (TTL).
After function AioStartAo is performed, the status of [Wait the start trigger] turns ON until an external trigger is input.

 

When AoStartTrigger = 10, conversion starts with the output signal from the event controller which is the start condition.
Please refer to the tutorial of Event Controller.

For RING memory, if the number of repeat times is set, each time the repeat ends, it is in the status of [Wait the start trigger].