Diagnostics: Basic CAPL Procedure for a Tester Implementation
Open topic with navigation CAPL Functions » Diagnostics » Basic CAPL Procedure for a Tester Implementation Valid for: CANoe DE This example explains how to implement:- a CAPL test module for the test setup or
- a CAPL tester for the Simulation Setup
Example (Syntax with ECU Qualifier in DiagRequest/Response Objects)
Starting with CANoe 9.0 SP3, the diagnostic target can be defined in the diagnostic object (DiagRequest or DiagResponse) by adding the ECU qualifier. The function DiagSetTarget is no longer necessary.Create and send a request
Changing the parameters of a request
Changing the raw parameters of a request
Reception of a response object, access to symbolic values
Reception of a timeout indication
Example (Deprecated Syntax)
Selection of the target control device
Create and send a request
Changing the parameters of a request
Reception of a response object, access to symbolic values
Reception of a timeout indication
Note
The length of the elements of a qualifier path from the CANdela description file is limited to 50 characters in the CAPL Compiler. Longer names may exceed this limit, but the CAPL program cannot be compiled. Nevertheless, it is possible to specify the qualifier path as a text string in quotation marks: “<Qualifier Path>”. In this case, the qualifier path may be up to 255 characters in length.
Connection of the Communication Layer • Basic CAPL Procedure for an ECU Implementation • Expanded Functions in CAPL