In Simulink demo sldemo_absbrake, the plotys are generated without using blocks. How did they do it?
Show older comments
I suspect it is related to logging data in workspace..???
Accepted Answer
More Answers (2)
John Krzykacz
on 25 Mar 2018
0 votes
Sara Nadeau
on 26 Mar 2018
0 votes
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 Comments
John Krzykacz
on 26 Mar 2018
Birdman
on 26 Mar 2018
Why don't you do what I already told you in my answer?
John Krzykacz
on 26 Mar 2018
John Krzykacz
on 27 Mar 2018
Birdman
on 27 Mar 2018
Yes exactly. I have been trying to say that. Glad you solved your problem. You can accept my answer if it helped.
John Krzykacz
on 27 Mar 2018
John Krzykacz
on 27 Mar 2018
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!