Retrieves the event factor of the message notification that is related to the analog output.
Ret = AioGetAoEvent ( Id , hWnd , AoEvent )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
hWnd
[ VB.NET : IntPtr ] [ C, C++ : HWND * ] [ C# : out IntPtr ] [ Python : ctypes.POINTER(ctypes.wintypes.HANDLE)
]
Specifies the address of the variable that stores Window handle.
If the handle doesn't need to be retrieved, specify NULL.
AoEvent
[ VB.NET : Integer ] [ C, C++ : long * ] [ C# : out int ] [ Python : ctypes.POINTER(ctypes.c_long)
]
Specifies the address of the variable that stores the event factor.
AoEvent has the following meanings in bit.
The available event factor is based on whether the device buffer is used or whether the user buffer is used.
Event factor |
Using Device buffer |
Using User buffer |
Macro |
Value |
Yes |
Yes |
AOE_START |
00000002H |
|
Yes |
Yes |
AOE_RPTEND |
00000010H |
|
Yes |
Yes |
AOE_END |
00000020H |
|
Yes |
No |
AOE_DATA_NUM |
00000080H |
|
No |
Yes |
AOE_DATA_TSF |
00000100H |
|
Yes |
Yes |
AOE_SCERR |
00020000H |
|
Yes |
Yes |
AOE_DAERR |
00040000H |
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 |
13290 |
Pointer
to AoEvent is NULL |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
20003 |
Can
not use because another process is using the device |
In all devices, AoEvent = 0
This function cannot be used on devices without
the analog output function.
If the device is in operation, the function cannot be performed.
Retrieves the event factor of the message notification.
VB.NET |
Dim Ret As Integer |
C, C++ |
long Ret; |
C# |
int Ret; |
Python |
Ret = ctypes.c_long() |
AioSetAoEvent AioSetAoEventSamplingTimes AioGetAoEventSamplingTimes