#!/usr/bin/env python
#
-# Copyright 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# Boston, MA 02110-1301, USA.
#
-from gnuradio import gr, gru, modulation_utils, blks2
+from gnuradio import gr, gru, modulation_utils
from gnuradio import eng_notation
from gnuradio.eng_option import eng_option
from optparse import OptionParser
self.rxpath = receive_path(demod_class, rx_callback, options)
if channelon:
- self.channel = blks2.channel_model(noise_voltage, frequency_offset, 1.01)
+ self.channel = gr.channel_model(noise_voltage, frequency_offset, 1.01)
if options.discontinuous:
z = 20000*[0,]
#!/usr/bin/env python
#
-# Copyright 2006, 2007 Free Software Foundation, Inc.
+# Copyright 2006, 2007, 2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
#self.mux = gr.stream_mux(gr.sizeof_gr_complex, stream_size)
self.throttle = gr.throttle(gr.sizeof_gr_complex, options.sample_rate)
- self.channel = blks2.channel_model(noise_voltage, frequency_offset,
- options.clockrate_ratio, taps)
+ self.channel = gr.channel_model(noise_voltage, frequency_offset,
+ options.clockrate_ratio, taps)
self.rxpath = receive_path(callback, options)
#self.connect(self.zeros, (self.mux,0))
#!/usr/bin/env python
-from gnuradio import gr, blks2
+from gnuradio import gr
from gnuradio.qtgui import qtgui
from PyQt4 import QtGui, QtCore
import sys, sip
src1 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f1, 0.1, 0)
src2 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f2, 0.1, 0)
src = gr.add_cc()
- channel = blks2.channel_model(0.001)
+ channel = gr.channel_model(0.001)
thr = gr.throttle(gr.sizeof_gr_complex, 100*fftsize)
self.snk1 = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS,
-Rs/2, Rs/2,
def noiseEditText(self):
try:
noise = self.noiseEdit.text().toDouble()[0]
- self.channel.noise.set_amplitude(noise)
+ self.channel.set_noise_voltage(noise)
self.noise = noise
except RuntimeError:
def freqEditText(self):
try:
freq = self.freqEdit.text().toDouble()[0]
- self.channel.freq_offset.set_frequency(freq)
+ self.channel.set_frequency_offset(freq)
self.freq = freq
except RuntimeError:
def timeEditText(self):
try:
to = self.timeEdit.text().toDouble()[0]
- self.channel.timing_offset.set_interp_ratio(to)
+ self.channel.set_timing_offset(to)
self.timing_offset = to
except RuntimeError:
noise = 1e-7
fo = 1e-6
to = 1.0
- channel = blks2.channel_model(noise, fo, to)
+ channel = gr.channel_model(noise, fo, to)
thr = gr.throttle(gr.sizeof_gr_complex, 10*fftsize)
self.snk_tx = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS, -1/2, 1/2,