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

Gagan

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Gagan View all
Updated File Comments Rating
08 Jan 2013 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team

Hi YXING,
here are the solution:
1.In matlab use[ tic
while(pingpin~=1)
toc]
this will give u the elapsed time till pingpin goes high.
2.Use SD card shield to record the data and plot it if u don't need to plot it realtime. if u require real time plot then go for 1.
3.This method is the alternative of 2 without using sd card shield and is 'JUGAD' method. serial print the distance data in the monitor.once u r done copy paste it as a variable in matlab and do synthesis or analysis whatever u want.
HOpe this will prove helpful for you

10 Nov 2012 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team

HI ZHU

There might be three things gone wrong with you
1.Check the right COM port in device manager
2.Define a variable for your arduino...like a=arduino('COM3')
3.The IDE must be closed or disconnected so that MATLAB can use the serial connection.

Hope this will be beneficial for you...GUD LUCK and enjoy support package its really good stuff.

10 Nov 2012 MATLAB Support for Arduino (aka ArduinoIO Package) MATLAB class and Simulink blocks for communicating with an Arduino microcontroller board Author: MathWorks Classroom Resources Team

HI ZHU

There might be three things gone wrong with you
1.Check the right COM port in device manager
2.Define a variable for your arduino...like a=arduino('COM3')
3.The IDE must be closed or disconnected so that MATLAB can use the serial connection.

Hope this will be beneficial for you...GUD LUCK and enjoy support package its really good stuff.

Contact us