gnuradio.blocks: Stream Tag Tools

gnuradio.blocks.burst_tagger(size_t itemsize) → sptr

Sets a burst on/off tag based on the value of the trigger input.

This block takes two inputs, a signal stream on the input stream 0 and a trigger stream of shorts on input stream 1. If the trigger stream goes above 0, a tag with the key “burst” will be transmitted as a pmt::PMT_T. When the trigger signal falls below 0, the “burst” tag will be transmitted as pmt::PMT_F.

The signal on stream 0 is retransmitted to output stream 0.

Constructor Specific Documentation:

Build a burst tagger gnuradio/blocks.

Parameters:itemsize – itemsize of the signal stream on input 0.
burst_tagger_sptr.active_thread_priority(self) → int
burst_tagger_sptr.set_false_tag(self, string key, bool value)

For the false burst tag, change the key name to and a new value of .

burst_tagger_sptr.set_thread_priority(self, int priority) → int
burst_tagger_sptr.set_true_tag(self, string key, bool value)

For the true burst tag, change the key name to and a new value of .

burst_tagger_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
gnuradio.blocks.tagged_file_sink(size_t itemsize, double samp_rate) → sptr

A file sink that uses tags to save files.

The sink uses a tag with the key ‘burst’ to trigger the saving of the burst data to a new file. If the value of this tag is True, it will open a new file and start writing all incoming data to it. If the tag is False, it will close the file (if already opened). The file names are based on the time when the burst tag was seen. If there is an ‘rx_time’ tag (standard with UHD sources), that is used as the time. If no ‘rx_time’ tag is found, the new time is calculated based off the sample rate of the block.

Constructor Specific Documentation:

Build a tagged_file_sink block.

Parameters:
  • itemsize – The item size of the input data stream.
  • samp_rate – The sample rate used to determine the time difference between bursts
tagged_file_sink_sptr.active_thread_priority(self) → int
tagged_file_sink_sptr.set_thread_priority(self, int priority) → int
tagged_file_sink_sptr.thread_priority(self) → int

Previous topic

gnuradio.blocks: Math Operators

Next topic

gnuradio.blocks: Debug Tools

This Page