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!