フィルターのクリア

Suppress Simulink build summary in command window

13 ビュー (過去 30 日間)
Adam Jaslikowski
Adam Jaslikowski 2022 年 2 月 10 日
回答済み: Dara Parsavand 2022 年 2 月 23 日
Is there a way to suppress the Simulink build summary (running in accelerator mode) in the command window. For example, is there way to stop this printing out:? My model is composed of multiple sub-models using model references.
  2 件のコメント
Benjamin Thompson
Benjamin Thompson 2022 年 2 月 10 日
You may need to post the model in question or a simplified example that reproduces your problem.
Dara Parsavand
Dara Parsavand 2022 年 2 月 23 日
編集済み: Dara Parsavand 2022 年 2 月 23 日
I have the same need. I note that you can programatically run a model that is open by a command like:
set_param('your_model_name','SimulationCommand','start')
Because the model has a place (a GUI) to put build info, it doesn't clutter the command window in this case. But the code zips by that line and executes the next one before the sim is finished (and so any automated verification code isn't going to work). There is surely some messy way to make this method work by looping every sec and checking simulation status, but I will keep looking for a more straightforward solution and post here if I find one.

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

回答 (1 件)

Dara Parsavand
Dara Parsavand 2022 年 2 月 23 日
This seems to be working. The semicolon after the evalc command is required, else you will get output.
model_name = 'your_model'; % you don't need the .slx or .mdl inside the quotes
evalc('sim(model_name)');
(or you can make it one line, but I think you have to escape the single quotes that way - this looked cleaner to me).

カテゴリ

Help Center および File ExchangeCreate Large-Scale Model Components についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by