on diagRequest
Valid for: CANoe DE Note: The following syntax forms require a defined target ECU by callingdiagSetTarget(char ecuQualifier[]) beforehand. When using these forms, no semantic check can be performed at compile-time, so no warnings will be emitted for nonexistent diagRequests.
- form 1
- form 2
- form 3
- form 4
Function Syntax
on diagRequest
Description
In case Additional Diagnostic Descriptions are configured for the ECU, the first description with a matching definition for the PDU is searched in the interpretation order. Otherwise, the diagnostic description assigned to the simulation is used immediately. Then the first matching event procedure (top-down) is called.-
on diagRequest <service>// form 1- Is called when a request is received in the ECU simulation that belongs to the indicated diagnostic service.
-
on diagRequest <class>::*// form 2- Is called when the service of the request received belongs to the specified class.
- This procedure may therefore be called for several services!
-
on diagRequest <class>::<instance>::*// form 3- Is called when the service of the request received belongs to the specified class and instance.
- This procedure may therefore be called for several services!
-
on diagRequest *// form 4- Is called when no other event procedure matches.
- This procedure may therefore be called for several services!
-
on diagRequest ECU.<service>// form 5- Is called when a request is received in the ECU simulation that belongs to the indicated diagnostic service.
-
on diagRequest ECU.<class>::*// form 6- Is called when a request is received in the ECU simulation and belongs to the specified class.
- This procedure may therefore be called for several services!
-
on diagRequest ECU.<class>::<instance>::*// form 7- Is called when a request is received in the ECU simulation and belongs to the specified class and instance.
- This procedure may therefore be called for several services!
-
on diagRequest ECU.*// form 8- Is called when a request is received in the ECU simulation and no other event procedure matches.
- This procedure may therefore be called for several services!
output(this) if processing shall continue in blocks of the Measurement Setup.
(1) While the CANdela process knows the concept of a “diagnostic instance”, ODX does not. Starting with CANoe 7.0 it is possible to use new unique service qualifiers, while CAPL programs for earlier CANoe versions might indicate the equivalent long qualifier path. It is not recommended to mix these forms of declaration!