PCNT_COUNTER_ERR_CALLBACK


Function

Interrupt callback type

Format

CallBackProc ( Id, Message, wParam, lParam, Param )

Parameters

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

Message [ C, C++ : short] [Python: ctypes.c_short]
The message number that caused the callback function call is passed.

Definition

Value

CNTM_COUNTER_ERROR

0x1141

wParam [ C, C++ : long] [Python: ctypes.c_long]
Channel number is passed when counter error occurs.

lParam [ C, C++ : long] [Python: ctypes.c_long]
Error kind is passed when counter error occurs.
Abnormal input error: CNT_AI_ERROR
Filter error: CNT_FLT_ERROR
Alarm error: CNT_ALM_ERROR

Param [ C, C++ : void *] [Python: ctypes.c_void_p]
The parameter which is passed in CntSetCounterErrorCallbackProc is passed.

Return Value

None

Remarks

You should write the substance definition for interrupt callback function in this format.

See Also

CntSetCounterErrorEvent CntSetCounterErrorCallbackProc