Function
Retrieves the list of available devices. This function supports multi-process.
Format
Ret = AioQueryDeviceName(Index, DeviceName, Device)
Parameters
Index
[ C, C++ : short ] [ Python : ctypes.c_short ]
This parameter should be zero for the first call and then be incremented
by 1 for subsequent calls.
DeviceName
[ C, C++ : char * ] [ Python : ctypes.c_char_p ]
Returns the device name. (For example: "AIO000")
Device
[ C, C++ : char * ] [ Python : ctypes.c_char_p ]
Returns the board name. (For example: "AIO-163202F-PE")
Ret [ C, C++ : long ] [ Python : ctypes.c_long ]
Return values |
Content |
0 |
Normality completion |
10006 |
Device
not found |
10007 |
Pointer
to DeviceName is NULL |
10008 |
Pointer
to Device is NULL |
Remarks
This function can be used when you are creating
a general-purpose application about the selected device to be used.
Index is incremented by 1 from 0 in order for subsequent calls until the
function returns error.
Example
Retrieves the information of the device by Index=0.
C, C++ |
long
Ret; |
Python |
Ret
= ctypes.c_long() |