Simulation Manager programmatic control via handle

I would like a programmatic method for controlling the Simulation Manager (documentation). Is there a function to get its handle so I can modify the window's properties or perhaps close it? Thanks!

 採用された回答

Angelo Yeo
Angelo Yeo 2023 年 6 月 27 日

0 投票

Hi JW,
Unfortunately, as of R2023a, Simulation Manager does not have a handle. You can see that findall(0) does not return handle for the Simulation Manager window.
If you want to prevent multiple Simulation Monitor windows from popping up, you can consider using 'ShowSimulationManager' option for sim or parsim. E.g.,
>> out = sim(in, 'ShowSimulationManager', 'off')
Hope this helps,
Angelo

3 件のコメント

JW
JW 2023 年 6 月 27 日
Hey Angelo, I appreciate the quick reply, and that answers my question. What you've described is my use case: I'm running parsim with the manager intentionally set to 'on' so it's viewable. The information displayed in the manager is useful so I want it visible, but what I dislike is that each batch run spawns a new window without any way to programatically interact with it. Since there is no automated process to close the open manager windows, I have to select each one, click the close button, and select 'no' to the save prompt. Would be a nice feature to add a handle!
Angelo Yeo
Angelo Yeo 2023 年 6 月 28 日
Hi JW,
Thank you for providing the details how it impacts on your workflow. I think I can share your comment with the dev team as we always look for voice of customers.
Thanks,
Angelo
Maharshi Patel
Maharshi Patel 2025 年 4 月 23 日
Hi JW,
You can select the "Reuse Window" toggle button in the Simulation Manager's Toolstrip to reuse existing window and prevent creating new windows with each new batch.
Thanks,
Maharshi

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Environment Customization についてさらに検索

製品

リリース

R2022b

質問済み:

JW
2023 年 6 月 27 日

コメント済み:

2025 年 4 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by