I had a problem timeout and error communication.
I use Arduino duemilanove (ATMEGA 168)
I fixed this issue by changing ADIORSV:PDE on line 40, where there is a cicle for 20 PINS (insetad of 13 of Arduino Duemilanove).
i posted better explanation on my own question about, Here:
please help me, I have this message when I try use the analog input in simulink
The corresponding 'msfun_arduino_io_setup.tlc' file for the MATLAB S-function 'msfun_arduino_io_setup' in block 'arduinouno_servocontrol_potentiometer/Arduino IO Setup' must be located in the current working directory, the MATLAB S-function directory 'E:\Arduino\arduinoIO\simulink', or the directory 'E:\Arduino\arduinoIO\simulink\tlc_c'
I have successfully installed all IO files, .pde files, and can connect my arduino (plus motor shield) to matlab. However, when the connection is established, matlab lists off servos 2-69, instead of the 2 associated with my motor shield. Additionally, no commands will operate my stepper, servos or motors (which I have tested in the IDE workspace, they work fine).
Attempting connection .............
Motor Shield Script detected !
Arduino successfully connected !
But nothing works? Any idea?
Generally works nicely!
Please note there is problem with MATLAB communication with some Mega boards with un-updated firmware. See here: