Vehicle Network toolbox pgn registration error

21 views (last 30 days)
I am trying to use Vehicle Network Toolbox blocks in Simulink and getting error messages with very little explanation when I start simulation. These errors happen randomly and dont go away until I delete all J1939 blocks. I tried to add the block one by one to figure out there the problem might be. When I add fresh configuration, transport layer and node block, simulation starts without any problems. Then I add a receiver for a PGN and do not connect it to any blocks and the simulation sometimes fail with the message below.
Error reported by S-function 'sj1939rx' in 'Simulation/CAN/J1939 Receive': j1939Receive: PGN Registration Error: 7
If simulation works fine, I start to connect receive block to existing blocks (the blocks only contain DataType conversions). I tried to start simulation for each connection I made and at some point simulation fails with the message that I shared above.
Another detail that I can share is above that error message I get priority warnings. But even if I solve them by assigning manual priorities, the error does not go away.
One more interesting thing that I figured about these errors is that they are connected with the name of the configuration. For example if I have one of the errors mentioned above, unless I change the name of the configuration, the problem does not go away. If I create a new model with the same name, I do not observe any problems.

Answers (1)

Frank Engels
Frank Engels on 18 Oct 2019
Dit you already find a solution

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!