Skip to main content

ChkQuery_EventInterval

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long ChkQuery_EventInterval (dword checkId);

Method Syntax

Method Syntax
check.QueryEventInterval();

Description

Returns the last time-interval that has led to the event.

Parameters

  • checkId: Identifier of the queried Check.

Return Values

  • -101: The interval for the last event has been started but not yet terminated.
  • < 0: Refers the query error codes in this chapter.
  • ≥ 0: Time interval in the precision of the check.

Available For

Example

long result;
dword checkId;
checkId = ChkStart_MsgRelCycleTimeViolation(VehicleMotion, 0.9, 1.1);
// ... execute test sequence
result = ChkQuery_EventInterval(checkId);
Write("result = %d", result);