No visualization of Mechanics Explorer when starting Simulink from GUI

5 ビュー (過去 30 日間)
Timo Schmid
Timo Schmid 2020 年 1 月 22 日
回答済み: Kim Bostroem 2021 年 3 月 26 日
Hello,
I guess the title already says it all.
I built a simmechanics multibody model of a robot in Simulink which is visualized when starting the Simulation directly from Simulink.
But when I try starting the simulation from a GUI (Matlab App-Designer) with the command:
%%Start Simulation
simOut = sim('Modell_Roboter_Tisch_InverseKin.slx','ReturnWorkspaceOutputs','on');
assignin('base', 'simOut', simOut) %Writes simulation output to base workspace
there is no visualization of the robot. The Mechanics Explorer windows just stays grey:
mechanicsexplorer.PNG
I already tried zooming out/in, enabling all components, etc.
Hope you guys can help me with this problem.
Thanks in advance!
  2 件のコメント
Damian Keretic
Damian Keretic 2020 年 4 月 7 日
Did you manage to solved it somehow?
Timo Schmid
Timo Schmid 2020 年 4 月 8 日
Unfortunately I didn't find a solution.
From the one day to another it just worked again as before... But I still don't know what the problem was - sorry.

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

回答 (2 件)

Damian Keretic
Damian Keretic 2020 年 4 月 7 日
Same problem here. Could someone help?

Kim Bostroem
Kim Bostroem 2021 年 3 月 26 日
I have the same problem. For me, the workaround is to have the model file (.slx) open in the background. The problem appeared when I updated to Matlab 2020b. I hope this bug is fixed in the next update.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by