Specifications
5 CAN I/O Support for FIFO
5-44
This implementation behaves exactly like the first implementation, but nicely
shows how CAN messages (to be sent out) can be constructed dynamically at
run-time.
Example 4
Now lets look at the situation where the Read depth parameter of the FIFO
Read block in the model above is set to 1 instead of 2 or 3. This leads to a receive
FIFO overflow when the execution time reaches 256 ms. Here, as an example,
the execution should be stopped, if the overflow occurs. This can be easily
achieved by evaluating the lost message counter value leaving the status
output port of the FIFO Read block. You can display the model by typing, in the
MATLAB command window, either xpccanpcififo4.mdl or xpccan104fifo4.mdl.