gnuradio.analog: Level Controllers

gnuradio.analog.agc_cc(float rate = 1e-4, float reference = 1.0, float gain = 1.0) → sptr

high performance Automatic Gain Control class

For Power the absolute value of the complex number is used.

Constructor Specific Documentation:

Build a complex value AGC loop block.

Parameters:
  • rate – the update rate of the loop.
  • reference – reference value to adjust signal power to.
  • gain – initial gain value.
agc_cc_sptr.active_thread_priority(self) → int
agc_cc_sptr.gain(self) → float
agc_cc_sptr.max_gain(self) → float
agc_cc_sptr.rate(self) → float
agc_cc_sptr.reference(self) → float
agc_cc_sptr.set_gain(self, float gain)
agc_cc_sptr.set_max_gain(self, float max_gain)
agc_cc_sptr.set_rate(self, float rate)
agc_cc_sptr.set_reference(self, float reference)
agc_cc_sptr.set_thread_priority(self, int priority) → int
agc_cc_sptr.thread_priority(self) → int
gnuradio.analog.agc2_cc(float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0, float gain = 1.0) → sptr

high performance Automatic Gain Control class with attack and decay rates.

For Power the absolute value of the complex number is used.

Constructor Specific Documentation:

Build a complex value AGC loop block with attack and decay rates.

Parameters:
  • attack_rate – the update rate of the loop when in attack mode.
  • decay_rate – the update rate of the loop when in decay mode.
  • reference – reference value to adjust signal power to.
  • gain – initial gain value.
agc2_cc_sptr.active_thread_priority(self) → int
agc2_cc_sptr.attack_rate(self) → float
agc2_cc_sptr.decay_rate(self) → float
agc2_cc_sptr.gain(self) → float
agc2_cc_sptr.max_gain(self) → float
agc2_cc_sptr.reference(self) → float
agc2_cc_sptr.set_attack_rate(self, float rate)
agc2_cc_sptr.set_decay_rate(self, float rate)
agc2_cc_sptr.set_gain(self, float gain)
agc2_cc_sptr.set_max_gain(self, float max_gain)
agc2_cc_sptr.set_reference(self, float reference)
agc2_cc_sptr.set_thread_priority(self, int priority) → int
agc2_cc_sptr.thread_priority(self) → int
gnuradio.analog.agc2_ff(float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0, float gain = 1.0) → sptr

high performance Automatic Gain Control class with attack and decay rates.

Power is approximated by absolute value

Constructor Specific Documentation:

Build a floating point AGC loop block with attack and decay rates.

Parameters:
  • attack_rate – the update rate of the loop when in attack mode.
  • decay_rate – the update rate of the loop when in decay mode.
  • reference – reference value to adjust signal power to.
  • gain – initial gain value.
agc2_ff_sptr.active_thread_priority(self) → int
agc2_ff_sptr.attack_rate(self) → float
agc2_ff_sptr.decay_rate(self) → float
agc2_ff_sptr.gain(self) → float
agc2_ff_sptr.max_gain(self) → float
agc2_ff_sptr.reference(self) → float
agc2_ff_sptr.set_attack_rate(self, float rate)
agc2_ff_sptr.set_decay_rate(self, float rate)
agc2_ff_sptr.set_gain(self, float gain)
agc2_ff_sptr.set_max_gain(self, float max_gain)
agc2_ff_sptr.set_reference(self, float reference)
agc2_ff_sptr.set_thread_priority(self, int priority) → int
agc2_ff_sptr.thread_priority(self) → int
gnuradio.analog.agc_ff(float rate = 1e-4, float reference = 1.0, float gain = 1.0) → sptr

high performance Automatic Gain Control class

Power is approximated by absolute value

Constructor Specific Documentation:

Build a floating point AGC loop block.

Parameters:
  • rate – the update rate of the loop.
  • reference – reference value to adjust signal power to.
  • gain – initial gain value.
agc_ff_sptr.active_thread_priority(self) → int
agc_ff_sptr.gain(self) → float
agc_ff_sptr.max_gain(self) → float
agc_ff_sptr.rate(self) → float
agc_ff_sptr.reference(self) → float
agc_ff_sptr.set_gain(self, float gain)
agc_ff_sptr.set_max_gain(self, float max_gain)
agc_ff_sptr.set_rate(self, float rate)
agc_ff_sptr.set_reference(self, float reference)
agc_ff_sptr.set_thread_priority(self, int priority) → int
agc_ff_sptr.thread_priority(self) → int
gnuradio.analog.ctcss_squelch_ff(int rate, float freq, float level, int len, int ramp, bool gate) → sptr

gate or zero output if CTCSS tone not present

Constructor Specific Documentation:

Make CTCSS tone squelch block.

Parameters:
  • rate – gain of the internal frequency filters.
  • freq – frequency value to use as the squelch tone.
  • level – threshold level for the squelch tone.
  • len – length of the frequency filters.
  • ramp – sets response characteristic.
  • gate – if true, no output if no squelch tone. if false, output 0’s if no squelch tone.
ctcss_squelch_ff_sptr.active_thread_priority(self) → int
ctcss_squelch_ff_sptr.gate(self) → bool
ctcss_squelch_ff_sptr.len(self) → int
ctcss_squelch_ff_sptr.level(self) → float
ctcss_squelch_ff_sptr.ramp(self) → int
ctcss_squelch_ff_sptr.set_gate(self, bool gate)
ctcss_squelch_ff_sptr.set_level(self, float level)
ctcss_squelch_ff_sptr.set_ramp(self, int ramp)
ctcss_squelch_ff_sptr.set_thread_priority(self, int priority) → int
ctcss_squelch_ff_sptr.squelch_range(self) → pmt_vector_float
ctcss_squelch_ff_sptr.thread_priority(self) → int
ctcss_squelch_ff_sptr.unmuted(self) → bool
gnuradio.analog.feedforward_agc_cc(int nsamples, float reference) → sptr

Non-causal AGC which computes required gain based on max absolute value over nsamples.

Constructor Specific Documentation:

Build a complex valued feed-forward AGC loop block.

Parameters:
  • nsamples – number of samples to look ahead.
  • reference – reference value to adjust signal power to.
feedforward_agc_cc_sptr.active_thread_priority(self) → int
feedforward_agc_cc_sptr.set_thread_priority(self, int priority) → int
feedforward_agc_cc_sptr.thread_priority(self) → int
gnuradio.analog.pwr_squelch_cc(double db, double alpha = 0.0001, int ramp = 0, bool gate = False) → sptr

gate or zero output when input power below threshold

Constructor Specific Documentation:

Make power-based squelch block.

Parameters:
  • db – threshold (in dB) for power squelch
  • alpha – Gain of averaging filter
  • ramp – sets response characteristic.
  • gate – if true, no output if no squelch tone. if false, output 0’s if no squelch tone.
pwr_squelch_cc_sptr.active_thread_priority(self) → int
pwr_squelch_cc_sptr.gate(self) → bool
pwr_squelch_cc_sptr.ramp(self) → int
pwr_squelch_cc_sptr.set_alpha(self, double alpha)
pwr_squelch_cc_sptr.set_gate(self, bool gate)
pwr_squelch_cc_sptr.set_ramp(self, int ramp)
pwr_squelch_cc_sptr.set_thread_priority(self, int priority) → int
pwr_squelch_cc_sptr.set_threshold(self, double db)
pwr_squelch_cc_sptr.squelch_range(self) → pmt_vector_float
pwr_squelch_cc_sptr.thread_priority(self) → int
pwr_squelch_cc_sptr.threshold(self) → double
pwr_squelch_cc_sptr.unmuted(self) → bool
gnuradio.analog.pwr_squelch_ff(double db, double alpha = 0.0001, int ramp = 0, bool gate = False) → sptr

gate or zero output when input power below threshold

Constructor Specific Documentation:

Make power-based squelch block.

Parameters:
  • db – threshold (in dB) for power squelch
  • alpha – Gain of averaging filter
  • ramp – sets response characteristic.
  • gate – if true, no output if no squelch tone. if false, output 0’s if no squelch tone.
pwr_squelch_ff_sptr.active_thread_priority(self) → int
pwr_squelch_ff_sptr.gate(self) → bool
pwr_squelch_ff_sptr.ramp(self) → int
pwr_squelch_ff_sptr.set_alpha(self, double alpha)
pwr_squelch_ff_sptr.set_gate(self, bool gate)
pwr_squelch_ff_sptr.set_ramp(self, int ramp)
pwr_squelch_ff_sptr.set_thread_priority(self, int priority) → int
pwr_squelch_ff_sptr.set_threshold(self, double db)
pwr_squelch_ff_sptr.squelch_range(self) → pmt_vector_float
pwr_squelch_ff_sptr.thread_priority(self) → int
pwr_squelch_ff_sptr.threshold(self) → double
pwr_squelch_ff_sptr.unmuted(self) → bool
gnuradio.analog.rail_ff(float lo, float hi) → sptr

clips input values to min, max

Constructor Specific Documentation:

Build a rail block.

Parameters:
  • lo – the low value to clip to.
  • hi – the high value to clip to.
rail_ff_sptr.active_thread_priority(self) → int
rail_ff_sptr.hi(self) → float
rail_ff_sptr.lo(self) → float
rail_ff_sptr.set_hi(self, float hi)
rail_ff_sptr.set_lo(self, float lo)
rail_ff_sptr.set_thread_priority(self, int priority) → int
rail_ff_sptr.thread_priority(self) → int
gnuradio.analog.simple_squelch_cc(double threshold_db, double alpha) → sptr

simple squelch block based on average signal power and threshold in dB.

Constructor Specific Documentation:

Make a simple squelch block.

Parameters:
  • threshold_db – Threshold for muting.
  • alpha – Gain parameter for the running average filter.
simple_squelch_cc_sptr.active_thread_priority(self) → int
simple_squelch_cc_sptr.set_alpha(self, double alpha)
simple_squelch_cc_sptr.set_thread_priority(self, int priority) → int
simple_squelch_cc_sptr.set_threshold(self, double decibels)
simple_squelch_cc_sptr.squelch_range(self) → pmt_vector_float
simple_squelch_cc_sptr.thread_priority(self) → int
simple_squelch_cc_sptr.threshold(self) → double
simple_squelch_cc_sptr.unmuted(self) → bool

Previous topic

gnuradio.blocks: Miscellaneous

Next topic

gnuradio.analog: Peak Detectors

This Page