Thanks, Andy. I had been doing that but found that while Gnuradio could
play back the resulting WAV file, my target program couldn't. I thought
the problem was the data type, but I think instead it was scaling.
When I did a "mult const" by 8192 on the data, I got results that worked
just fine. Without the multiplication, I think the very low level (-100
dB range) stuff was lost in the conversion.
John
----
On 01/07/2018 06:19 PM, Andy Walls wrote:
From: John Ackermann N8UR
Date: Sun, 7 Jan 2018 16:59:32 -0500
I need to output IQ data from a Gnuradio script in 2-channel WAV
format using integer rather than floating point, as required by the
target program.
Starting with a complex stream, is there a trick in GRC to output
integer WAV data? I think I recall a reference to doing a "mult
const" but Google isn't helping me find it.
Ensure your I & Q components are scaled down to +/-1.0 max, then just
use a "Complex to Float" block feeding a 2 channel "Wav File Sink"
block set for 16 bits per sample.
-Andy
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio