Skip to main content
Open topic with navigation CAPL Functions » LIN » linResetStatistics

linResetStatistics

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • void linResetStatistics(); // form 1
  • void linResetStatistics(long channel); // form 2

Description

Resets LIN channel statistics. Note There are two ways to call this function:
  • Calling this function without the explicit channel is only possible from a CAPL program defined in the Simulation/Test Setup. The statistics for the channel determined by the current bus context are reset.
  • The function with the explicit channel can be called from a CAPL program defined in Measurement Setup only.

Parameters

  • channel: LIN channel (1-based)

Return Values

Example

on key 'r' 
{ 
   // reset statistics on LIN 1
   linResetStatistics(1);
}