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:
Error evaluating registered method 'Start' of MATLAB S-Function 'msfun_arduino_io_setup' in 'library_test/Arduino IO Setup'. The following is the MATLAB call stack (file names and line numbers) that produced this error:
Connection unsuccessful, please make sure that the board is powered on, running a sketch provided with the package, and connected to the indicated serial port. You might also try to unplug and re-plug the USB cable before attempting a reconnection.
I can't get any of these blocks to work for me. I'm running Matlab 2013b and using an Arduino Mega 2560. Any help? every time I try running one of the Simulink Blocks I get the following:
" The corresponding 'msfun_arduino_io_setup.tlc' file for the MATLAB S-function 'msfun_arduino_io_setup' in block 'encoder_sim/Arduino IO Setup' must be located in the current working directory,...
Trying to incorporate the support package with Max32 ChipKit, carried out simple initial set-up. In MATLAB returns;
Attempting connection .............
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
Error using arduino (line 104)
Connection unsuccessful, please make sure that the board is powered on, running a
sketch provided with the package, and connected to the indicated serial port. You
might also try to unplug and re-plug the USB cable before attempting a