discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Question about Double / Float values in GRC


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Question about Double / Float values in GRC
Date: Mon, 14 Mar 2011 00:59:57 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

> Is it even possible to read a file with double values using a GRC
> generated script and the gr_file_source block?  Or is there something
> else I am doing wrong?
> 

Its a 2 part problem:

Unlike gnuradio blocks, in GRC, the data type is checked. So there is no
support for double streams. However you could configure the file source
to use a byte stream w/ a vlen of 8. That would match the itemsize, but...

The other problem is that gnuradio has no blocks that use double
streams. Its wasted overhead since floats give all the necessary dynamic
range. So nobody invested any effort into it.

You may have to add a custom gnuradio block that converts a double
stream to a float stream. A set of double to<->from float blocks would
be a welcome addition.

-Josh



reply via email to

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