summaryrefslogtreecommitdiff
path: root/gr-pager/apps/usrp_flex
diff options
context:
space:
mode:
Diffstat (limited to 'gr-pager/apps/usrp_flex')
-rwxr-xr-xgr-pager/apps/usrp_flex7
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-pager/apps/usrp_flex b/gr-pager/apps/usrp_flex
index 33877ea4ee..811c6e95c0 100755
--- a/gr-pager/apps/usrp_flex
+++ b/gr-pager/apps/usrp_flex
@@ -21,6 +21,7 @@
#
from gnuradio import gr, gru, uhd, optfir, eng_notation, pager
+from gnuradio import blocks
from gnuradio.eng_option import eng_option
from optparse import OptionParser
import time, os, sys
@@ -65,12 +66,12 @@ class app_top_block(gr.top_block):
else:
# Use supplied file as source of samples
- self.u = gr.file_source(gr.sizeof_gr_complex, options.from_file)
+ self.u = blocks.file_source(gr.sizeof_gr_complex, options.from_file)
if options.verbose:
print "Reading samples from", options.from_file
if options.log and not options.from_file:
- usrp_sink = gr.file_sink(gr.sizeof_gr_complex, 'usrp.dat')
+ usrp_sink = blocks.file_sink(gr.sizeof_gr_complex, 'usrp.dat')
self.connect(self.u, usrp_sink)
# Set up 22KHz-wide bandpass about center frequency. Decimate by 10
@@ -91,7 +92,7 @@ class app_top_block(gr.top_block):
250e3) # Sample rate
if options.log:
- chan_sink = gr.file_sink(gr.sizeof_gr_complex, 'chan.dat')
+ chan_sink = blocks.file_sink(gr.sizeof_gr_complex, 'chan.dat')
self.connect(self.chan, chan_sink)
# FLEX protocol demodulator