gnuradio.blks2: Signal Processing Blocks

class gnuradio.blks2.am_demod_cf(channel_rate, audio_decim, audio_pass, audio_stop)

Generalized AM demodulation block with audio filtering.

This block demodulates a band-limited, complex down-converted AM channel into the the original baseband signal, applying low pass filtering to the audio output. It produces a float stream in the range [-1.0, +1.0].

@param channel_rate: incoming sample rate of the AM baseband @type sample_rate: integer @param audio_decim: input to output decimation rate @type audio_decim: integer @param audio_pass: audio low pass filter passband frequency @type audio_pass: float @param audio_stop: audio low pass filter stop frequency @type audio_stop: float

class gnuradio.blks2.ctcss_gen_f(sample_rate, tone_freq)
class gnuradio.blks2.demod_10k0a3e_cf(channel_rate, audio_decim)

AM demodulation block, 10 KHz channel.

This block demodulates an AM channel conformant to 10K0A3E emission standards, such as broadcast band AM transmissions.

@param channel_rate: incoming sample rate of the AM baseband @type sample_rate: integer @param audio_decim: input to output decimation rate @type audio_decim: integer

class gnuradio.blks2.demod_200kf3e_cf(channel_rate, audio_decim)

WFM demodulation block, mono.

This block demodulates a complex, downconverted, wideband FM channel conforming to 200KF3E emission standards, outputting floats in the range [-1.0, +1.0].

@param sample_rate: incoming sample rate of the FM baseband @type sample_rate: integer @param audio_decim: input to output decimation rate @type audio_decim: integer

class gnuradio.blks2.demod_20k0f3e_cf(channel_rate, audio_decim)

NBFM demodulation block, 20 KHz channels

This block demodulates a complex, downconverted, narrowband FM channel conforming to 20K0F3E emission standards, outputting floats in the range [-1.0, +1.0].

@param sample_rate: incoming sample rate of the FM baseband @type sample_rate: integer @param audio_decim: input to output decimation rate @type audio_decim: integer

class gnuradio.blks2.fm_demod_cf(channel_rate, audio_decim, deviation, audio_pass, audio_stop, gain=1.0, tau=7.5e-05)

Generalized FM demodulation block with deemphasis and audio filtering.

This block demodulates a band-limited, complex down-converted FM channel into the the original baseband signal, optionally applying deemphasis. Low pass filtering is done on the resultant signal. It produces an output float strem in the range of [-1.0, +1.0].

@param channel_rate: incoming sample rate of the FM baseband @type sample_rate: integer @param deviation: maximum FM deviation (default = 5000) @type deviation: float @param audio_decim: input to output decimation rate @type audio_decim: integer @param audio_pass: audio low pass filter passband frequency @type audio_pass: float @param audio_stop: audio low pass filter stop frequency @type audio_stop: float @param gain: gain applied to audio output (default = 1.0) @type gain: float @param tau: deemphasis time constant (default = 75e-6), specify ‘None’

to prevent deemphasis
class gnuradio.blks2.logpwrfft_c(sample_rate, fft_size, ref_scale, frame_rate, avg_alpha, average, win=None)

Create an fft block chain, with complex input.

class gnuradio.blks2.logpwrfft_f(sample_rate, fft_size, ref_scale, frame_rate, avg_alpha, average, win=None)

Create an fft block chain, with real input.

class gnuradio.blks2.pfb_arb_resampler_ccf(rate, taps=None, flt_size=32, atten=100)

Convenience wrapper for the polyphase filterbank arbitrary resampler.

The block takes a single complex stream in and outputs a single complex stream out. As such, it requires no extra glue to handle the input/output streams. This block is provided to be consistent with the interface to the other PFB block.

class gnuradio.blks2.pfb_arb_resampler_fff(rate, taps=None, flt_size=32, atten=100)

Convenience wrapper for the polyphase filterbank arbitrary resampler.

The block takes a single float stream in and outputs a single float stream out. As such, it requires no extra glue to handle the input/output streams. This block is provided to be consistent with the interface to the other PFB block.

class gnuradio.blks2.pfb_channelizer_ccf(numchans, taps=None, oversample_rate=1, atten=100)

Make a Polyphase Filter channelizer (complex in, complex out, floating-point taps)

This simplifies the interface by allowing a single input stream to connect to this block. It will then output a stream for each channel.

class gnuradio.blks2.pfb_decimator_ccf(decim, taps=None, channel=0, atten=100)

Make a Polyphase Filter decimator (complex in, complex out, floating-point taps)

This simplifies the interface by allowing a single input stream to connect to this block. It will then output a stream that is the decimated output stream.

class gnuradio.blks2.pfb_interpolator_ccf(interp, taps=None, atten=100)

Make a Polyphase Filter interpolator (complex in, complex out, floating-point taps)

The block takes a single complex stream in and outputs a single complex stream out. As such, it requires no extra glue to handle the input/output streams. This block is provided to be consistent with the interface to the other PFB block.

class gnuradio.blks2.rational_resampler_ccc(interpolation, decimation, taps=None, fractional_bw=None)
class gnuradio.blks2.rational_resampler_ccf(interpolation, decimation, taps=None, fractional_bw=None)
class gnuradio.blks2.rational_resampler_fff(interpolation, decimation, taps=None, fractional_bw=None)
class gnuradio.blks2.analysis_filterbank(mpoints, taps=None)

Uniformly modulated polyphase DFT filter bank: analysis

See http://cnx.org/content/m10424/latest

class gnuradio.blks2.fm_deemph(fs, tau=7.5e-05)

FM Deemphasis IIR filter.

class gnuradio.blks2.fm_preemph(fs, tau=7.5e-05)

FM Preemphasis IIR filter.

class gnuradio.blks2.nbfm_rx(audio_rate, quad_rate, tau=7.5e-05, max_dev=5000.0)
class gnuradio.blks2.nbfm_tx(audio_rate, quad_rate, tau=7.5e-05, max_dev=5000.0)
class gnuradio.blks2.stream_to_vector_decimator(item_size, sample_rate, vec_rate, vec_len)

Convert the stream to a vector, decimate the vector stream to achieve the vector rate.

decimation()

Returns the actual decimation.

frame_rate()

Returns actual frame rate

sample_rate()

Returns configured sample rate.

set_decimation(decim)

Set the decimation parameter directly. @param decim the new decimation

set_sample_rate(sample_rate)

Set the new sampling rate and update the decimator. @param sample_rate the new rate

set_vec_rate(vec_rate)

Set the new vector rate and update the decimator. @param vec_rate the new rate

class gnuradio.blks2.standard_squelch(audio_rate)
class gnuradio.blks2.synthesis_filterbank(mpoints, taps=None)

Uniformly modulated polyphase DFT filter bank: synthesis

See http://cnx.org/content/m10424/latest

class gnuradio.blks2.wfm_rcv(quad_rate, audio_decimation)
class gnuradio.blks2.wfm_rcv_fmdet(demod_rate, audio_decimation)
class gnuradio.blks2.wfm_rcv_pll(demod_rate, audio_decimation)
class gnuradio.blks2.wfm_tx(audio_rate, quad_rate, tau=7.5e-05, max_dev=75000.0)

Previous topic

gnuradio.atsc: Signal Processing Blocks

Next topic

gnuradio.blks2: Utility Functions

This Page