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

9 Ansichten (letzte 30 Tage)
Alex
Alex am 7 Jan. 2025
Kommentiert: Walter Roberson am 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 Kommentare
Alex
Alex am 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 am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by