Clear Filters
Clear Filters

Simulink Real-time Instrument object update rate change

1 view (last 30 days)
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 Comment
Jon Lobo
Jon Lobo on 19 Dec 2022
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

Sign in to comment.

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!