SimParseCustomCode Not Working as Intended Upgrading to R2018b

In upgrading to MATLAB R2018b from R2018a, Simulink throws an error regarding a 'missing' header file. No folder structures have changed, and the file should be available. In R2018a, the SimParseCustomCode configuration parameter was turned on, and is also on in R2018b under the new name of "Import custom code". When turning this setting off, the model was able to successfully build and compile the code in R2018b, further showing that the header file is available to the compiler. The header file is included through a MATLAB function block with the "coder.updateBuildInfo('addIncludePaths',...)" function call. No additional changelog information is available for this configuration parameter in the release notes. What has changed?
 

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2023년 11월 15일
편집: MathWorks Support Team 2024년 1월 3일
Linked below is the most up-to-date documentation page for the "Import custom code" configuration parameter. In the description for the usage of the "Off" option, the first bullet point in the documentation now specifies the following: 
Split custom code dependencies between Simulation Target and other means of specifying custom code dependencies (coder.cinclude, coder.updateBuildInfo, and coder.ExternalDependency) in Stateflow charts that use MATLAB® as the action language, MATLAB Function block, or the MATLAB System block.
Since the "coder.updateBuildInfo" function was invoked, the R2018b workflow is to set the configuration parameter to "Off". Bulleted below is the URL to the current documentation page and the second bullet will show the R2018a version of the correspondence documentation page for referencing the changes.
Please follow the below link to search for the required information regarding the current release:

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by