CAN UnPack block not giving signals names specified by the dbc file

2 views (last 30 days)
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?

Answers (1)

Fangjun Jiang
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.

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!