gnuradio.blocks: Level Controllers

gnuradio.blocks.moving_average_cc(int length, gr_complex scale, int max_iter = 4096) → sptr

output is the moving sum of the last N samples, scaled by the scale factor

Constructor Specific Documentation:

Create a moving average block.

Parameters:
  • length – Number of samples to use in the average.
  • scale – scale factor for the result.
  • max_iter – limits how long we go without flushing the accumulator This is necessary to avoid numerical instability for float and complex.
moving_average_cc_sptr.active_thread_priority(self) → int
moving_average_cc_sptr.scale(self) → gr_complex

Get the scale factor being used.

moving_average_cc_sptr.set_length(self, int length)

Set the length.

moving_average_cc_sptr.set_length_and_scale(self, int length, gr_complex scale)

Set both the length and the scale factor together.

moving_average_cc_sptr.set_scale(self, gr_complex scale)

Set the scale factor.

moving_average_cc_sptr.set_thread_priority(self, int priority) → int
moving_average_cc_sptr.thread_priority(self) → int
gnuradio.blocks.moving_average_ff(int length, float scale, int max_iter = 4096) → sptr

output is the moving sum of the last N samples, scaled by the scale factor

Constructor Specific Documentation:

Create a moving average block.

Parameters:
  • length – Number of samples to use in the average.
  • scale – scale factor for the result.
  • max_iter – limits how long we go without flushing the accumulator This is necessary to avoid numerical instability for float and complex.
moving_average_ff_sptr.active_thread_priority(self) → int
moving_average_ff_sptr.scale(self) → float

Get the scale factor being used.

moving_average_ff_sptr.set_length(self, int length)

Set the length.

moving_average_ff_sptr.set_length_and_scale(self, int length, float scale)

Set both the length and the scale factor together.

moving_average_ff_sptr.set_scale(self, float scale)

Set the scale factor.

moving_average_ff_sptr.set_thread_priority(self, int priority) → int
moving_average_ff_sptr.thread_priority(self) → int
gnuradio.blocks.moving_average_ii(int length, int scale, int max_iter = 4096) → sptr

output is the moving sum of the last N samples, scaled by the scale factor

Constructor Specific Documentation:

Create a moving average block.

Parameters:
  • length – Number of samples to use in the average.
  • scale – scale factor for the result.
  • max_iter – limits how long we go without flushing the accumulator This is necessary to avoid numerical instability for float and complex.
moving_average_ii_sptr.active_thread_priority(self) → int
moving_average_ii_sptr.scale(self) → int

Get the scale factor being used.

moving_average_ii_sptr.set_length(self, int length)

Set the length.

moving_average_ii_sptr.set_length_and_scale(self, int length, int scale)

Set both the length and the scale factor together.

moving_average_ii_sptr.set_scale(self, int scale)

Set the scale factor.

moving_average_ii_sptr.set_thread_priority(self, int priority) → int
moving_average_ii_sptr.thread_priority(self) → int
gnuradio.blocks.moving_average_ss(int length, short scale, int max_iter = 4096) → sptr

output is the moving sum of the last N samples, scaled by the scale factor

Constructor Specific Documentation:

Create a moving average block.

Parameters:
  • length – Number of samples to use in the average.
  • scale – scale factor for the result.
  • max_iter – limits how long we go without flushing the accumulator This is necessary to avoid numerical instability for float and complex.
moving_average_ss_sptr.active_thread_priority(self) → int
moving_average_ss_sptr.scale(self) → short

Get the scale factor being used.

moving_average_ss_sptr.set_length(self, int length)

Set the length.

moving_average_ss_sptr.set_length_and_scale(self, int length, short scale)

Set both the length and the scale factor together.

moving_average_ss_sptr.set_scale(self, short scale)

Set the scale factor.

moving_average_ss_sptr.set_thread_priority(self, int priority) → int
moving_average_ss_sptr.thread_priority(self) → int
gnuradio.blocks.mute_cc(bool mute = False) → sptr

output = input or zero if muted.

Constructor Specific Documentation:

Parameters:mute
mute_cc_sptr.active_thread_priority(self) → int
mute_cc_sptr.mute(self) → bool
mute_cc_sptr.set_mute(self, bool mute = False)
mute_cc_sptr.set_thread_priority(self, int priority) → int
mute_cc_sptr.thread_priority(self) → int
gnuradio.blocks.mute_ff(bool mute = False) → sptr

output = input or zero if muted.

Constructor Specific Documentation:

Parameters:mute
mute_ff_sptr.active_thread_priority(self) → int
mute_ff_sptr.mute(self) → bool
mute_ff_sptr.set_mute(self, bool mute = False)
mute_ff_sptr.set_thread_priority(self, int priority) → int
mute_ff_sptr.thread_priority(self) → int
gnuradio.blocks.mute_ii(bool mute = False) → sptr

output = input or zero if muted.

Constructor Specific Documentation:

Parameters:mute
mute_ii_sptr.active_thread_priority(self) → int
mute_ii_sptr.mute(self) → bool
mute_ii_sptr.set_mute(self, bool mute = False)
mute_ii_sptr.set_thread_priority(self, int priority) → int
mute_ii_sptr.thread_priority(self) → int
gnuradio.blocks.mute_ss(bool mute = False) → sptr

output = input or zero if muted.

Constructor Specific Documentation:

Parameters:mute
mute_ss_sptr.active_thread_priority(self) → int
mute_ss_sptr.mute(self) → bool
mute_ss_sptr.set_mute(self, bool mute = False)
mute_ss_sptr.set_thread_priority(self, int priority) → int
mute_ss_sptr.thread_priority(self) → int
gnuradio.blocks.sample_and_hold_bb() → sptr

sample and hold circuit

Samples the data stream (input stream 0) and holds the value if the control signal is 1 (intput stream 1).

Constructor Specific Documentation:

sample_and_hold_bb_sptr.active_thread_priority(self) → int
sample_and_hold_bb_sptr.set_thread_priority(self, int priority) → int
sample_and_hold_bb_sptr.thread_priority(self) → int
gnuradio.blocks.sample_and_hold_ff() → sptr

sample and hold circuit

Samples the data stream (input stream 0) and holds the value if the control signal is 1 (intput stream 1).

Constructor Specific Documentation:

sample_and_hold_ff_sptr.active_thread_priority(self) → int
sample_and_hold_ff_sptr.set_thread_priority(self, int priority) → int
sample_and_hold_ff_sptr.thread_priority(self) → int
gnuradio.blocks.sample_and_hold_ii() → sptr

sample and hold circuit

Samples the data stream (input stream 0) and holds the value if the control signal is 1 (intput stream 1).

Constructor Specific Documentation:

sample_and_hold_ii_sptr.active_thread_priority(self) → int
sample_and_hold_ii_sptr.set_thread_priority(self, int priority) → int
sample_and_hold_ii_sptr.thread_priority(self) → int
gnuradio.blocks.sample_and_hold_ss() → sptr

sample and hold circuit

Samples the data stream (input stream 0) and holds the value if the control signal is 1 (intput stream 1).

Constructor Specific Documentation:

sample_and_hold_ss_sptr.active_thread_priority(self) → int
sample_and_hold_ss_sptr.set_thread_priority(self, int priority) → int
sample_and_hold_ss_sptr.thread_priority(self) → int
gnuradio.blocks.threshold_ff(float lo, float hi, float initial_state = 0) → sptr

Output a 1 or zero based on a threshold value.

Test the incoming signal against a threshold. If the signal excedes the value, it will output a 1 until the signal falls below the value.

Constructor Specific Documentation:

Parameters:
  • lo
  • hi
  • initial_state
threshold_ff_sptr.active_thread_priority(self) → int
threshold_ff_sptr.hi(self) → float
threshold_ff_sptr.last_state(self) → float
threshold_ff_sptr.lo(self) → float
threshold_ff_sptr.set_hi(self, float hi)
threshold_ff_sptr.set_last_state(self, float last_state)
threshold_ff_sptr.set_lo(self, float lo)
threshold_ff_sptr.set_thread_priority(self, int priority) → int
threshold_ff_sptr.thread_priority(self) → int

Previous topic

gnuradio.blocks: Byte Operators

Next topic

gnuradio.blocks: Streams Operators

This Page