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

1 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by