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. |
---|
declare_sample_delay(burst_tagger_sptr self, unsigned int delay)
pc_input_buffers_full_avg(burst_tagger_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(burst_tagger_sptr self) -> pmt_vector_float
For the false burst tag, change the key name to and a new value of .
For the true burst tag, change the key name to and a new value of .
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.
Specifying a key will allow this block to filter out all other tags and only display tags that match the given key. This can help clean up the output and allow you to focus in on a particular tag of interest.
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: |
|
---|
Returns a vector of tag_t items as of the last call to work.
declare_sample_delay(tag_debug_sptr self, unsigned int delay)
Get the current filter key.
Return the total number of tags in the tag queue.
pc_input_buffers_full_avg(tag_debug_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(tag_debug_sptr self) -> pmt_vector_float
Set the display of tags to stdout on/off.
Set a new key to filter with.
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: |
|
---|
declare_sample_delay(tagged_file_sink_sptr self, unsigned int delay)
pc_input_buffers_full_avg(tagged_file_sink_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(tagged_file_sink_sptr self) -> pmt_vector_float