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

3 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Rishi Binda
Rishi Binda il 6 Set 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 Commento
Matthias Maat
Matthias Maat il 6 Set 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.

Accedi per commentare.

Categorie

Scopri di più su Simulation and Analysis in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by