Step 7 : Set Clock

Selects the type of clock for Analog Input by AioSetAiClockType function.

 

Internal Clock

Input with the period of AD conversion clock installed in the device.
When using the AD conversion clock, it is necessary to set the sampling clock by function AioSetAiSamplingClock.

 

External Clock

Input at the timing of pulse input from the outside.

 

Event Controller Output

The output signal from the event controller can be used as a clock.
Please refer to the Event Controller tutorial.

 


Set the analog input clock by using function AioSetAiClockType.

Ret = AioSetAiClockType ( Id , AiClockType )

In AiClockType, set the clock type.

0

Internal Clock

1

External Clock

10

Event Controller Output

 


Set the internal clock of analog input by using function AioSetAiSamplingClock. This setting is unnecessary when the clock is set to be External Clock.

Ret = AioSetAiSamplingClock ( Id , AiSamplingClock )

In AiSamplingClock, specify the internal clock in usec.