Send CAN form error frames to test device with CAPL

574 Views Asked by At

I would like to send form error frames to a device, but I can't figure out how to do that (or a crc error, ack error, etc) with CAPL in the CAPL browser. I think I have to add something like errorFrame error in the Variables {} section, but whatever I do the CAPL browser keeps complaining ("parse error").

I can send stuff error through the following code:

on key 'e' {
  output(CAN1.errorFrame;
}

The documentation says that errorFrame.ErrorCode has the following options: enter image description here

1

There are 1 best solutions below

0
On

long canOutputErrorFrame(errorFrame, long dominant, long recessive);