Rank: 360666 based on 0 downloads (last 30 days) and 0 file submitted
photo

Michael

E-mail
Company/University
MIT

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Michael
Updated File Comments Rating
07 Dec 2011 MATLAB Support Package for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team

This is a total hack, but for those of you who are getting 'Connection unsuccessful' error and are sure that the serial port is working fine (i.e. by checking it with a program like TeraTerm and typing in '99') then you can set chk to be 1 (or 2 or 3), depending on which pde you had uploaded into the Arduino.

% query script type
fwrite(a.aser,[57 57],'uchar');
chk=fscanf(a.aser,'%d');
chk = 1; % SHOULDN'T HAVE TO DO THIS!

Contact us