Monitor CAN/Flexray messages on the bus CAPL

2.1k views Asked by At

I'm trying to learn CAPL and Im trying to accomplish the following . I have a huge matrix of communication with strict timing. Id like to have a CAPL code which can monitor all the messages if the were received or not , check there periodicity. I'm able to read the Write CSV files in and from CAPL and thats how i'm getting my input and transmitting the output.

The point here. does CAPL supports providing insights or statistics about a message like (Max peroid , avg Peroid , Min Peroid) , was it transmitted or not.how to obtian such info from CAPL

1

There are 1 answers

0
VioletVynil On

CAPL primitive functions provide you TestCheck functions, which have a multitude of versions (check relative cycle time, Absolute Cycle time, Occurence etc.) for checking in a parallel thread something specific about your messages (like cycle time).

ChkCreate_MsgAbsCycleTimeViolation() is one example.

They provide you a test result with detailed tables of minimum-maximum cycle times, distribution on a cycle time scale and so on.

Search TestCheck functions up in the CANoe help for description and examples.