how can i read analog input in matlab?

1 次查看(过去 30 天)
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
Madhu Govindarajan 2015-10-20
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
Jan 2015-10-18
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
SURBHI 2015-10-19
编辑:Walter Roberson 2015-10-19
when i run on external mode on arduino uno... now it gives me this error.... is external mode is supported by arduino uno or by mega 2560?
Current code generation target for model 'm3' is either not configured for or does not support external mode. In the Code Generation > Interface pane of Configuration Parameters dialog, select Interface option to be "External Mode" to enable external mode for targets that support it
Walter Roberson
Walter Roberson 2015-10-19
I do not find any explicit statement that External Mode is not supported on other boards.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by