Stop diagnostics from simulink model outputting to command line when using simout?
Ältere Kommentare anzeigen
When I use:
simOut = sim(MyModel,'SimulationMode','Normal);
to run my simulink model, it appears to be printing the Diagnostics in the command window.
How can I stop this?
It doesn't happen when I run the simulink model directly in simulink, only when I'm using my custom guide GUI.
Thanks!
1 Kommentar
Keith Lewis
am 9 Feb. 2017
Bearbeitet: Keith Lewis
am 9 Feb. 2017
Akzeptierte Antwort
Weitere Antworten (1)
Nirja Mehta
am 6 Feb. 2017
As per my understanding of your question, I tried the following:
>> vdp
>> simOut = sim(gcs,'SimulationMode','Normal')
Output on command window was:
Simulink.SimulationOutput:
struct with no fields.
Use get to access a variable by name.
Use getSimulationMetadata to access metadata about the simulation.
If you want to suppress this, just put a semi-colon at the end of "simOut" statement:
>> simOut = sim(gcs,'SimulationMode','Normal');
1 Kommentar
Keith Lewis
am 8 Feb. 2017
Kategorien
Mehr zu Configure and View Diagnostics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!