Arduino + Matlab serial connection

In the past days i had some issues while i’m trying to read some Arduino datas using Matlab. I made a simple Matlab script which should read a number from Arduino but when I open the serial port after a while i get this error:

Warning:A timeout occurred before the Terminator was reached.

after some search on web i find that  pressing reset button on Arduino board just after started Matlab script, it is able to read the data correctly. So, if you get the error shown above:

1) lunch Matlab script

2) press reset button on the Arduino board

3) you should be able to see the Tx led of Arduino blinking

Here there are 2 example of sampling. I was reading the output signal from a 433Mhz receiver.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s