CntExit


Function

Device cannot be accessed after the exit processing is performed.

Format

Ret = CntExit ( Id )

Parameters

Id [ C: short ] [ Python: ctypes.c_short ]
Specifies the device ID retrieved from CntInit.

Return Value

Ret [ C: long ] [ Python: ctypes.c_long ]

Definition

Value

Description

CNT_ERR_SUCCESS

0

Normal Complete

CNT_ERR_DLL_INVALID_ID

10001

Invalid ID is specified.

CNT_ERR_DLL_CALL_DRIVER

10002

Driver cannot be called (failed in ioctl).

CNT_ERR_DLL_CLOSE_FILE

10004

Failed in closing file (close failed).

The other errors: (See also: Details of Error Code)

Initial value

None

Remarks

If the device ID retrieved from CntInit is invalid, the device cannot be accessed. Each function except CntInit cannot be used after this function is called. Only CntInit can be used after this function is called.

Example

C

Ret = CntExit(Id);
 

Python

Ret = ccnt.CntExit(Id)
 

See Also

CntInit