xPC Target    

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.


  Example 3 Example 5