arduino mega not connecting to simulink
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm running MATLAB R2015b on 64-bit Windows 10. I have been trying to download the blink led model in simulink onto my arduino mega. I have the arduino support packages installed. When I type in a = arduino into the matlab terminal, I get the following response: a = arduino Updating server code on board Mega2560 (COM6). Please wait.
a =
arduino with properties:
Port: 'COM6'
Board: 'Mega2560'
AvailablePins: {'D2-D53', 'A0-A15'}
Libraries: {'I2C', 'SPI', 'Servo'}
However, when I open the example arduinomega2560_getting started on simulink, and try to download it to the target hardware(I have checked hardware implementation in model configuration parameters and verified the details), it shows 1 warning with the following error:
####
The following error was encountered during evaluation of the Download command:
Could not connect to specified Arduino board.
####
Am I correct in assuming that since I got an output on the matlab terminal, that the software is able to connect to the board?
And if so, why can't simulink download the model to the target hardware?
댓글 수: 2
Madhu Govindarajan
2015년 12월 23일
Did you try mentioning the COM port on the configuration settings? If so, can you try making it automatic. If you selected automatic try mentioning the port. The other thing that might help is to have a clear MATLAB Command Window while attempting connection for the first time using Simulink
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!