Original Post
Hi, I am a new Arduino user here and am hoping to get some help with programming with Matlab.
I downloaded the ArduinoIO() from Mathworks that is made to be used with Arduino.
These are the steps I took:
1) In Matlab, typed "install_arduino." I've confirmed that the arduino files are there by testing "help arduino," which returned something instead of an error.
2) Uploaded the adio.pde to the Arduino Uno board using the Arduino IDE.
3) Wrote a simple program to test it. Code below:
Code: Select all
a = arduino('/dev/tty.usbmodem1d11');
a.pinMode(13,'output');
a.digitalWrite(13,1);
pause(2);
a.digitalWrite(13,0);
delete(instrfind({'Port'},{'/dev/tty.usbmodem1d11'}));
I am running Matlab 7.8.0. on MBP with an Arduino Uno
Any help will be great. Thanks!