Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


dpb
Posts:
9,332
Registered:
6/7/07


Re: freadi help
Posted:
Jan 28, 2013 9:50 AM


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 stringlook at the ASCII table the '13 10' substring is CR/LF pair, the digits 09 are 3039 hex == 4857 decimal. The above string would be
.80 LF 928 LF 884 LF 9..




