Pages: [1]   Go Down
Author Topic: syntax in Matlab for delay function  (Read 628 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

how to give command in Matlab to control the Arduino
like a.digitalWrite(13,1); is use for pin 13 hight
How i can give delay through Matlab
wats the syntax for time dalay delay
Logged

Ontario
Offline Offline
God Member
*****
Karma: 20
Posts: 835
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am not at all sure about the MATLAB part, but the Arduino delay() function may be what you are looking for:
http://arduino.cc/en/Reference/Delay

delay() takes a time in milliseconds.  There is a microseconds version.
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 547
Posts: 45962
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How i can give delay through Matlab
Why would you want to? You want Matlab to delay sending more info to the Arduino, not for the Arduino to twiddleThumbsUselessly() (I mean delay()).
Logged

Pages: [1]   Go Up
Jump to: