Simulink Real-time Instrument object update rate change

2 vues (au cours des 30 derniers jours)
Alexey Illarionov
Alexey Illarionov le 30 Août 2021
Commenté : Jon Lobo le 19 Déc 2022
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 commentaire
Jon Lobo
Jon Lobo le 19 Déc 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

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by