summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python
diff options
context:
space:
mode:
authoreb2007-01-29 20:49:39 +0000
committereb2007-01-29 20:49:39 +0000
commit8585c5018d79b7d87f8e0bd664a235fba22da093 (patch)
tree4e8daf4a4ed6041f8626596efc51aa9fb3dc5d9c /gnuradio-examples/python
parentcf90c86471aac829564feabab0ee7f6efc85d4b7 (diff)
downloadgnuradio-8585c5018d79b7d87f8e0bd664a235fba22da093.tar.gz
gnuradio-8585c5018d79b7d87f8e0bd664a235fba22da093.tar.bz2
gnuradio-8585c5018d79b7d87f8e0bd664a235fba22da093.zip
removed obsolete dsb_tx.py
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4321 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python')
-rwxr-xr-xgnuradio-examples/python/usrp/dsb_tx.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/gnuradio-examples/python/usrp/dsb_tx.py b/gnuradio-examples/python/usrp/dsb_tx.py
deleted file mode 100755
index df65761cd..000000000
--- a/gnuradio-examples/python/usrp/dsb_tx.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env python
-
-from gnuradio import gr, eng_notation
-from gnuradio import usrp
-from gnuradio import audio
-from gnuradio.eng_option import eng_option
-from optparse import OptionParser
-
-
-def build_graph (cordic_freq):
-
- audio_rate = 32000
- sw_interp = 4
- usrp_interp = 1000
- audio_file = "/home/eb/demo/testing-audio.dat"
-
- fg = gr.flow_graph ()
-
- src = gr.file_source (gr.sizeof_float, audio_file, True)
- gain = gr.multiply_const_ff (10000)
-
- interp = gr.interp_fir_filter_fff (sw_interp, (1, 1, 1, 1))
-
- f2c = gr.float_to_complex ()
-
- u = usrp.sink_c (0, usrp_interp)
- u.set_tx_freq (0, cordic_freq)
-
- fg.connect (src, gain)
- fg.connect (gain, interp)
- fg.connect (interp, (f2c, 0))
- fg.connect (interp, (f2c, 1))
- fg.connect (f2c, u)
-
- return fg
-
-def main ():
- parser = OptionParser (option_class=eng_option)
- parser.add_option ("-c", "--cordic-freq", type="eng_float", default=10e6,
- help="set Tx cordic frequency to FREQ", metavar="FREQ")
- (options, args) = parser.parse_args ()
-
- print "cordic_freq = %s" % (eng_notation.num_to_str (options.cordic_freq))
- fg = build_graph (options.cordic_freq)
-
- fg.start ()
- raw_input ('Press Enter to quit: ')
- fg.stop ()
-
-if __name__ == '__main__':
- main ()