gnuradio.blocks: Data Type Converters

gnuradio.blocks.char_to_float(size_t vlen = 1, float scale = 1.0) → sptr

Convert stream of chars to a stream of float.

Constructor Specific Documentation:

Build a chars to float stream converter block.

Parameters:
  • vlen – vector length of data streams.
  • scale – a scalar divider to change the output signal scale.
char_to_float_sptr.active_thread_priority(self) → int
char_to_float_sptr.scale(self) → float

Get the scalar divider value.

char_to_float_sptr.set_scale(self, float scale)

Set the scalar divider value.

char_to_float_sptr.set_thread_priority(self, int priority) → int
char_to_float_sptr.thread_priority(self) → int
gnuradio.blocks.char_to_short(size_t vlen = 1) → sptr

Convert stream of chars to a stream of short.

Constructor Specific Documentation:

Parameters:vlen
char_to_short_sptr.active_thread_priority(self) → int
char_to_short_sptr.set_thread_priority(self, int priority) → int
char_to_short_sptr.thread_priority(self) → int
gnuradio.blocks.complex_to_arg(size_t vlen = 1) → sptr

complex in, arg out (float)

Constructor Specific Documentation:

Build a complex to arg block.

Parameters:vlen – vector len (default 1)
complex_to_arg_sptr.active_thread_priority(self) → int
complex_to_arg_sptr.set_thread_priority(self, int priority) → int
complex_to_arg_sptr.thread_priority(self) → int
gnuradio.blocks.complex_to_float(size_t vlen = 1) → sptr

convert a stream of gr_complex to 1 or 2 streams of float

Constructor Specific Documentation:

Build a complex to float block.

Parameters:vlen – vector len (default 1)
complex_to_float_sptr.active_thread_priority(self) → int
complex_to_float_sptr.set_thread_priority(self, int priority) → int
complex_to_float_sptr.thread_priority(self) → int
gnuradio.blocks.complex_to_imag(size_t vlen = 1) → sptr

complex in, imag out (float)

Constructor Specific Documentation:

Build a complex to imaginary part block.

Parameters:vlen – vector len (default 1)
complex_to_imag_sptr.active_thread_priority(self) → int
complex_to_imag_sptr.set_thread_priority(self, int priority) → int
complex_to_imag_sptr.thread_priority(self) → int
gnuradio.blocks.complex_to_interleaved_short() → sptr

Convert stream of complex to a stream of interleaved shorts.

Constructor Specific Documentation:

Build a complex to interleaved shorts block.

complex_to_interleaved_short_sptr.active_thread_priority(self) → int
complex_to_interleaved_short_sptr.set_thread_priority(self, int priority) → int
complex_to_interleaved_short_sptr.thread_priority(self) → int
gnuradio.blocks.complex_to_mag(size_t vlen = 1) → sptr

complex in, magnitude out (float)

Constructor Specific Documentation:

Build a complex to magnitude block.

Parameters:vlen – vector len (default 1)
complex_to_mag_sptr.active_thread_priority(self) → int
complex_to_mag_sptr.set_thread_priority(self, int priority) → int
complex_to_mag_sptr.thread_priority(self) → int
gnuradio.blocks.complex_to_mag_squared(size_t vlen = 1) → sptr

complex in, magnitude squared out (float)

Constructor Specific Documentation:

Build a complex to magnitude squared block.

Parameters:vlen – vector len (default 1)
complex_to_mag_squared_sptr.active_thread_priority(self) → int
complex_to_mag_squared_sptr.set_thread_priority(self, int priority) → int
complex_to_mag_squared_sptr.thread_priority(self) → int
gnuradio.blocks.complex_to_real(size_t vlen = 1) → sptr

complex in, real out (float)

Constructor Specific Documentation:

Build a complex to real part block.

Parameters:vlen – vector len (default 1)
complex_to_real_sptr.active_thread_priority(self) → int
complex_to_real_sptr.set_thread_priority(self, int priority) → int
complex_to_real_sptr.thread_priority(self) → int
gnuradio.blocks.float_to_char(size_t vlen = 1, float scale = 1.0) → sptr

Convert stream of floats to a stream of char.

Constructor Specific Documentation:

Build a float to char block.

Parameters:
  • vlen – vector length of data streams.
  • scale – a scalar multiplier to change the output signal scale.
float_to_char_sptr.active_thread_priority(self) → int
float_to_char_sptr.scale(self) → float

Get the scalar multiplier value.

float_to_char_sptr.set_scale(self, float scale)

Set the scalar multiplier value.

float_to_char_sptr.set_thread_priority(self, int priority) → int
float_to_char_sptr.thread_priority(self) → int
gnuradio.blocks.float_to_complex(size_t vlen = 1) → sptr

one or two floats in, complex out

Constructor Specific Documentation:

Build a float to complex block.

Parameters:vlen – vector len (default 1)
float_to_complex_sptr.active_thread_priority(self) → int
float_to_complex_sptr.set_thread_priority(self, int priority) → int
float_to_complex_sptr.thread_priority(self) → int
gnuradio.blocks.float_to_int(size_t vlen = 1, float scale = 1.0) → sptr

Convert stream of floats to a stream of ints.

Constructor Specific Documentation:

Build a float to int block.

Parameters:
  • vlen – vector length of data streams.
  • scale – a scalar multiplier to change the output signal scale.
float_to_int_sptr.active_thread_priority(self) → int
float_to_int_sptr.scale(self) → float

Get the scalar multiplier value.

float_to_int_sptr.set_scale(self, float scale)

Set the scalar multiplier value.

float_to_int_sptr.set_thread_priority(self, int priority) → int
float_to_int_sptr.thread_priority(self) → int
gnuradio.blocks.float_to_short(size_t vlen = 1, float scale = 1.0) → sptr

Convert stream of floats to a stream of shorts.

Constructor Specific Documentation:

Build a float to short block.

Parameters:
  • vlen – vector length of data streams.
  • scale – a scalar multiplier to change the output signal scale.
float_to_short_sptr.active_thread_priority(self) → int
float_to_short_sptr.scale(self) → float

Get the scalar multiplier value.

float_to_short_sptr.set_scale(self, float scale)

Set the scalar multiplier value.

float_to_short_sptr.set_thread_priority(self, int priority) → int
float_to_short_sptr.thread_priority(self) → int
gnuradio.blocks.float_to_uchar() → sptr

Convert stream of floats to a stream of unsigned chars.

Constructor Specific Documentation:

Build a float to uchar block.

float_to_uchar_sptr.active_thread_priority(self) → int
float_to_uchar_sptr.set_thread_priority(self, int priority) → int
float_to_uchar_sptr.thread_priority(self) → int
gnuradio.blocks.int_to_float(size_t vlen = 1, float scale = 1.0) → sptr

Convert stream of ints to a stream of floats.

Constructor Specific Documentation:

Build an int to float block.

Parameters:
  • vlen – vector length of data streams.
  • scale – a scalar divider to change the output signal scale.
int_to_float_sptr.active_thread_priority(self) → int
int_to_float_sptr.scale(self) → float

Get the scalar divider value.

int_to_float_sptr.set_scale(self, float scale)

Set the scalar divider value.

int_to_float_sptr.set_thread_priority(self, int priority) → int
int_to_float_sptr.thread_priority(self) → int
gnuradio.blocks.interleaved_short_to_complex(bool vector_input = False) → sptr

Convert stream of interleaved shorts to a stream of complex.

Constructor Specific Documentation:

Build an interleaved short to complex block.

Parameters:vector_input
interleaved_short_to_complex_sptr.active_thread_priority(self) → int
interleaved_short_to_complex_sptr.set_thread_priority(self, int priority) → int
interleaved_short_to_complex_sptr.thread_priority(self) → int
gnuradio.blocks.short_to_char(size_t vlen = 1) → sptr

Convert stream of shorts to a stream of chars.

Constructor Specific Documentation:

Build a short to char block.

Parameters:vlen – vector length of data streams.
short_to_char_sptr.active_thread_priority(self) → int
short_to_char_sptr.set_thread_priority(self, int priority) → int
short_to_char_sptr.thread_priority(self) → int
gnuradio.blocks.short_to_float(size_t vlen = 1, float scale = 1.0) → sptr

Convert stream of shorts to a stream of floats.

Constructor Specific Documentation:

Build a short to float block.

Parameters:
  • vlen – vector length of data streams.
  • scale – a scalar divider to change the output signal scale.
short_to_float_sptr.active_thread_priority(self) → int
short_to_float_sptr.scale(self) → float

Get the scalar divider value.

short_to_float_sptr.set_scale(self, float scale)

Set the scalar divider value.

short_to_float_sptr.set_thread_priority(self, int priority) → int
short_to_float_sptr.thread_priority(self) → int
gnuradio.blocks.uchar_to_float() → sptr

Convert stream of unsigned chars to a stream of floats.

Constructor Specific Documentation:

Build a uchar to float block.

uchar_to_float_sptr.active_thread_priority(self) → int
uchar_to_float_sptr.set_thread_priority(self, int priority) → int
uchar_to_float_sptr.thread_priority(self) → int

Previous topic

gnuradio.blocks: Measurement Tools

Next topic

gnuradio.blocks: File Operators

This Page