DioGetPatternEventStatus


Function

The state of the event of the failsafe function is acquired.

Format

Ret = DioGetPatternEventStatus ( Id , &Status )

Parameters

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

Status [C:short *] [Python: ctypes.POINTER(ctypes.c_short)]
Beginning/stop of the event operation is returned.

Value

[Dec]

Description

0

The event has not been generated.

1

The event was generated.

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.

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

Initial Value

None

Remarks

The state of the event operation of the failsafe function is acquired.

Example

C

Ret = DioGetPatternEventStatus( Id , &Status );
 

Python

Ret = cdio.DioGetPatternEventStatus( Id , ctypes.byref(Status) )
 

See Also

DioResetPatternEvent