How can I visualize signals evolving time by time on a dashboard, while simulation is running?

I would like to see how signals change in time, time by time and not all at once at end. I tried to understand it from the example sldemo_fuelsys (Fault-Tolerant Fuel Control System) but I could not. In few words I would like to see signals evolving on a dashboard while simulation is running.

3 Comments

I knew about the dashboard scope but i wanted to know how to visualize or modify parameters while simulation is running. I know I can use all the possible blocks in dashboard library but, when i push "run" button, I get all the simulation immediately. Instead I would like to see it while evolving
Your simulation may just run very quickly. If you have 18a, you can use simulation pacing to slow down the simulation relative to clock time so you can see signals evolve through the model as the simulation runs.
Thanks a lot! I just solved using " Simulation Pace " block which works very fine.

Sign in to comment.

 Accepted Answer

Although you can visualize a signal using scope. But if you want to use dashboard then use Dashboard Scope in Simulink to visualize the signal. A sample file is attached.

6 Comments

I knew about the dashboard scope but i wanted to know how to visualize or modify parameters while simulation is running. I know I can use all the possible blocks in dashboard library but, when i push "run" button, I get all the simulation immediately. Instead I would like to see it while evolving
That is not the problem with the scope. The MATLAB is not running the simulation in real-time. To run the simulation in real-time you will need extra steps. What MATLAB version are you running? In MATLAB R2018a MATLAB introduced a feature to run the simulation in real-time. Select Simulation from Simulink menu, select pacing options and Enable pacing, and set the ratio to 1. Now you can visualize the function in real-time. In older versions of MATLAB, place this block in your Simulink model.
I checked, and it is also working at full speed. You are able to observe it because it is running up to 2000 seconds.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!