Date: Jan 28, 2013 9:50 AM
Author: dpb
Subject: Re: freadi help

On 1/28/2013 5:19 AM, AUC wrote:
> I'm reading data from accelerometer connected to arduino. if i plot the
> data in the arduino i'm getting the right data. but when i try to see
> the data with the function fread(s)
> i'm getting this vector of numbers (this is just a part of the vector) :


> 56 48 13 10 57 50 56 13 10 56 56 52 13 10 57

> the question is why do i get that numbers? it dosent match to the data
> that i get in the arduino.

....

That's the decimal representation of an ASCII hex string--look at the
ASCII table-- the '13 10' substring is CR/LF pair, the digits 0-9 are
30-39 hex == 48-57 decimal. The above string would be

.80 LF 928 LF 884 LF 9..

--