Specifications
Constructing and Extracting CAN Data Frames
4-47
This leads to the following Simulink model.
In many cases it makes sense to test the proper bit-packing and bit-unpacking
operations in a Simulink model (simulation) before building the target
application. Both blocks are working the same way either in Simulink or within
the generated code. By combining the two models shown so far we get to a third
one which can be used to simulate the behavior.