When using the User Buffer for Analog
Input, it is necessary to register the application memory to which
the conversion data is transferred in advance in the driver.
Use function AioSetAiTransferData
to set user buffer.
Ret = AioSetAiTransferData ( Id , DataNumber , Buffer )
In DataNumber, specify the capacity of application memory in units of
transfer packets.
A transfer packet represents the data size of the smallest unit at the
time of data transfer, and its size is 4 bytes.
In Buffer, specify the address of the allocated array in the application.
The number of arrays must be at least as many as the DataNumber.
Example) When 1000 sampling is performed using 2 channels
Since one packet is used for one sampling, 1000 numbers of arrays are reserved and DataNumber = 1000.
Example) When 1000 sampling is performed using 3 channels
Since two packets are used for one sampling, 2000 numbers are allocated and DataNumber = 2000.
There are several the data formats of User
Buffer for Analog Input.
Please "User Buffer (Analog Input)"
topic in Glossary to know more details.