diff options
author | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-03-12 17:14:55 +0000 |
---|---|---|
committer | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-03-12 17:14:55 +0000 |
commit | 4eea337c46db44a6ee7560a4552e158421776777 (patch) | |
tree | ee976602df93d2fd210b7a04e724d140e2ad53a4 /gnuradio-examples/python/usrp/usrp_wfm_rcv.py | |
parent | 2c4a4e0c371b1cd0029901aa176915300a02f1b8 (diff) |
Add daughterboard test
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10587 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/usrp/usrp_wfm_rcv.py')
-rwxr-xr-x | gnuradio-examples/python/usrp/usrp_wfm_rcv.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gnuradio-examples/python/usrp/usrp_wfm_rcv.py b/gnuradio-examples/python/usrp/usrp_wfm_rcv.py index 5655d19b50..098897cfe2 100755 --- a/gnuradio-examples/python/usrp/usrp_wfm_rcv.py +++ b/gnuradio-examples/python/usrp/usrp_wfm_rcv.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2005,2006,2007 Free Software Foundation, Inc. +# Copyright 2005,2006,2007,2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -93,7 +93,14 @@ class wfm_rx_block (stdgui2.std_top_block): self.u.set_mux(usrp.determine_rx_mux_value(self.u, options.rx_subdev_spec)) self.subdev = usrp.selected_subdev(self.u, options.rx_subdev_spec) print "Using RX d'board %s" % (self.subdev.side_and_name(),) - + dbid = self.subdev.dbid() + if not (dbid == usrp_dbid.BASIC_RX or + dbid == usrp_dbid.TV_RX or + dbid == usrp_dbid.TV_RX_REV_2 or + dbid == usrp_dbid.TV_RX_REV_3): + print "This daughterboard does not cover the required frequency range" + print "for this application. Please use a BasicRX or TVRX daughterboard." + raw_input("Press ENTER to continue anyway, or Ctrl-C to exit.") chan_filt_coeffs = optfir.low_pass (1, # gain usrp_rate, # sampling rate |