Is there a way to disable the visualization of a Simscape Multibody simulation in the Mechanics Explorer using a command?
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Katrin_S
am 4 Apr. 2019
Kommentiert: Brian Hong
am 4 Mai 2020
When I want to switch off the visualization of a Simscape Multibody simulation, I have to uncheck the box "Open Mechanics Explorer on model update or simulation". I want to do that using a command or a parameter, so that I don't have to open Simulink and check or uncheck the box.
The only solution I found so far is to create a copy of my Configuration Parameter Set where the visualization is turned off and switch to the different Configuration Parameter Set by
setActiveConfigSet('mymodel', 'Copy_of_Configuration1_without_visualization')
This works, but the problem here is that this changes the .slx file everytime I do that which is not really convenient, especially when working with git.
0 Kommentare
Akzeptierte Antwort
Brian Hong
am 1 Mai 2020
>> set_param(<model name>,'SimMechanicsOpenEditorOnUpdate','off')
2 Kommentare
Brian Hong
am 4 Mai 2020
You could try not saving the model as in this example
or using the sim command with the model parameter
>> paramNameValStruct.SimMechanicsOpenEditorOnUpdate = 'off';
>> simOut = sim(<model name>,paramNameValStruct)
to avoid changing the SLX.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multibody Modeling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!