Reading data from a file

Hi
I did the following GRC to test psk modulation and demodulation. A text
file is input and did modulated and demodulated. After demodulation the
result is a pattern of \x00\ and \x08?\ where as I gave charactors 1, 2,
3, 4, … 10 as input. where have I gone wrong. Please help me
understand the data conversion taking place here.

Hi Sreena,

If you convert uchar to float, a 20 (decimal) = 0001010 (bin) becomes a
20.0 (decimal), which is in float representation a …ummm…
00000000 00000000 10100000 01000001 .
You shouldn’t convert! just set the file sink to the matching input
type.