diff options
author | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-10-26 19:46:59 +0000 |
---|---|---|
committer | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-10-26 19:46:59 +0000 |
commit | 7dd8552fb38a5bfdf68c280261fad60d43bdc328 (patch) | |
tree | 7086dca16a38980e8d60da5a91c9d7c289168069 /gr-utils/src/python/usrp2_siggen.py | |
parent | 69682ac49f545217f3070e0ac25b0da92cda1c2c (diff) |
Updated usrp2_rx_cfile.py and usrp2_siggen.py to use updated gr-usrp2
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9858 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-utils/src/python/usrp2_siggen.py')
-rwxr-xr-x | gr-utils/src/python/usrp2_siggen.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gr-utils/src/python/usrp2_siggen.py b/gr-utils/src/python/usrp2_siggen.py index 26b7916abd..40506213e3 100755 --- a/gr-utils/src/python/usrp2_siggen.py +++ b/gr-utils/src/python/usrp2_siggen.py @@ -38,9 +38,8 @@ class siggen_top_block(gr.top_block): # Set the Tx daughterboard gain as requested if options.gain is None: - #g = self._u.gain_range() - #options.gain = float(g[0]+g[1])/2 - options.gain = 0 # Until gain range is implemented + g = self._u.gain_range() + options.gain = float(g[0]+g[1])/2 self._u.set_gain(options.gain) # Tune the USRP2 FPGA and daughterboard to the requested center frequency @@ -49,8 +48,7 @@ class siggen_top_block(gr.top_block): sys.stderr.write('Failed to set center frequency\n') raise SystemExit, 1 - #eth_rate = self._u.dac_rate()/self._u.interp_rate() - eth_rate = 100e6/options.interp # FIXME + eth_rate = self._u.dac_rate()/self._u.interp() # Create a source for the requested waveform type if options.type == gr.GR_SIN_WAVE or options.type == gr.GR_CONST_WAVE: |