DioExit


Function

Device cannot be accessed after the exit processing is performed.

Format

Ret = DioExit ( Id )

Parameters

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

Return Value

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

Definition

Value

[Dec]

Description

DIO_ERR_SUCCESS

0

Normal complete

DIO_ERR_DLL_INVALID_ID

10001

Invalid ID is specified.

DIO_ERR_DLL_CALL_DRIVER

10002

Driver cannot be called (failed in ioctl).

DIO_ERR_DLL_CLOSE_FILE

10004

Failed in closing file (close failed).

The other errors: (See also: Error code details)

Initial Value

None

Remarks

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

Example

C

Ret = DioExit ( Id );
 

Python

Ret = cdio.DioExit ( Id )
 

See Also

DioInit