Gets the transfer size for user buffer mode.
Ret = AioGetAiTransferSize ( Id, AutoMode, TransferSize )
Id [ C, C++ : short ] [ Python : ctypes.c_short ]
Specify the ID obtained by the AioInit function.
AutoMode [ C, C++ : short * ] [ Python : ctypes.POINTER(ctypes.c_short) ]
Stores the method of setting the transfer size.
Macro |
Value |
|
AI_TRANSFERSIZE_MANUAL |
0 |
Set the transfer size manually |
AI_TRANSFERSIZE_AUTO |
1 |
Set the transfer size automatically |
TransferSize [ C, C++ : long * ] [ Python : cytpes.POINTER(ctypes.c_long) ]
Stores the transfer size.
Transfer size is set in number of packets.
Ret [ C, C++ : long ] [ Python : ctypes.c_long ]
Return values |
Content |
0 |
Normality completion |
7 |
Execute AioResetDevice function because the device has recovered from standby mode |
10001 |
Invalid Id was specified |
10002 |
AIO driver can't be called |
12530 |
AutoMode is NULL. Please specify the address of the variable in the parameter |
12531 |
TransferSize is NULL. Please specify the address of the variable in the parameter |
20001 |
This function can't be used by this device |
20003 |
Can not use because another process is using the device |
22520 |
An internal driver error has occurred. |
The initial value for all devices is as follows
AutoMode = 1
TransferSize = Since the transfer size is set automatically, it varies depending on the device.
AI-1664UG-PE |
1 |
Get the transfer size for one transfer in user buffer mode.
Please refer to the AioSetAiTransferSize function for the specification of automatic setting.
Get the transfer size and the method of setting transfer size.
C, C++ |
long Ret; short AutoMode; |
Python |
Ret = ctypes.c_long() |