Initialization of USRP? And a question about wfm_rcv_file

Hi,
How or where does the python code initialize the USRP? Is that when I
import usrp from gnuradio in the python code?
Another question is about wfm_rcv_file. I thought this code will read
the
buffer of USRP, process it and save it to file. But in the file I saw
that
this line ‘src = usrp.source_c’ is not been used. I guess this means
that
wfm_rcv_file does not read from the USRP buffer, but from an output file
of
received samples. There are 2 files, usrp_rx_file and usrp_rx_cfile, I
suppsoe it’s the output of the second one that I shall use as input to
this
wfm_rcv_file?
Thanks a lot.
/Lin

On Wed, Nov 15, 2006 at 03:23:14PM +0100, Lin Ji wrote:

Hi,
How or where does the python code initialize the USRP? Is that when I
import usrp from gnuradio in the python code?

No, not when the import is done, but rather when the source or sink is
constructed.

Another question is about wfm_rcv_file. I thought this code will read the
buffer of USRP, process it and save it to file. But in the file I saw that
this line ‘src = usrp.source_c’ is not been used. I guess this means that
wfm_rcv_file does not read from the USRP buffer, but from an output file of
received samples.

Correct.

There are 2 files, usrp_rx_file and usrp_rx_cfile, I
suppsoe it’s the output of the second one that I shall use as input to this
wfm_rcv_file?

usrp_rx_file was removed from the respository a long time a ago.
May I kindly suggest that you try the current code.
See http://gnuradio.org/trac/wiki

If you want to use the usrp to receive wfm radio, try
usrp_wfm_rcv_pll.py

Thanks a lot.
/Lin

Eric

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs