Programatically close the simulation manager

13 ビュー (過去 30 日間)
Markos
Markos 2025 年 6 月 2 日
回答済み: Abhas 2025 年 6 月 10 日
Hello,
Is there a way to programmatically close the simulatiion manager in MATLAB (I am using MATLAB 2023b)?
I was only able to find this: https://nl.mathworks.com/help/simulink/slref/simulationmanager.html using closeSimulationManager function, however, is it only available from MATLAB 2025a version?
Kind regards,
  1 件のコメント
Dhruv
Dhruv 2025 年 6 月 3 日
While the closeSimulationManager command is mentioned in MATLAB R2025a documentation, it is in fact available from MATLAB R2024a onwards.

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

回答 (1 件)

Abhas
Abhas 2025 年 6 月 10 日
In MATLAB R2023b, there is no supported function or handle to programmatically close the Simulation Manager.
If you want to prevent multiple Simulation Monitor windows from popping up, you can consider using 'ShowSimulationManager' option for 'sim' or 'parsim'.
simOut = sim(in,'ShowSimulationManager','off');
% or
out = parsim(in, 'ShowSimulationManager','off', 'ShowProgress','on');
This completely avoids creating the window that you'd otherwise have to close manually .
If you need the Simulation Manager to stay visible, enable Reuse Window in its toolbar. This ensures subsequent runs reuse the same window instead of opening new ones each time.
You may refer to the below MATLAB Answers post to know more about the same:
I hope this helps you!

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by