This is more for practice than anything else. I've added a CAPL node before the graphics window (Location of CAPL node) and I'm just trying to get familiar with doing some simple things like adding offsets to signals and things.
I'm able to pass it through CAN signals untouched if I want to using the following:
on message CAN1.*
{
message CAN1.* msg;
if(this.dir == rx) {
msg = this;
output(msg);
}
}
The problem is that I can't work out how to do this for FlexRay. I've tried a few combinations based on the following but always end up with an error;
on frFrame * {
frFrame * myFrame;
if(this.dir == rx) {
myFrame= this;
output(myFrame);
}
}
Any pointers would be greatly appreciated.