how can i read analog input in matlab?
이전 댓글 표시
hii everybody i want to read data from analog input and display it on scope..... ? on connect to target i get this error
Could not execute target data map file
'untitled_rtt\untitled_targ_data_map' or it does not exist.
Stop the target, delete the untitled executable, rebuild the code, and
try again. Note that execution of external mode requires the build
directory to be present
please suggest me possible settings
답변 (2개)
Madhu Govindarajan
2015년 10월 20일
1 개 추천
External mode is not supported by Arduino Uno - http://www.mathworks.com/hardware-support/arduino-simulink.html
In this link you can see that interactive tuning and monitoring is not supported for Uno boards. One suggestion is to create a Simulink model that transmits the information you need serially and then use MATLAB serial commands to bring in the information to MATLAB (I understand it is a bad alternative and I apologize for the same).
Jan
2015년 10월 18일
0 개 추천
The error message sounds clear. Did you try to follow the given instructions? If so, what did you observe? Please add the relevant part of the code, such that we have a chance to see, what's going on.
댓글 수: 2
SURBHI
2015년 10월 19일
편집: Walter Roberson
2015년 10월 19일
Walter Roberson
2015년 10월 19일
It is supported by the Mega 2560 and by the Due; see http://www.mathworks.com/help/supportpkg/arduino/ug/tune-and-monitor-model-running-on-arduino-mega-2560-hardware.html
The Mega ADK might also be supported; see http://www.mathworks.com/help/supportpkg/arduino/examples/communicating-with-arduino-hardware.html
I do not find any explicit statement that External Mode is not supported on other boards.
카테고리
도움말 센터 및 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!