How do I plot real-time Arduino data in AppDesigner?
3 ビュー (過去 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 Center および File 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!