Simulink Real-time Instrument object update rate change

조회 수: 1 (최근 30일)
Alexey Illarionov
Alexey Illarionov 2021년 8월 30일
댓글: Jon Lobo 2022년 12월 19일
My model is running at 0.001 sec on the Performance real-time target machine from Speedgoat. I'm using an instrument panel app in the App Designer to create slrtrealtime.Instrument and stream a signal from the model to animatedline in the associated callback function for ploting in app.UIAxes.
Is it possible to control and increase the update rate of instrument object? In my case it is about 50 milliseconds, which is quite slow for our needs.
  댓글 수: 1
Jon Lobo
Jon Lobo 2022년 12월 19일
Hi Alexey,
Unfortunately, it's not possible to increase the rate of the instrument object. Can you tell me more about your application? The instrument object does have a method for directly connecting to an axes (use connectLine) so that you don't need an animatedLine object.
There is one other approach you can use which involves using the buffered data approach: see getBufferedData. You could use this with a timer object to periodically query the buffered data and plot it. I'm not sure that it would be possible to get this to execute faster than 50 ms.
-Jon

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by