gnuradio.blocks: Measurement Tools

gnuradio.blocks.probe_signal_b() → sptr

Sink that allows a sample to be grabbed from Python.

Constructor Specific Documentation:

probe_signal_b_sptr.active_thread_priority(self) → int
probe_signal_b_sptr.level(self) → unsigned char
probe_signal_b_sptr.set_thread_priority(self, int priority) → int
probe_signal_b_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_c() → sptr

Sink that allows a sample to be grabbed from Python.

Constructor Specific Documentation:

probe_signal_c_sptr.active_thread_priority(self) → int
probe_signal_c_sptr.level(self) → gr_complex
probe_signal_c_sptr.set_thread_priority(self, int priority) → int
probe_signal_c_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_f() → sptr

Sink that allows a sample to be grabbed from Python.

Constructor Specific Documentation:

probe_signal_f_sptr.active_thread_priority(self) → int
probe_signal_f_sptr.level(self) → float
probe_signal_f_sptr.set_thread_priority(self, int priority) → int
probe_signal_f_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_i() → sptr

Sink that allows a sample to be grabbed from Python.

Constructor Specific Documentation:

probe_signal_i_sptr.active_thread_priority(self) → int
probe_signal_i_sptr.level(self) → int
probe_signal_i_sptr.set_thread_priority(self, int priority) → int
probe_signal_i_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_s() → sptr

Sink that allows a sample to be grabbed from Python.

Constructor Specific Documentation:

probe_signal_s_sptr.active_thread_priority(self) → int
probe_signal_s_sptr.level(self) → short
probe_signal_s_sptr.set_thread_priority(self, int priority) → int
probe_signal_s_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_vb(size_t size) → sptr

Sink that allows a vector of samples to be grabbed from Python.

Constructor Specific Documentation:

Parameters:size
probe_signal_vb_sptr.active_thread_priority(self) → int
probe_signal_vb_sptr.level(self) → __dummy_0__
probe_signal_vb_sptr.set_thread_priority(self, int priority) → int
probe_signal_vb_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_vc(size_t size) → sptr

Sink that allows a vector of samples to be grabbed from Python.

Constructor Specific Documentation:

Parameters:size
probe_signal_vc_sptr.active_thread_priority(self) → int
probe_signal_vc_sptr.level(self) → std::vector<(gr_complex,std::allocator<(gr_complex)>)>
probe_signal_vc_sptr.set_thread_priority(self, int priority) → int
probe_signal_vc_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_vf(size_t size) → sptr

Sink that allows a vector of samples to be grabbed from Python.

Constructor Specific Documentation:

Parameters:size
probe_signal_vf_sptr.active_thread_priority(self) → int
probe_signal_vf_sptr.level(self) → pmt_vector_float
probe_signal_vf_sptr.set_thread_priority(self, int priority) → int
probe_signal_vf_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_vi(size_t size) → sptr

Sink that allows a vector of samples to be grabbed from Python.

Constructor Specific Documentation:

Parameters:size
probe_signal_vi_sptr.active_thread_priority(self) → int
probe_signal_vi_sptr.level(self) → __dummy_5__
probe_signal_vi_sptr.set_thread_priority(self, int priority) → int
probe_signal_vi_sptr.thread_priority(self) → int
gnuradio.blocks.probe_signal_vs(size_t size) → sptr

Sink that allows a vector of samples to be grabbed from Python.

Constructor Specific Documentation:

Parameters:size
probe_signal_vs_sptr.active_thread_priority(self) → int
probe_signal_vs_sptr.level(self) → __dummy_4__
probe_signal_vs_sptr.set_thread_priority(self, int priority) → int
probe_signal_vs_sptr.thread_priority(self) → int
gnuradio.blocks.ctrlport_probe2_c(string id, string desc, int len) → sptr

A ControlPort probe to export vectors of signals.

This block acts as a sink in the flowgraph but also exports vectors of complex samples over ControlPort. This block holds the latest number of complex samples so that every query by a ControlPort client will get the same length vector.

Constructor Specific Documentation:

Make a ControlPort probe block.

Parameters:
  • id – A string ID to name the probe over ControlPort.
  • desc – A string describing the probe.
  • len – Number of samples to transmit.
ctrlport_probe2_c_sptr.active_thread_priority(self) → int
ctrlport_probe2_c_sptr.get(self) → std::vector<(gr_complex,std::allocator<(gr_complex)>)>
ctrlport_probe2_c_sptr.set_length(self, int len)
ctrlport_probe2_c_sptr.set_thread_priority(self, int priority) → int
ctrlport_probe2_c_sptr.thread_priority(self) → int
gnuradio.blocks.ctrlport_probe_c(string id, string desc) → sptr

A ControlPort probe to export vectors of signals.

This block acts as a sink in the flowgraph but also exports vectors of complex samples over ControlPort. This block simply sends the current vector held in the work function when the queried by a ControlPort client.

Constructor Specific Documentation:

Make a ControlPort probe block.

Parameters:
  • id – A string ID to name the probe over ControlPort.
  • desc – A string describing the probe.
ctrlport_probe_c_sptr.active_thread_priority(self) → int
ctrlport_probe_c_sptr.get(self) → std::vector<(gr_complex,std::allocator<(gr_complex)>)>
ctrlport_probe_c_sptr.set_thread_priority(self, int priority) → int
ctrlport_probe_c_sptr.thread_priority(self) → int
gnuradio.blocks.message_debug() → sptr

Debug block for the message passing system.

The message debug block is used to capture and print or store messages as they are received. Any block that generates a message may connect that message port to one or more of the three message input ports of this debug block. The message ports are:

Constructor Specific Documentation:

Build the message debug block. It takes no parameters and has three message ports: print, store, and print_pdu.

message_debug_sptr.active_thread_priority(self) → int
message_debug_sptr.get_message(self, int i) → pmt_t

Get a message (as a PMT) from the message vector at index .

Messages passed to the ‘store’ port will be stored in a vector. This function retrieves those messages by index. They are index in order of when they were received (all messages are just pushed onto the back of a vector). This is mostly useful in debugging message passing graphs and in QA code.

message_debug_sptr.num_messages(self) → int

Reports the number of messages received by this block.

message_debug_sptr.set_thread_priority(self, int priority) → int
message_debug_sptr.thread_priority(self) → int
gnuradio.blocks.probe_rate(size_t itemsize, double update_rate_ms = 500.0, double alpha = 0.0001) → sptr

throughput measurement

Constructor Specific Documentation:

Make a throughput measurement block.

Parameters:
  • itemsize – size of each stream item
  • update_rate_ms – minimum update time in milliseconds
  • alpha – gain for running average filter
probe_rate_sptr.active_thread_priority(self) → int
probe_rate_sptr.rate(self) → double
probe_rate_sptr.set_alpha(self, double alpha)
probe_rate_sptr.set_thread_priority(self, int priority) → int
probe_rate_sptr.thread_priority(self) → int
gnuradio.blocks.tag_debug(size_t sizeof_stream_item, string name) → sptr

Bit bucket that prints out any tag received.

This block collects all tags sent to it on all input ports and displays them to stdout in a formatted way. The parameter is used to identify which debug sink generated the tag, so when connecting a block to this debug sink, an appropriate name is something that identifies the input block.

This block otherwise acts as a NULL sink in that items from the input stream are ignored. It is designed to be able to attach to any block and watch all tags streaming out of that block for debugging purposes.

The tags from the last call to this work function are stored and can be retrieved using the function ‘current_tags’.

Constructor Specific Documentation:

Build a tag debug block

Parameters:
  • sizeof_stream_item – size of the items in the incoming stream.
  • name – name to identify which debug sink generated the info.
tag_debug_sptr.active_thread_priority(self) → int
tag_debug_sptr.current_tags(self) → tags_vector_t

Returns a vector of tag_t items as of the last call to work.

tag_debug_sptr.set_display(self, bool d)

Set the display of tags to stdout on/off.

tag_debug_sptr.set_thread_priority(self, int priority) → int
tag_debug_sptr.thread_priority(self) → int

Previous topic

gnuradio.blocks: Debug Tools

Next topic

gnuradio.blocks: Data Type Converters

This Page