Skip to main content

ChkQuery_NumEvents

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

long ChkQuery_NumEvents (dword aCheckId);

Method Syntax

Method Syntax
check.QueryNumEvents();

Description

Returns the number of events generated by this check since its initialization.

Parameters

  • aCheckId: Identifier of the queried Check.

Return Values

  • < 0: Refers the query error codes
  • 0: No event has occurred
  • > 0: Number of events

Example

long result;
dword checkId;
checkId = ChkStart_MsgRelCycleTimeViolation(VehicleMotion, 0.9, 1.1);
// ... execute test sequence
result = ChkQuery_NumEvents(checkId);