Simulink Real-time Instrument object update rate change

2 ビュー (過去 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 Center および File ExchangeTarget Computer Setup についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by