discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problem feeding garbage to GNU Radio


From: Dan Halperin
Subject: Re: [Discuss-gnuradio] Problem feeding garbage to GNU Radio
Date: Fri, 10 Oct 2008 12:08:22 -0700

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

On Oct 10, 2008, at 11:59 AM, Philip Balister wrote:

My data file is 16bit complex shorts in big-endian format. It looks
like the file source block reads data from the file and sends it to
the fm demod which is expecting a complex float data. I attempted a
quick test by using the original data file (wrong format) which caused
the flow graph to crash with a seg fault. After converting the data to
a complex float representation the flowgraph works.

IIRC, (from doing the same thing :) ), it's really easy to get file_source to read invalid float/double values and get a bunch of NaNs in the input.

Is it worth the overhead of checking every single read for this? Probably not. But maybe we should do something about it... add an option for instance. Or more graceful handling of NaNs in some of the processing blocks.

- -Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkjvqCYACgkQy9GYuuMoUJ6uugCaAt42i6ZIVp3dqcZUAU96WGiz
pkUAn0hpOw1O7KtGk1dCA2cUFSbTITK5
=jL2i
-----END PGP SIGNATURE-----




reply via email to

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