Borrar filtros
Borrar filtros

How do I plot real-time Arduino data in AppDesigner?

1 visualización (últimos 30 días)
Alberto Rota
Alberto Rota el 22 de Abr. de 2019
Comentada: Frédéric Naud-Dulude el 7 de Mayo de 2019
I'm building an app that lets me monitor data coming from an Arduino. Specifically, I wanna plot the analog signal coming into a Pin in real-time. The animatedline object is being used to draw the plot. I added the UIAxes into the app, but how do I tell the app to update the plot once every (let's say) 0.1 sec?
I could find callbacks that run only when an event occours, like when a switch is toggled or a key is pressed, but none that get called constantly. Is there a callback function that runs on loop? If there isn't one, can I build it?
I'm also thinking that using the GUIDE tool or building a single interactive figure would be better that AppDesigner.
I've done work with Processing (and analogues) before: what i'm looking for is something that works like the draw() / loop() function.

Respuestas (0)

Categorías

Más información sobre MATLAB Support Package for Arduino Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by