summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/python
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-03-10 23:52:51 -0400
committerTom Rondeau <trondeau@vt.edu>2013-03-10 23:52:51 -0400
commit294a6fd3b811703329eb15ed91d848c65cc6700e (patch)
treeb422709c45c6bd8a67255d1c55f0cc34604e5bfc /gr-uhd/examples/python
parent5a3f0062fa438875b68191363d4ff78ccd07d0c9 (diff)
blocks: removing file_sink/source file_descriptor_sink/source form core and moved all refs to gr-blocks.
Diffstat (limited to 'gr-uhd/examples/python')
-rwxr-xr-xgr-uhd/examples/python/fm_tx4.py2
-rwxr-xr-xgr-uhd/examples/python/usrp_tv_rcv.py4
-rwxr-xr-xgr-uhd/examples/python/usrp_tv_rcv_nogui.py8
3 files changed, 7 insertions, 7 deletions
diff --git a/gr-uhd/examples/python/fm_tx4.py b/gr-uhd/examples/python/fm_tx4.py
index e4cf3ded24..fefa67861b 100755
--- a/gr-uhd/examples/python/fm_tx4.py
+++ b/gr-uhd/examples/python/fm_tx4.py
@@ -56,7 +56,7 @@ class pipeline(gr.hier_block2):
gr.io_signature(1, 1, gr.sizeof_gr_complex))
try:
- src = gr.file_source (gr.sizeof_float, filename, True)
+ src = blocks.file_source (gr.sizeof_float, filename, True)
except RuntimeError:
sys.stderr.write(("\nError: Could not open file '%s'\n\n" % \
filename))
diff --git a/gr-uhd/examples/python/usrp_tv_rcv.py b/gr-uhd/examples/python/usrp_tv_rcv.py
index 3e612f6a02..d94b651660 100755
--- a/gr-uhd/examples/python/usrp_tv_rcv.py
+++ b/gr-uhd/examples/python/usrp_tv_rcv.py
@@ -124,7 +124,7 @@ class tv_rx_block (stdgui2.std_top_block):
if not ((filename is None) or (filename=="usrp")):
# file is data source
- self.filesource = gr.file_source(gr.sizeof_short,filename,options.repeat)
+ self.filesource = blocks.file_source(gr.sizeof_short,filename,options.repeat)
self.istoc = blocks.interleaved_short_to_complex()
self.connect(self.filesource,self.istoc)
self.src=self.istoc
@@ -193,7 +193,7 @@ class tv_rx_block (stdgui2.std_top_block):
+ " gray:" + options.out_filename
print "(Use the spacebar to advance to next frames)"
options.repeat=False
- file_sink=gr.file_sink(gr.sizeof_char, options.out_filename)
+ file_sink = blocks.file_sink(gr.sizeof_char, options.out_filename)
self.dst =file_sink
self.agc = analog.agc_cc(1e-7,1.0,1.0) #1e-7
diff --git a/gr-uhd/examples/python/usrp_tv_rcv_nogui.py b/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
index 5eef4a00f6..13395cef46 100755
--- a/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
+++ b/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
@@ -120,9 +120,9 @@ class my_top_block(gr.top_block):
if not (options.in_filename=="usrp"):
# file is data source, capture with usr_rx_csfile.py
- self.filesource = gr.file_source(gr.sizeof_short,
- options.in_filename,
- options.repeat)
+ self.filesource = blocks.file_source(gr.sizeof_short,
+ options.in_filename,
+ options.repeat)
self.istoc = blocks.interleaved_short_to_complex()
self.connect(self.filesource,self.istoc)
self.src=self.istoc
@@ -196,7 +196,7 @@ class my_top_block(gr.top_block):
print "use the following line to show the demodulated TV-signal:"
print "display -depth 8 -size " +str(width)+ "x" + str(height) + " gray:" +filename
print "(Use the spacebar to advance to next frames)"
- file_sink=gr.file_sink(gr.sizeof_char, filename)
+ file_sink = blocks.file_sink(gr.sizeof_char, filename)
self.dst =file_sink
if options.nframes is None: