[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Getting samples from Gnuradio to c++
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Getting samples from Gnuradio to c++ |
Date: |
Mon, 16 Jun 2008 09:11:54 -0700 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Mon, Jun 16, 2008 at 10:31:51AM -0400, Ed Criscuolo wrote:
> Sebastiaan Heunis wrote:
>> Can anyone please help me?
>>
>> I want to capture samples from Gnuradio and get them to a c++
>> application in real-time. I then want to calculate the ambiguity
>> function and display it on a contour plot. What is the best way to do
>> this? What I have in mind is to use Qwt with Qt for this, but then I
>> will need to get the samples to c++ in real-time.
>>
>
> Write your samples to a UDP_sink, with the packets addressed to
> localhost (127.0.0.1). Then you can write a simple UDP reader
> in C++ to get the data in realtime.
-- or --
Use usrp_rx_cfile and specify a file that goes somewhere you like.
E.g., a named pipe (see man mkfifo), or you could write to stdout on
Linux like this:
$ usrp_rx_cfile -R A -f <freq> -d <decim> -g <gain> /proc/self/fd/1 |
my-c++-app
[We could of course change the interface so that it would write to
stdout if no file was specified...]
Eric