Skip to main content
Open topic with navigation CAPL Functions » General » Event Procedures » on *

on *

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE You can access the on * event procedure in Measurement Setup. If you add a CAPL program in Measurement Setup, it will initially act as a filter, as only messages/frames called explicitly in the CAPL program will be allowed through. on * enables all messages/frames not executed in the context of a previous procedure to be forwarded in all bus systems. You can add the event procedure in the Navigator of the CAPL Browser. Example All messages except the CAN message with the ID 500 are forwarded.
// blocking CAN ID 500
on message 500 {
}
on * {
  output(this);
}
In the event procedure, the keyword this can only be used for a call in the output function and to read out the time stamp. Example
// counting and viewing all frames (after a filter)
on * {
  write("Received frame nr. %d, time %d", ++gFrameCount, this.time);
  output(this);
}
Unconditional (Boxed) Event Procedures