Skip to main content

ChkQuery_StatEventFreePeriodMin_AsyncResult

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

double ChkQuery_StatEventFreePeriodMin_AsyncResult(dword aCheckId);

Method Syntax

Method Syntax
check.QueryStatEventFreePeriodMinAsyncResult();

Description

Returns the minimum timely distance between events and check starts/stops. The data has to be queried first using testWaitForCheckQuery.

Parameters

  • aCheckId: Identifier of the queried Check.

Return Values

  • < 0: Refers to the query error codes
    • Note: There is a meaningful value available and a positive return value is supplied even if the check has not generated any event.
  • ≥ 0: Minimum timely distance current precision

Example

long result;
dword checkId;
double period;
checkId = ChkStart_MsgRelCycleTimeViolation(VehicleMotion, 0.9, 1.1);
// ... execute test sequence
result = testWaitForCheckQuery(checkId, 10000);
if (result == 1)
  period = ChkQuery_StatEventFreePeriodMin_AsyncResult(checkId);