Send a program to Arduino through Matlab
古いコメントを表示
Hi, I have an Arduino program that controls an IR led to trigger the shutter. I want to be able to control it with a Matlab GUI, but I haven't yet found anything. I have tried ArduinoIO, but it only lets me control basic things from Matlab, it doesn't let me upload an already compiled Arduino code from Matlab and then modify some of the variables with a GUI, which is what I want. Thanks.
回答 (2 件)
Walter Roberson
2015 年 11 月 17 日
1 投票
If you are not planning to create a web server on the arduino, then to control the variables through a GUI you will need to run the GUI on the MATLAB side and it will need to send commands to the Arduino side, which would have to be programmed to receive the commands and alter the variables accordingly.
1 件のコメント
Francisco Ardevol
2015 年 11 月 18 日
編集済み: Francisco Ardevol
2015 年 11 月 18 日
Madhu Govindarajan
2015 年 11 月 18 日
0 投票
I think the best way to go about this issue would be to write the MATLAB equivalent of the Arduino sketch because Arduino IO is in essence downloading a server code and communicating with the board. Because of this server code already running on the board, you won't be able to download another sketch at the same time. If you are using the latest support packages from MATLAB and don't have IP that needs protection you can post your Arduino sketch here and volunteers might be able to help you with the MATLAB script/function that you will need.
カテゴリ
ヘルプ センター および 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!