Skip to main content

ChkQuery_NumEvents_AsyncResult

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long ChkQuery_NumEvents_AsyncResult(dword aCheckId);

Method Syntax

Method Syntax
check.QueryNumEventsAsyncResult();

Description

Returns the number of events generated by this check since its initialization. The data has to be queried first using testWaitForCheckQuery.

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 = testWaitForCheckQuery(checkId, 10000);
if (result == 1)
  result = ChkQuery_NumEvents_AsyncResult(checkId);