views:

67

answers:

2

i want to take data from bluetooth into matlab after every 10 to 15 seconds.. have figured out a way to transfer data to matlab via bluetooth. the problem i am facing is that i want matlab to execute a set of commands after a time interval to take input from bluetooth. if u cld plz help in this matter??

A: 

The pause command will allow you to wait for any number of seconds. For example pause(15) will wait for 15 seconds.

You may use it in an infinite loop like

while true
   %# Fetch bluetooth data
   pause(15)
end
Geoff
+4  A: 

You could create a TIMER OBJECT, that you set to execute a function that collects and processes data every 10 to 15 seconds.

Jonas

related questions