Step 12 : Monitor Status

After the conversion starts, various operation states of the device can be monitored.

Status

The status of device can be monitored by function AioGetAoStatus.

Ret = AioGetAoStatus ( Id , AoStatus )

In AoStatus, specify the address of the variable that stores the status.
Since AoStatushas meaning for each bit, in order to check the status of a certain status, please obtain whether the corresponding bit is ON or OFF.

Number of Generating Times

Execute function AioGetAoSamplingCount to get the number of generating times to be outputted.
This function is available only in device buffer mode.

Ret = AioGetAoSamplingCount ( ID , AoSamplingCount )

In AoSamplingCount, specify the address of the variable that stores the number of generating times.
If using RING memory, the value returns to 0 when memory is crossed.
If using RING memory, the number of times of generating returns to 0 each time the repeat operation is completed.

Number of Repeat Times

Execute function AioGetAoRepeatCount get current number of repeat times.
This function is available only in device buffer mode.

Ret = AioGetAoRepeatCount ( ID , AoRepeatCount )

In AoRepeatCount, specify the address of the variable that stores the number of repeat times.

The figure above shows the relationship between the number of generating times and the number of repeat times when using RING memory.
Repeat count is added every time ring memory circulation is repeated, and the number of generating times returns to 0.

Number of Transfer Times

Execute function AioGetAoTransferCount to get current number of transfer times.
This function is available only in device buffer mode.

Ret = AioGetAoiTransferCount ( ID , AoTransferCount )

In AoTransferCount, specify the address of the variable that stores the number of transfer times.
When overwriting memory is used, the value returns to 0 when memory is crossed.

Number of Memory Laps

Execute function AioGetAoTransferLap to get the number of memory laps.
This function is available only in device buffer mode.

Ret = AioGetAoTransferLap ( ID , Lap )

In Lap, specify the address of the variable that stores the number of laps.