Skip to main content

ChkStart_LINDiagDelayTimesViolation

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • dword ChkStart_LINDiagDelayTimesViolation (Node ObservedNode);
  • dword ChkStart_LINDiagDelayTimesViolation ();
  • dword ChkStart_LINDiagDelayTimesViolation(Node ObservedNode, char[] CaplCallback);
  • dword ChkStart_LINDiagDelayTimesViolation(char[] CaplCallback);

Constructor

TestCheck::StartLINDiagDelayTimesViolation (Node ObservedNode)
  • TestCheck::StartLINDiagDelayTimesViolation ();
  • TestCheck::StartLINDiagDelayTimesViolation(Node ObservedNode, char[] CaplCallback);
  • TestCheck::StartLINDiagDelayTimesViolation(char[] CaplCallback);

Description

Checks the values of P2_min and ST_min for a specified LIN Slave node or for all LIN Slaves defined in LDF. An event will be generated, if the measured P2_min or ST_min value is smaller than one specified in the database (LDF). Note: The check monitors bus traffic and automatically recognizes diagnostic frames. Note: Dependent on the used parameter type the appropriate bus context in a multibus environment has only to be set before the function is called if the corresponding database object will be ambiguous. Further information on site MultiBus Environment.

Parameters

  • ObservedNode: Slave node to be checked.
  • CaplCallback: Name of CAPL callback function to be called on generated event. In simulation nodes this parameter has to be set. In test modules this parameter is optional.

Return Values

  • 0: Check could not be created and must not be referenced
  • > 0: Check was created successfully and may be referenced using the returned (handle-) value.

Possible Errors

  • The specified node is Master
  • Specified node does not appear under “Node Attributes” section in LDF or P2_min, ST_min are not defined
  • CAPL callback does not exist

Check-specific Queries

Example

...
dword checkId;
// Create and start the check for LIN diagnostic delay times
checkId = ChkStart_LINDiagDelayTimesViolation("LINDiagDelayTimesCallback"); 
...
// CAPL callback for violation notification
void LINDiagDelayTimesCallback (dword aCheckId)
{   ChkQuery_EventStatusToWrite(aCheckId);
}
Functions to Configure ChecksCommands to Control Checks