Errors when examining CAN log output in Mathworks

6 ビュー (過去 30 日間)
Graham Cotgreave
Graham Cotgreave 2022 年 9 月 22 日
回答済み: Ayush 2023 年 9 月 5 日
I'm getting an error "Reference to non-existent field 'x_440V_Tripped' when attempting to load a CAN log file from a simulation and examine the contents with "canMessageTimetable" and "canSignalTimetable"
The signal within the message is defined as '_440V_Tripped' (with no preceeding 'x' It has the underscore as the CANdb spec does not allow digits as the first character). The database can be successfully parsed and used to configure a "CAN pack" block and creates a file via CAN log. Other messages containing other signals defined in the same database are fine.
-------------------------------------------------------------------------
Reference to non-existent field 'x_440V_Tripped'.
Error in canSignalTimetable/makeIndividualSignalTimetable (line 119)
signalTimetable.(signalNames{jj}) = [signalStructs.(signalNames{jj})]';
Error in canSignalTimetable (line 74)
signalTimetable = makeIndividualSignalTimetable(messageTimetable, messageNames);

採用された回答

Ayush
Ayush 2023 年 9 月 5 日
Unfortunately at this time this behavior appears to be a bug.
The only workaround is to rename the signal name in the DBC file to something that begins with a letter .
Thank you

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrepare Model Inputs and Outputs についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by