General Event Procedures
Valid for: CANoe DE • CANoe4SW DE • CANoe:lite DE • CANoe4SW:lite DE CAPL is a procedural language in which the execution of program blocks is controlled by events. These program blocks are referred to as event procedures. Within an event procedure there may be reactions to the following events:- Receipt of any message
- System variable change
- Notification of system variable updates without value change
- Press of a key
- Elapse of a timer
- State of a replay block has changed
- State of a offline source has changed
- Response to Signal Changes
-
Receipt of a signal
- on signal_update
-
Signal change
- on signal
- Events of Measurement System
-
Initialization of measurement (before start)
- on preStart
-
Program start
- on start
-
Measurement stop has been requested
- on preStop
-
End of measurement
- on stopMeasurement
- AUTOSAR PDU
- Test Support
on key), track the occurrence of messages on the bus (on message), or else execute cyclically defined actions (on timer).
Example
ExampleNote for Using Handlers within CAPL Test Nodes
Note for preStop handler, event handler and time handler:If a test is stopped (test module inactive), these handlers will not be executed within the CAPL test node. Example: In a XML test module a CAPL test node is added.
on preStart() write is displayed, on preStop will not be executed.
Event Procedures: Overview