How do I plot real-time Arduino data in AppDesigner?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
1 commentaire
Réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!