Skip to main content

testWaitForCheckQuery

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long testWaitForCheckQuery(dword aCheckId, dword aTimeout);

Description

Requests status information about a check with ID aCheckId which is evaluated asynchronously. Waits up to aTimeout ms.

Parameters

  • aCheckId: Handle of the check to be queried.
  • aTimeout: Maximum time that should be waited [ms].
    (Transmission of 0: no timeout controlling)

Return Values

  • < 0: Refers the query error codes
  • 0: Resume due to timeout. No valid data was received asynchronous evaluation.
  • 1: Data received.

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);