How can I synchronize the update of a scope plot with the time T in the model explorer of a multi-body simulation?

3 views (last 30 days)
Hello,
I created a simscape multibody simulation. In the model explorer I can see my mechanical system run successfully. Now I added some scopes, to watch some parameters over time. The problem I have now is, that the scope is redrawing the graph with the compilation time but not with the time of the current state (named T in the the model explorer) the animation is. So the diagram in the scope is already drawn when the animation is still running. This is not what I want. I would like to have a "live update", i.e. the update of the scope synchronized with the time T in the model explorer. Is this possible?

Answers (1)

Rishi Binda
Rishi Binda on 6 Sep 2018
Set the Sample time of the scope block in the Configuration Properties of the scope. It specifies time interval between updates of the scope display. This property does not apply to floating scopes and scope viewers.
  1 Comment
Matthias Maat
Matthias Maat on 6 Sep 2018
Thanks for the answer. But this does not solve the problem. With a sample time of e.g. 10 seconds the effect is, that the intervall between data points is 10 seconds in the plot. But it has no effect on how quick the plot is created. The higher sample time does not force the scope to wait 10 seconds before plotting the next data point.

Sign in to comment.

Categories

Find more on Simulation and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!