CAN UnPack block not giving signals names specified by the dbc file
4 views (last 30 days)
Show older comments

I am tring to use buses to clean up my model but the signals output from the CAN Unpack block aren't named using the names given in the dbc file. This would avoid manually naming hundreds of signals. Is there a quick way to name all these bus signals?
0 Comments
Answers (1)
Fangjun Jiang
on 23 Jan 2023
Those signal lines need to be labelled (having a name) so then the names can appear in the BusSelector block. I think the "Unpack" block only unpacks the signal names and display them as Outport name. You can label those signal lines manually, or through a script. Read the Outport names, go through a for-loop, label the connected output signals.
0 Comments
See Also
Categories
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!