In Simulink demo sldemo_absbrake, the plotys are generated without using blocks. How did they do it?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
John Krzykacz
el 24 de Mzo. de 2018
Comentada: John Krzykacz
el 27 de Mzo. de 2018
I suspect it is related to logging data in workspace..???
0 comentarios
Respuesta aceptada
Birdman
el 24 de Mzo. de 2018
Editada: Birdman
el 24 de Mzo. de 2018
It is done via Simulation Data Inspector. If you click on the icon on the yout and slip signal in the model, Simulation Data Inspector pane will open up and there you will see signals automatically logged and plotted at the end of the simulation. Data Inspector's job is to plot them automatically at the end of the simulation.
Also, if you go to File->Model Properties->Model Properties->Callbacks->StopFcn, you will see the necessary command to plot the logged signals. Check those callbacks to see actually what is going on.
Hope this helps.
5 comentarios
Birdman
el 25 de Mzo. de 2018
Try this. The basic workaround for it is to use To Workspace block, log the data and plot the variables automatically at the end by the code used in StopFcn. Check what I wrote there.
Más respuestas (2)
Sara Nadeau
el 26 de Mzo. de 2018
A bit of clarification on the comment that mentions the Simulation Data Inspector:
The Simulation Data Inspector does not plot any data automatically at the end of the simulation and is not related to the plots generated when you simulate sldemo_fuelsys. As the comment pointed out, the model uses the callback StopFcn and an attached m file to create the figures.
You can also quickly view logged signals using the Simulation Data Inspector. Clicking the logging badge on the signal selects the signal to plot and opens the Simulation Data Inspector at the same time. If you open the Simulation Data Inspector using the button on the Simulink Editor toolstrip, no signals are plotted, and you can select signals to plot and inspect using the checkboxes next to the signals.
7 comentarios
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!