Simulink Real-time Instrument object update rate change

1 visualización (últimos 30 días)
Alexey Illarionov
Alexey Illarionov el 30 de Ag. de 2021
Comentada: Jon Lobo el 19 de Dic. de 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 comentario
Jon Lobo
Jon Lobo el 19 de Dic. de 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

Iniciar sesión para comentar.

Respuestas (0)

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by