diff options
Diffstat (limited to 'gr-uhd/examples/fm_tx4.py')
-rwxr-xr-x | gr-uhd/examples/fm_tx4.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gr-uhd/examples/fm_tx4.py b/gr-uhd/examples/fm_tx4.py index 714eed3cf..aecb35b54 100755 --- a/gr-uhd/examples/fm_tx4.py +++ b/gr-uhd/examples/fm_tx4.py @@ -37,7 +37,6 @@ from gnuradio import uhd from gnuradio import blks2 from gnuradio.eng_option import eng_option from optparse import OptionParser -from usrpm import usrp_dbid import math import sys @@ -119,6 +118,14 @@ class fm_tx_block(stdgui2.std_top_block): self.u = uhd.usrp_sink(device_addr=options.args, stream_args=uhd.stream_args('fc32')) + # 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) + self.usrp_rate = options.samp_rate self.u.set_samp_rate(self.usrp_rate) self.usrp_rate = self.u.get_samp_rate() @@ -134,14 +141,6 @@ class fm_tx_block(stdgui2.std_top_block): self.set_gain(options.gain) self.set_freq(options.freq) - # 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) - self.sum = gr.add_cc () # Instantiate N NBFM channels |