MSLException hanldle and cause are empty
이전 댓글 표시
I am trying to port some 2012B Simulink code into 2016B and I get
---------------------------------------------------------------------- Unable to generate code using bus object 'struct_gXHXfJxyCgdYSgjadAsrfG' because it has an element named 'const' which conflicts with a programming language reserved identifier -----------------------------------------------------------------------
both cause and handle in MSLException are empty.
There is no 'const' in the model, there are Constant blocks.
답변 (1개)
Sonam Gupta
2018년 3월 30일
0 개 추천
The error occurs if you use elements of a MATLAB structure as block parameters, and the structure has element names that are reserved words in C. To work around the error, change the element names so they do not conflict with reserved words. For example, use x._const instead of x.const.
I hope this helps.
카테고리
도움말 센터 및 File Exchange에서 Simulink PLC Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!