Abhijeet,
If you just want to read the contents of the files then you can read them
using the scripts provided in */gnuradio/gnuradio-core/src/utils/.
read_char_binary, read_complex_binary etc will suffice most of your needs. I
normally addpath('/opt/gnuradio/gnuradio-core/src/utils') in MATLAB and play
around with the collected raw data.
Hope this helps.
On Mon, Dec 6, 2010 at 6:11 PM, Thomas Hobiger <[email protected]> wrote:
> Hi,
>
> Getting the data into Octave is quite easy
>
> fid=fopen('file.dat');
> readsize=1000; % e.g. if you want to read 1000 samples
> ir=1:2:2*readsize-1;
> ii=2:2:2*readsize;
> [val, count] = fread (fid, readsize*2, 'float'); % times 2 for reading I/Q
> data
> s=complex(val(ir),-val(ii)); % put the data into a complex vector
> %
> % ... some processing here
> %
> fclose(fid);
>
>
> Regards,
> Thomas
>
>
> On 12/07/2010 01:17 AM, abhijeet mate wrote:
>
> Hi,
>
> I am new to gnu radio and I have a dat file (complex or float) captured
> from file sink which was directly connected USRP.
> Can anyone help me with how to see the dat file in octave or any other
> similar software. Is there any other method to see the content of dat file
> as i need that data for processing.
>
> Thanks and Regards,
> Abhijeet.
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> --
> ******************************************************************
> Dr. Thomas Hobiger
> Space-Time Measurement Project
> Space-Time Standards Group
> New Generation Network Research Center
> National Institute of Information and Communications Technology
> ------------------------------------------------------------------
> 4-2-1 Nukui-Kitamachi, Koganei
> 184-8795 Tokyo
> Japan
> ------------------------------------------------------------------
> email: [email protected]
> phone: ++81-042-327-7561
> fax: ++81-042-327-6664
> ------------------------------------------------------------------
> homepage (priv.): http://www.hobiger.org
> ******************************************************************
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio