Skip to main content

ChkQuery_EventTiming

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

float ChkQuery_EventTiming (dword checkId);

Method Syntax

Method Syntax
check.QueryEventTiming();

Description

Retrieves the timing value that has been violated in the LIN specific check.

Parameters

  • checkId: Identifier of the queried Check.

Return Values

  • < 0: Refers the query error codes
  • ≥ 0: Timing value depending on the check type

Available For

Example

testcase tcTSL_LINSyncBreak()
{
   dword checkId;
   float lastMeasuredSyncBreakLength;

   checkId = ChkStart_LINSyncBreakTimingViolation (18, 20);
   testWaitForTimeout(5000);
   ChkControl_Stop(checkId);

   lastMeasuredSyncBreakLength = ChkQuery_EventTiming(checkId);
   testStep("Evaluation", "Last measured sync break length is %.2f bits", lastMeasuredSyncBreakLength);
}