How do I remove a code mapping from a model?

11 ビュー (過去 30 日間)
Scott Tatum
Scott Tatum 2023 年 3 月 14 日
コメント済み: Scott Tatum 2025 年 1 月 6 日
I used the code mapping editor and api to add code mappings to several models. This appears to have caused issues with other members of the team that do not have the embeded coder toolbox (see this question). I would like to set it up where I configure the code mappings later, as part of the code generation process, instead of just having it on all the time. But I cannot figure out how to remove code mappings from a model that has them. Nothing in the GUI shows how to do it, and the code.mapping command line path has no remove functions.
  2 件のコメント
Ashok
Ashok 2024 年 11 月 29 日
The error mentioned in the MATLAB Answer query seems to occur when saving the model. This indicates that code mapping APIs might be used in the 'PreSaveFcn' or 'PostSaveFcn' callbacks within 'Model Properties'. These APIs could be directly in the callback fields or indirectly called through a MATLAB script referenced by these callback functions.
The specific line of code causing the error can be identified from the error message. For example, a similar error was recreated, indicating that the MATLAB script 'callbackScript' used in the 'PreSaveFcn' callback contains some code mapping API.
The list of code mapping APIs is available here:
I believe this will assist you!
Scott Tatum
Scott Tatum 2025 年 1 月 6 日
We have no callback scripts referencing the code mappings.
I am aware of the API and there is nothing in there to remove, as there is in the GUI.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by