Function
Retrieves the list of the devices which are available for use.
Format
Ret = DioQueryDeviceName ( Index , DeviceName , Device )
Parameters
Index [C:short]
[Python: ctypes.c_short]
This parameter should be zero for the first call and then be incremented
for subsequent calls.
DeviceName
[C:char*] [Python: ctypes.c_char_p]
Returns device name. (For example: "DIO000")
Device
[C:char*] [Python: ctypes.c_char_p]
Returns board name. (For example: PIO-32/32L(PCI)H)
Return Value
Ret [C:long] [Python: ctypes.c_long]
Definition |
Value [Dec] |
Description |
DIO_ERR_SUCCESS |
0 |
Normal complete |
DIO_ERR_INFO_NOT_FIND_DEVICE |
10051 |
The usable device isn't found. |
The other errors: (See also: Error code details)
Remarks
This function can be used when you are creating
a general-purpose application about the selected device to be used.
The Index is set to zero for the first call. And then it should be incremented
for subsequent calls until the function returns error.
Example
C |
Ret = DioQueryDeviceName
( Index , DeviceName , Device ); |
Python |
Ret = cdio.DioQueryDeviceName
( Index , DeviceName , Device ) |
See Also
None