Retrieves the number of data that are transferred
from the user memory.
This function can only be used when the transfer mode of the conversion
data that is set by AioSetAiTransferMode is User buffer mode.
It cannot be used when the transfer mode of the conversion data is Device
buffer mode.
Ret = AioGetAiTransferCount ( ID , AiTransferCount )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AiTransferCount
[ VB.NET : Integer ] [ C, C++ : long * ] [ C# : out int ] [ Python : ctypes.POINTER(ctypes.c_long)
]
Specifies the address of the variable that stores the transfer count.
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 |
12140 |
Pointer
to AiTransferCount is NULL |
20001 |
This function can't be used by this device |
20003 |
Can
not use because another process is using the device |
In all devices, AiTransferCount = 0
As conversion is started by AioStartAi, AiTransferCount is reset to 0 automatically.
It's not the number of all the transferred
count, it's the transferred position in the user buffer.
If using User buffer mode, as function AioStartAi/AioStartAiSync is performed,
the conversion data will be stored from the beginning of the buffer.
0 is returned to the transfer count at the
gap of memory.
The total transfer count can be confirmed by using this function along
with function AioGetAiTransferLap.
If [Not overwrite the memory] is set by function AioSetAiMemoryType,
it can be avoided that 0 is returned to the transfer count,
by using function AioSetAiTransferData to allocate a buffer which is larger
than the expect transfer count.
This function can be executed if the device is in operation.
This function cannot be used on devices without the analog input function.
AI-1204Z-PE |
For optimization, data is transferred to the PC side every 128-512 samplings. |
Retrieves the number of data that are transferred from the user memory.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |