Step 14 : 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 AioGetAiStatus.

Ret = AioGetAiStatus ( Id , AiStatus )

In AiStatus, specify the address of the variable that stores the status.
Since AiStatus has 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 Sampling Times

Execute function AioGetAiSamplingCount to get the number of input sampling.
This function is available only in device buffer mode.

Ret = AioGetAiSamplingCount ( ID , AiSamplingCount )

In AiSamplingCount, specify the address of the variable that stores the number of sampling times.
If using RING memory, the value returns to 0 when memory is crossed.

 

Number of Repeat Times

Execute function AioGetAiRepeatCount to get current number of repeat times.

Ret = AioGetAiRepeatCount ( ID , AiRepeatCount )

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

 

Number of Sampling Times at Stop Trigger Input

Execute function AioGetAiStopTriggerCount to get the number of sampling times when stop trigger is input.
This function is available only in device buffer mode.

Ret = AioGetAiStopTriggerCount ( ID , AiStopTriggerCount )

In AiStopTriggerCount, specify the address of the variable that stores the number of sampling times.

 

Number of Transfer Times

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

Ret = AioGetAiTransferCount ( ID , AiTransferCount )

In AiTransferCount, 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 AioGetAiTransferLap to get the number of memory laps.
This function is available only in user buffer mode.

Ret = AioGetAiTransferLap ( ID , Lap )

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

 

Number of Transfer Times at Stop Trigger Input

Execute function AioGetAiStopTriggerTransferCount to get the number of transfer times when stop trigger is input.
This function is available only in user buffer mode.

Ret = AioGetAiStopTriggerTransferCount ( ID , Count )

In Count, specify the address of the variable that stores the number of transfer times.