summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/usrp_wfm_rcv_sca.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/examples/usrp_wfm_rcv_sca.py')
-rwxr-xr-xgr-uhd/examples/usrp_wfm_rcv_sca.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/gr-uhd/examples/usrp_wfm_rcv_sca.py b/gr-uhd/examples/usrp_wfm_rcv_sca.py
index f0f6aec66..9caef7499 100755
--- a/gr-uhd/examples/usrp_wfm_rcv_sca.py
+++ b/gr-uhd/examples/usrp_wfm_rcv_sca.py
@@ -66,6 +66,8 @@ class wfm_rx_sca_block (stdgui2.std_top_block):
parser=OptionParser(option_class=eng_option)
parser.add_option("-a", "--args", type="string", default="",
help="UHD device address args [default=%default]")
+ parser.add_option("", "--spec", type="string", default=None,
+ help="Subdevice of UHD device where appropriate")
parser.add_option("-A", "--antenna", type="string", default=None,
help="select Rx Antenna where appropriate")
parser.add_option("-f", "--freq", type="eng_float", default=100.1e6,
@@ -211,7 +213,14 @@ class wfm_rx_sca_block (stdgui2.std_top_block):
self._set_status_msg("Failed to set initial frequency")
self.set_sca_freq(67000) # A common SCA Frequency
-
+ # Set the subdevice spec
+ if(options.spec):
+ self.u.set_subdev_spec(options.spec, 0)
+
+ # Set the antenna
+ if(options.antenna):
+ self.u.set_antenna(options.antenna, 0)
+
def _set_status_msg(self, msg, which=0):
self.frame.GetStatusBar().SetStatusText(msg, which)