There are two kinds of transfer method of conversion data.
After conversion starts, the conversion data is stored in the device buffer (the memory of the device or the memory inside the driver). The device buffer can be used as FIFO or RING memory. The application executes the function when necessary and obtains conversion data from the device buffer. In the device buffer mode, there is also a function that can handle conversion data with the number of sampling times as a unit, and a function to acquire conversion data directly as a voltage value, and it can be used more easily than the user buffer mode. In addition, since functions that can be used for most applications are prepared, it is usually recommended to use the device buffer mode. |
Before starting the conversion, secure the application memory that stores the conversion data and register it. After the conversion starts, the conversion data is stored directly in the application memory via the driver. The user buffer can select whether to overwrite the memory or not. For devices with bus master transfer function, bus master transfer
is automatically used in user buffer mode.
|
Use function AioSetAiTransferMode to set transfer mode.
Ret = AioSetAiTransferMode ( Id , AiTransferMode )
Set the transfer method to AiTransferMode. AiTransferMode = 0 is in device buffer mode, AiTransfer Mode = 1 is in user buffer mode.
When using user buffer mode, please set user buffer.