Selector SIM
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 SIMULATED (message from simulated node)
on message LightState {
if (this.dir == Rx) {
if (!this.SIMULATED) {
write("message LightState received from real system");
}
putvalue(Bulb,this.OnOff);
}
else {
// write("message LightState received as Tx");
}
}
Note for CANoe Users
Please note the semantics of Rx for CAPL nodes in the Simulation Setup of CANoe.