Function
Retrieves the list of device which can be used.
Format
Ret = CntQueryDeviceName ( Index , DeviceName , Device )
Parameters
Index
[C: short] [Python: ctypes.c_short]
This parameters should be zero for the first call and then be incremented
for subsequent calls.
DeviceName
[C: char * ] [Python: ctypes.c_char_p]
Return the device name. (For example:"CNT000")
Device
[C: char * ] [Python: ctypes.c_char_p]
Return the device model. (For example:CNT24-4(PCI)H)
Return Value
Ret [C: long] [Python: ctypes.c_long]
Definition |
Value |
Description |
CNT_ERR_SUCCESS |
0 |
Normal Complete |
CNT_ERR_INFO_NOT_FIND_DEVICE |
10051 |
The usable device isn't found. Make sure that the device is registered in setting file. |
The other errors: (See also: Details of Error Code)
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 = CntQueryDeviceName
( Index , DeviceName , Device ); |
Python |
Ret = ccnt.CntQueryDeviceName
( Index , DeviceName , Device ) |
See Also
None