How to unpack full J1939 messages in Simulink, like CAN Unpack?

7 vues (au cours des 30 derniers jours)
Alex
Alex le 7 Jan 2025
I am building an application that will use handwritten C++ code combined with autogenerated code from Simulink. I'm hoping to be able to do all the necessary CAN packing/unpacking within Simulink, but some of my hardware devices use J1939. Is there a way, similar to the CAN pack/unpack blocks, to pack/unpack full J1939 messages? Basically, I'd like the J1939 Receive/Transmit blocks to be able to take an input from external code where I will perform the actual J1939 receive.
  3 commentaires
Alex
Alex le 7 Jan 2025
Unfortunately the block is not compatible with the hardware I am deploying code to. From that page:
"The J1939 communication blocks also support code generation that have limited deployment capabilities"
Walter Roberson
Walter Roberson le 7 Jan 2025
In that case, it seems unlikely that you will find ready-made Simulink blocks. There does not appear to be anything relevant in the File Exchange.

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by