Confusing error message when deploying Simulink model containing Stateflow charts

2 ビュー (過去 30 日間)
Evelyn
Evelyn 2024 年 10 月 4 日
回答済み: Abhishek Kumar Singh 2024 年 10 月 4 日
We have a Simulink model that we deploy to a TI C2000 processor that contains some Stateflow charts. For the most part, this works as expected, but on one particular laptop we get the following error when we try to deploy a Simulink model that contains any Stateflow chart at all. Deploying a model with no Stateflow charts works as expected. Has anyone seen this error before? We're completely at a loss and not sure how to further debug this.
CGIR assertion 'In mexFunction: at least one input argument is not a string.' failed in 'B:\matlab\toolbox\stateflow\src\sf_private_mexs\strrows.cpp:50'
[ 0] 0x00007ff82f7b1454 C:\Program Files\MATLAB\R2023a\toolbox\stateflow\stateflow\private\strrows.mexw64+00005204 mexFunction+00000788
[ 1] 0x00007ff8f88b6ac9 C:\Program Files\MATLAB\R2023a\bin\win64\libmex.dll+00682697 mexfile::Inspector::needs_upgrade+00023257
[ 2] 0x00007ff8f88b9b42 C:\Program Files\MATLAB\R2023a\bin\win64\libmex.dll+00695106 MexRetrieveVersion+00009682
[ 3] 0x00007ff8f88b9e67 C:\Program Files\MATLAB\R2023a\bin\win64\libmex.dll+00695911 MexRetrieveVersion+00010487
[ 4] 0x00007ff8f889ae0e C:\Program Files\MATLAB\R2023a\bin\win64\libmex.dll+00568846 mexUnlock+00016926
[ 5] 0x00007ff8f850c442 C:\Program Files\MATLAB\R2023a\bin\win64\m_dispatcher.dll+01229890 Mfh_file::dispatch_file_common+00000178
[ 6] 0x00007ff8f850b712 C:\Program Files\MATLAB\R2023a\bin\win64\m_dispatcher.dll+01226514 Mfh_error::lookup+00012722
[ 7] 0x00007ff8f850c37d C:\Program Files\MATLAB\R2023a\bin\win64\m_dispatcher.dll+01229693 Mfh_file::dispatch+00000045
[ 8] 0x00007ff8f81b54c2 C:\Program Files\MATLAB\R2023a\bin\win64\libmwlxemainservices.dll+00480450 mwboost::archive::codecvt_null<wchar_t>::do_max_length+00379266
[ 9] 0x00007ff8f533e921 C:\Program Files\MATLAB\R2023a\bin\win64\m_lxe.dll+05826849 MathWorks::lxe::ReadOnlyXvaluePtr::operator=+00006193
[ 10] 0x00007ff8f53406c8 C:\Program Files\MATLAB\R2023a\bin\win64\m_lxe.dll+05834440 MathWorks::lxe::ReadOnlyXvaluePtr::operator=+00013784
[ 11] 0x00007ff8f528b1a8 C:\Program Files\MATLAB\R2023a\bin\win64\m_lxe.dll+05091752 MathWorks::lxe::printLxeProfStatsForFeature+00299016
[ 12] 0x00007ff8f52a5599 C:\Program Files\MATLAB\R2023a\bin\win64\m_lxe.dll+05199257 MathWorks::lxe::printLxeProfStatsForFeature+00406521
[ 13] 0x00007ff8f508859b C:\Program Files\MATLAB\R2023a\bin\win64\m_lxe.dll+02983323 MathWorks::lxe::LXEConstants::IsIfElse+00531387
[ 14] 0x00007ff8f508cba6 C:\Program Files\MATLAB\R2023a\bin\win64\m_lxe.dll+03001254 MathWorks::lxe::LXEConstants::IsY+00012902
[ 15] 0x00007ff8f508a041 C:\Program Files\MATLAB\R2023a\bin\win64\m_lxe.dll+02990145 MathWorks::lxe::LXEConstants::IsY+00001793
Error: File: C:\Program Files\MATLAB\R2023a\toolbox\stateflow\src\tlc\stateflow.tlc Line: 81 Column: 56
Unable to open block template file 0.tlc from GENERATE or GENERATE_TYPE

回答 (1 件)

Abhishek Kumar Singh
Abhishek Kumar Singh 2024 年 10 月 4 日
It appears that this issue is occurring exclusively on one particular system and involves a custom model rather than a shipped one. To address this, please follow these steps:
  1. Ensure that the correct TLC file, ert.tlc, is selected.
  2. Regenerate the code after deleting all build folders, such as slprj and rtw_ert.
These actions should help resolve the issue.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by