summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/usrp/limbo/siggen_min2.py
diff options
context:
space:
mode:
authoreb2008-02-08 04:36:24 +0000
committereb2008-02-08 04:36:24 +0000
commit05005e3d3fad3c9baee9906714510b5d12e0fa6f (patch)
tree6f3785d80ac03b213dce984c9eb14be9b4c86571 /gnuradio-examples/python/usrp/limbo/siggen_min2.py
parent42ad2adb86981f4488edbe33169683f787b807c3 (diff)
downloadgnuradio-05005e3d3fad3c9baee9906714510b5d12e0fa6f.tar.gz
gnuradio-05005e3d3fad3c9baee9906714510b5d12e0fa6f.tar.bz2
gnuradio-05005e3d3fad3c9baee9906714510b5d12e0fa6f.zip
Removed gr.flow_graph, gr.hier_block and friends. From here on out
all work on the trunk must use gr.top_block and gr.hier_block2. Merged eb/fg-no-more -r7602:7606 into trunk. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7607 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/usrp/limbo/siggen_min2.py')
-rwxr-xr-xgnuradio-examples/python/usrp/limbo/siggen_min2.py62
1 files changed, 0 insertions, 62 deletions
diff --git a/gnuradio-examples/python/usrp/limbo/siggen_min2.py b/gnuradio-examples/python/usrp/limbo/siggen_min2.py
deleted file mode 100755
index 8709e3373..000000000
--- a/gnuradio-examples/python/usrp/limbo/siggen_min2.py
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/usr/bin/env python
-
-from gnuradio import gr
-from gnuradio import usrp
-from gnuradio import eng_notation
-from gnuradio.eng_option import eng_option
-from optparse import OptionParser
-
-
-
-def build_graph ():
-
- # interp = 32
- interp = 64
- nchan = 2
-
- if nchan == 1:
- mux = 0x0098
- #mux = 0x9800
- else:
- mux = 0xba98
-
- f0 = 100e3
- a0 = 16e3
- duc0 = 5e6
-
- f1 = 50e3
- a1 = 16e3
- duc1 = 7e6
-
- fg = gr.flow_graph ()
-
- u = usrp.sink_c (0, interp, nchan, mux)
- sample_rate = u.dac_freq () / interp
- print "sample_rate = ", eng_notation.num_to_str (sample_rate)
- print "usb_sample_rate = ", eng_notation.num_to_str (sample_rate * nchan)
-
- u.set_tx_freq (0, duc0)
- u.set_tx_freq (1, duc1)
-
- interleave = gr.interleave (gr.sizeof_gr_complex)
- fg.connect (interleave, u)
-
- src0 = gr.sig_source_c (sample_rate, gr.GR_SIN_WAVE, f0, a0, 0)
- fg.connect (src0, (interleave, 0))
-
- if nchan == 2:
- if 1:
- src1 = gr.sig_source_c (sample_rate, gr.GR_SIN_WAVE, f1, a1, 0)
- else:
- src1 = gr.noise_source_c (gr.GR_UNIFORM, a1)
- fg.connect (src1, (interleave, 1))
-
- return fg
-
-
-if __name__ == '__main__':
- fg = build_graph ()
- fg.start ()
- raw_input ('Press Enter to quit: ')
- fg.stop ()
-