discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to send USRP data to the terminal window


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] How to send USRP data to the terminal window
Date: Tue, 27 Jun 2006 12:20:57 -0700
User-agent: Mutt/1.5.9i

On Tue, Jun 27, 2006 at 11:31:31AM -0700, Tony wrote:

> I'm operating GNU Radio 2.8 on Ubuntu 6.06 LTS and using USRP mostly
> with the DBSRX rev 2.1 daughterboard.  Can someone comment on 2
> questions.

> How can you display the raw or processed USRP I & Q data on the
> screen?  I've done this by using something like this:

Unless you're running at a really low rate, it's unlikely that your
screen can keep up.


> sink1 = gr.complex_to_float()
> sink2 = gr.file_sink(gr.sizeof_float,"/dev/tty")
> fg.connect(self,sink1,sink2)
> .

> but I'd like to refine the data output, time stamp it and only have
> it display based on one or more criterions.  Is it reasonable to do
> this in Python or is sending the data to another process a better
> solution?

Depends on the data rate.  Since the sample rate is constant, if you
write it to a file you can figure out the time corresponding to any
point in the file by starting at the file creation time stamp.


> What is the format of the USRP complex output and the FFT output?

The output of the USRP complex output is binary complex<float>'s. 
That is, 32-bit float I, 32-bit float Q.

The output of the gr_fft_vcc is a vector of complex<floats>.  The
length of the vector is equal to the number of bins in the FFT.

>  Is it documented somewhere?

It's in the doxygen generated docs, or you can look at the relevant .h
files and find it there.  

In general GNU Radio processes binary numbers.  
These are typically floats, gr_complex (== std::complex<float>)
and sometimes shorts, ints and unsigned chars.

Almost all blocks have some kind of suffix, e.g., usrp.source_c.
The suffix indicates the type of the input and/or output streams.

> Many thanks to all that have worked on the GNU Radio project.  

You're welcome.

> I hope to become a contributing member as I gain more skill here.
> Tony B

Very good!
Eric




reply via email to

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