DioResetDevice


Function

Resets device.

Format

Ret = DioResetDevice ( Id )

Parameters

Id [ C: short ][ Python: ctypes.c_short ]
Specify 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 specified.

DIO_ERR_DLL_CALL_DRIVER

10002

Driver cannot be called (failed in ioctl).

DIO_ERR_SYS_MEMORY

20000

Failed in memory.

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

Initial Value

None

Remarks

Initializes device's software work.
When this function is executed, all using interrupt are prohibited.

The status of all output ports are 0 except DIO-0808RN-USB.
On DIO-0808RN-USB, the status of all output ports are 1.

Example

C

Ret = DioResetDevice ( Id );
 

Python

Ret = cdio.DioResetDevice ( Id )
 

See Also

None