Why slbuild/rtwbuild is always closing my model after code generation in R2023a?

3 ビュー (過去 30 日間)
When generating code with the command slbuild or rtwbuild in R2023a, I can see that the model is not open/loaded after finishing the process and when checking it with find_system to see all loaded models:
>> find_system
ans =
 0×1 empty cell array
How can I ensure that I do not need to load the model twice and the model is loaded after finishing the code generation process?

採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 5 月 30 日
The slbuild/rtwbuild functions currently load the models/systems specified, when they are not yet loaded. When they are not loaded before using slbuild/rtwbuild, the function automatically close them when cleaning up the internal variables.
In order to have the system/model loaded after using these functions, load them before using the functions:
mdl = 'model';
%Check that model is loaded before using slbuild
if ~bdIsLoaded(mdl)
load_system(mdl);
end
slbuild(mdl)

その他の回答 (0 件)

カテゴリ

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

タグ

タグが未入力です。

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by