gnuradio.blocks: Message Tools

gnuradio.blocks.message_burst_source(size_t itemsize, int msgq_limit) → sptr

make(size_t itemsize, sptr msgq) -> sptr

Turn received messages into a stream and tag them for UHD to send.

Constructor Specific Documentation:

Parameters:
  • itemsize
  • msgq_limit
message_burst_source_sptr.active_thread_priority(self) → int
message_burst_source_sptr.msgq(self) → sptr
message_burst_source_sptr.set_thread_priority(self, int priority) → int
message_burst_source_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.message_sink(size_t itemsize, sptr msgq, bool dont_block) → sptr

make(size_t itemsize, sptr msgq, bool dont_block, string lengthtagname) -> sptr

Gather received items into messages and insert into msgq.

Constructor Specific Documentation:

Parameters:
  • itemsize
  • msgq
  • dont_block
message_sink_sptr.active_thread_priority(self) → int
message_sink_sptr.set_thread_priority(self, int priority) → int
message_sink_sptr.thread_priority(self) → int
gnuradio.blocks.message_source(size_t itemsize, int msgq_limit = 0) → sptr

make(size_t itemsize, sptr msgq) -> sptr make(size_t itemsize, sptr msgq, string lengthtagname) -> sptr

Turn received messages into a stream.

Constructor Specific Documentation:

Parameters:
  • itemsize
  • msgq_limit
message_source_sptr.active_thread_priority(self) → int
message_source_sptr.msgq(self) → sptr
message_source_sptr.set_thread_priority(self, int priority) → int
message_source_sptr.thread_priority(self) → int
gnuradio.blocks.message_strobe(pmt_t msg, float period_ms) → sptr

Send message at defined interval.

Takes a PMT message and sends it out every milliseconds. Useful for testing/debugging the message system.

Constructor Specific Documentation:

Make a message stobe block to send message every milliseconds.

Parameters:
  • msg – The message to send as a PMT.
  • period_ms – the time period in milliseconds in which to send .
message_strobe_sptr.active_thread_priority(self) → int
message_strobe_sptr.msg(self) → pmt_t

Get the value of the message being sent.

message_strobe_sptr.period(self) → float

Get the time interval of the strobe.

message_strobe_sptr.set_msg(self, pmt_t msg)

Reset the message being sent.

message_strobe_sptr.set_period(self, float period_ms)

Reset the sending interval.

message_strobe_sptr.set_thread_priority(self, int priority) → int
message_strobe_sptr.thread_priority(self) → int
gnuradio.blocks.pdu_to_tagged_stream(vector_type type, string lengthtagname = "packet_len") → sptr

Turns received PDUs into a tagged stream of items.

Constructor Specific Documentation:

Construct a pdu_to_tagged_stream block.

Parameters:
  • type – PDU type of pdu::vector_type
  • lengthtagname – The name of the tag that specifies how long the packet is. Defaults to ‘packet_len’.
pdu_to_tagged_stream_sptr.active_thread_priority(self) → int
pdu_to_tagged_stream_sptr.set_thread_priority(self, int priority) → int
pdu_to_tagged_stream_sptr.thread_priority(self) → int
gnuradio.blocks.random_pdu(int mintime, int maxtime) → sptr

Sends a random PDU at intervals.

Constructor Specific Documentation:

Construct a random PDU generator.

Parameters:
  • mintime
  • maxtime
random_pdu_sptr.active_thread_priority(self) → int
random_pdu_sptr.set_thread_priority(self, int priority) → int
random_pdu_sptr.thread_priority(self) → int
gnuradio.blocks.tagged_stream_to_pdu(vector_type type, string lengthtagname = "packet_len") → sptr

Turns received stream data and tags into PDUs.

Constructor Specific Documentation:

Construct a tagged_stream_to_pdu block.

Parameters:
  • type – PDU type of pdu::vector_type
  • lengthtagname – The name of the tag that specifies how long the packet is. Defaults to ‘packet_len’.
tagged_stream_to_pdu_sptr.active_thread_priority(self) → int
tagged_stream_to_pdu_sptr.set_thread_priority(self, int priority) → int
tagged_stream_to_pdu_sptr.thread_priority(self) → int

Previous topic

gnuradio.blocks: File Operators

Next topic

gnuradio.blocks: Waveform Generators

This Page