Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Alberto Rota
Alberto Rota am 22 Apr. 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.

Antworten (0)

Kategorien

Mehr zu MATLAB Support Package for Arduino Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by