xPC Target | ![]() ![]() |
Example 3
We now look at a second implementation on the FIFO Write side. Instead of providing three messages in parallel, we can just write two messages and then alternate the identifier and data of the second CAN message to be sent. Because the messages are now sent out every millisecond in any case, the Control element has no longer to be provided, therefore reducing the matrix entering the FIFO Write block to a size of [2,5]. You can display the model by typing, in the MATLAB command window, either xpccanpcififo3.mdl
or xpccan104fifo3.mdl
.
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 2 | Example 4 | ![]() |