Step 7 : Set Start Condition

Set the conversion start condition by using function AioSetAoStartTrigger.
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].

Ret = AioSetAoStartTrigger ( Id , AoStartTrigger )

The values and meanings set in AoStartTrigger are as follows.

0

Software

1

External trigger rising edge

2

External trigger falling edge

10

Event controller output

The values that can be set depend on the devices.
Please refer to [Specifications based on devices] of function AioSetAoStartTrigger.

 

Software

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

 

External Trigger Rising / Falling Edge

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.

 

Event Controller Output

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.