ask help for the format of outcome IQ data

kainwen kainwen at gmail.com
Tue Apr 16 13:03:38 UTC 2013


Hello,
      I use rtl_sdr to collect some data into a bin file(file.bin).
      As from the wiki, I think it is parsed like this :
/fd = open("file.bin","r") ;//
//        char I[];//
//        char Q[];//
////loop ://
//             read(fd, I, 1) ;//
//             read(fd, Q,1) ;//
//        endloop//
//        char *p = Q ;//
//        loop ://
//            printf("%f\n", (float*)p);//
//            p += 4 ;//
////endloop/
      But this code can only print 0.00000

      I don't know where the error is.
      Please help me.
      Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20130416/7e778837/attachment.html>


More information about the osmocom-sdr mailing list