real time input and output arduino loop
4 views (last 30 days)
Show older comments
Hi guys
I want to have a simple example for a real time calculating for or while loop, a loop that get a input from a arduino pin (or raspberry pi) and do a simple calculation then send output to a port(evry cycle).
is it possible by goto statement or break or other statements?
thanks alot.
1 Comment
Andy Sonnenburg
on 21 Feb 2020
https://www.mathworks.com/matlabcentral/fileexchange/30277-embedded-coder-target-for-arduino may be useful as an example of how to use Embedded Coder with Arduino.
Answers (0)
See Also
Categories
Find more on Hardware-in-the-Loop Simulation with Simulink Real-Time in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!