Retrieves the transfer size for user buffer mode.
Ret = AioGetAiTransferSize ( Id, AutoMode, TransferSize )
Id [
VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specify the ID obtained by the AioInit function.
AutoMode
[ VB.NET : Short ][ C, C++ : short * ][ C# : out 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
[ VB.NET : Integer ][ C, C++ : long * ][ C# : out int ][ Python
: cytpes.POINTER(ctypes.c_long) ]
Stores the transfer size.
Transfer size is set in number of packets.
Ret [ VB.NET : Integer ] [ C, C++ : long ] [ C# : int ] [ 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 AIO-163202G-PE |
1 |
Retrieves the transfer size for one transfer in user buffer mode.
Please refer to the AioSetAiTransferSize function for the specification of automatic setting.
Retrieves the transfer size and the method of setting transfer size.
VB.NET |
Dim Ret As Integer |
C, C++ |
long Ret; short AutoMode; |
C# |
int Ret; short AutoMode; |
Python |
Ret = ctypes.c_long() |