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

조회 수: 3 (최근 30일)
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?

답변 (1개)

Rishi Binda
Rishi Binda 2018년 9월 6일
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
Matthias Maat
Matthias Maat 2018년 9월 6일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by