Set User Buffer

Set the user buffer with the function AioSetAoTransferData for User Buffer for Analog Output.

Ret = AioSetAoTransferData ( 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 array address secured by the application.
The number of arrays must be at least as many as the DataNumber.

Example) When 1000 generating is performed using 2 channels

Since one packet is used for one generating, 1000 numbers of arrays are allocated, and DataNumber = 1000.

Example) When 1000 generating is performed using 3 channels

Since two packet is used for one generating, 2000 numbers of arrays are allocated, and DataNumber = 2000.

 

Please refer "User Buffer (Analog Output)" topic in Glossary to know more details.