discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] How to use the read_float_binary.m function


From: Josh Blum
Subject: Re: [Discuss-gnuradio] How to use the read_float_binary.m function
Date: Thu, 27 Oct 2011 18:16:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1


On 10/27/2011 06:14 PM, hasanimam wrote:
> 
> Hello Marcus,
> 
> I really appreciate your help.
>> Those files (read_float_binary.m and read_complex_binary.m) are MATLAB 
> macros, intended to be used directly by MatLab.
> 
> Did you mean that, the binary file which will be created by the
> gr_file_sink, is needed Matlab to open?
> Ok, then I will take the file to another PC where Matlab is installed and
> will try to open it.
> However, I was looking for some way to directly convert the file into .txt
> or any other readable format using the python program.

see numpy.fromfile, use the type numpy.complex64

The data stored to file is just an array of std::complex<float> or
std::complex<int16>

> 
> 
> 
> 
> 
> Marcus D. Leech wrote:
>>
>>> Hello,
>>>
>>> I am in deep deep trouble. And it would be really great if somebody come
>>> up
>>> with any sort of help.
>>>
>>> I am trying to collect the raw data using USRP2. I used the
>>> gr_file_sink(itemsize, "filename") for this. The "filename" is a binary
>>> file
>>> and so it cant be seen/open. I googled in the internet to find a way of
>>> converting the binary file to something else. I found that there is one
>>> thing named read_float_binary.m and read_complex_binary.m to convert the
>>> data into a matlab file. This function is written in C++. I realized that
>>> I
>>> have to use this function but dont know how to do it. Should I use this
>>> function directly to the python program or in the gr_file_sink.cc
>>> program.
>>>
>>> It would be really helpful if somebody writes the exact command for this.
>>>
>>> This is really urgent and I will appreciate it very much if somebody
>>> comes
>>> forward.
>>>
>>> Thank you
>> Those files (read_float_binary.m and read_complex_binary.m) are MATLAB 
>> macros, intended to
>>    be used directly by MatLab.  If you don't know how to use MatLab, 
>> this is likely the wrong list
>>    to get high-quality help in that direction.  Just sayin'
>>
>> -- 
>> Marcus Leech
>> Principal Investigator
>> Shirleys Bay Radio Astronomy Consortium
>> http://www.sbrac.org
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]