Vehicle Network Toolbox: signals entering CAN pack and transmit blocks not matching signals exiting CAN receive and unpack blocks

5 vues (au cours des 30 derniers jours)
I am using a model created by someone else. A signal goes into a CAN pack block, then a CAN transmit block on a mathworks virtual channel. A CAN receive block on the same channel then passes the signal to a CAN unpack block (and then a byte unpack block as multiple signals enter CAN pack block). When I initialize and run the simulink model, I find that the signals coming out of the unpack blocks after CAN receive, do not match those going into the CAN pack blocks before CAN transmit. This can be somewhat mitigated by setting the fixed-step time to be very small but this makes the model run too slowly. Long fixed-step times seem to result in a delay to when the unpacked signals match the signal that was transmitted. I believe I am using the same computer as the original creator of the model, and I believe the model ran correcctly when used by the previous user. I am running the model in a different account with a different version of Simulink (R2023a rather than R2022b).

Réponses (0)

Produits


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by