- Ensure that the correct TLC file, ert.tlc, is selected.
- Regenerate the code after deleting all build folders, such as slprj and rtw_ert.
Confusing error message when deploying Simulink model containing Stateflow charts
3 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Abhishek Kumar Singh
on 4 Oct 2024
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:
These actions should help resolve the issue.
0 Comments
See Also
Categories
Find more on Simulink Coder 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!