discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] how to use FFT without grc block


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] how to use FFT without grc block
Date: Fri, 24 Jan 2014 16:25:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Paul,

no. It does an FFT and nothing else (aside offering to apply a
window); please read the doxygen or have a look at the code. Both is
extremely short and to the point ;)

Anyway,
"file_sink binary files" are not something special. They just store
floating point values the same way they are stored in RAM.

Assuming you can use the FFTW, you can simply use the C standard lib's
open() to open a file, and read() the desired amount of bytes (that
is, number of floats*4 or number of complexes*8) directly into the
buffer that you fftw_malloc'ed for usage in the fourier transform.

Hope that I could help you!

Marcus

On 24.01.2014 14:57, Paul B. Huter wrote:
> Does the function referred to have the ability to read in a File 
> Sink binary file?
> 
> Paul B. Huter On Jan 24, 2014 7:00 AM, "Martin Braun" 
> <address@hidden> wrote:
> 
>> On 01/24/2014 02:45 AM, Nasi wrote:
>>> Thanks!
>>> 
>>> with doxygen docs do you mean these:
>> http://gnuradio.org/doc/doxygen/classgr_1_1fft_1_1fft__complex.html
>>
>> 
?
>>> this redundant information is hopeless...
>>> 
>>> Do you know any normal good mature documentation?
>> 
>> Nasi,
>> 
>> part of learning GNU Radio is learning to read the
>> documentation. You're pointing to a specific object deep inside
>> the guts of GNU Radio. There will be no beginner-level
>> documentation for these kinds of objects, probably ever. If you
>> followed the docs through the navigation Modules -> Fourier
>> Analysis, you'd see three blocks available for FFTs. All they do
>> is calculate an FFT -- there is not much to say here. The
>> assumption on this page is that you know how blocks work, and
>> what an FFT is.
>> 
>> The page you pointed to is not redundant, whether or not it's 
>> hopeless is of course matter of debate. But it has all you need 
>> to calculate an FFT: The object you need, the functions you need 
>> to call etc. Here's all you really need: "compute FFT. The input 
>> comes from inbuf, the output is placed in outbuf."
>> 
>> Martin
>> 
>> _______________________________________________ Discuss-gnuradio 
>> mailing list address@hidden 
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> 
> 
> 
> 
> _______________________________________________ Discuss-gnuradio 
> mailing list address@hidden 
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS4oXjAAoJEAFxB7BbsDrLT+UH/0dXb1mqAegyPyhjdXJn27rC
wO5VBX0n8qzAn4FJ1/5VWrZ8/pYmABI4nGqU1qkEyiCWyQm+VLaCTMH8vJnLVB+6
Nd8iB4YHOuIPn8xTZfFo5sgN26ft1XbtmbE8JQUWfnMdnSKOUQgss+MPff8rAr15
hPzd4xgJV6qr7DrHiZZjJ4rv5aVUR1BkBi3rfaAwXcvMj+5qR2iRHOSVA/o3oMFA
5BWihDNtiX2je9l9io2zQEy9uYMC8X11mQ2rt8fqkNiLRZk8mnzDEzL9ZSz+sWfZ
9L2vM6Y9ZeF6aqGHTIWRL1Cv1QnGTTLfKHnaufjWwP8nwFlwqABIXn0StNAsGKY=
=hF6R
-----END PGP SIGNATURE-----



reply via email to

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