Is it possible to view a signal in "Display" block in real time durring simulation?

 采纳的回答

Hi Matico,
A few ways you can do this.
1.) The easiest is using the display block as you have already eluded to above
2.) Turn on port value display
3.) Finally if you are looking to visualize the changes in the signal over time, you can add a scope block to your model

5 个评论

I still have problems. All methods show only the last value at the end of simulation. They don't show intermediate values during simulation - as if I step forward step-by-step.
Also, how can I make simulation longer? Now, I have start time in configuration parameters set to 0.0 and stop time to 1. Does that mean that the simulation lasts for 1 second? How can I make simulation to lasts 10 seconds?
Thanks
scope blocks should definitely show output as you are running, updated at every time step. By default scope blocks have a limit on the number of points retained, but you can configure the block for infinite retention.
Yes, both 1. and 2. method you suggested now work. They didn't work because I have set both "stop time" and "time step" to 1.
Can you describe what exactly does "time step" mean? What unit is used here? If those numbers are seconds, then simulation should last for 10 seconds, if I set "stop time" to 10. And probably, if "time step" is set to 1, there should be 10 intermediate calculations during simulation. Am I missing something here? Thanks

请先登录,再进行评论。

更多回答(0 个)

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by