CAPL Script

Selector DIR

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Example Selector DIR (direction of transmission)

on message 0x100 {
  if (this.DIR == Rx) {
    write("message 0x100 received");
  }
  if (this.DIR == Tx) {
    write("message 0x100 sent");
  }
}

Note for CANoe Users

Please note the semantics of Rx for CAPL nodes in the Simulation Setup of CANoe.