DioResetPatternEvent


Function

It returns from the state of the event.

Format

Ret = DioResetPatternEvent ( Id , Data )

Parameters

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from DioInit.

Data [ VB.NET: Byte] [ C, C++: char * ] [ C#: out byte ] [ Python: ctypes.POINTER(ctypes.c_ubyte) ]
Output data is put in the array. The array is specified for a few minutes of the port by the port numerical order.
Output data is specified from 0H to FFH by the hexadecimal number.

Return Value

Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]

Definition

Value

[Dec]

Description

DIO_ERR_SUCCESS

0

Normal completed.

DIO_ERR_SYS_RECOVERED_FROM_STANDBY

7

Execute DioResetDevice function because the device has recovered from standby mode.

DIO_ERR_DLL_INVALID_ID

10001

Invalid ID specified.

The others (See also: Details of Error Code)

Initial Value

None

Remarks

It returns from the state of the event.

Example

It returns from the state of the event.

VB.NET

Dim Ret As Integer
Dim Data(1) As Byte
Data(0) = 0
Data(1) = 0
Ret = DioResetPatternEvent ( Id , Data(0) )
 

C, C++

long Ret;
char Data[2];
Data[0] = 0;
Data[1] = 0;
Ret = DioResetPatternEvent ( Id , Data );
 

C#

int Ret;
byte[] Data = new byte[2];
Data[0] = 0;
Data[1] = 0;
Ret = dio.ResetPatternEvent ( Id , out Data );
 

Python

Ret = ctypes.c_long()
DataType = ctypes.c_ubyte * 2
Data = DataType()
Data[0] = 0
Data[1] = 0
Ret.value = cdio.DioResetPatternEvent ( Id , Data )
 

See Also

DioGetPatternEventStatus