Write stream to file descriptor.
Constructor Specific Documentation:
Build a file descriptor sink block.
Parameters: |
|
---|
declare_sample_delay(file_descriptor_sink_sptr self, unsigned int delay)
pc_input_buffers_full_avg(file_descriptor_sink_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(file_descriptor_sink_sptr self) -> pmt_vector_float
Read stream from file descriptor.
Constructor Specific Documentation:
Build a file descriptor source block.
Parameters: |
|
---|
declare_sample_delay(file_descriptor_source_sptr self, unsigned int delay)
pc_input_buffers_full_avg(file_descriptor_source_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(file_descriptor_source_sptr self) -> pmt_vector_float
Write stream to file with meta-data headers.
These files represent data as binary information in between meta-data headers. The headers contain information about the type of data and properties of the data in the next segment of samples. The information includes:
Tags can be sent to the file to update the information, which will create a new header. Headers are found by searching from the first header (at position 0 in the file) and reading where the data segment starts plus the data segment size. Following will either be a new header or EOF.
Constructor Specific Documentation:
Create a meta-data file sink.
Parameters: |
|
---|
declare_sample_delay(file_meta_sink_sptr self, unsigned int delay)
pc_input_buffers_full_avg(file_meta_sink_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(file_meta_sink_sptr self) -> pmt_vector_float
Reads stream from file with meta-data headers. Headers are parsed into tags.
The information in the metadata headers includes:
Any item inside of the extra header dictionary is ready out and made into a stream tag.
Constructor Specific Documentation:
Create a meta-data file source.
Parameters: |
|
---|
declare_sample_delay(file_meta_source_sptr self, unsigned int delay)
pc_input_buffers_full_avg(file_meta_source_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(file_meta_source_sptr self) -> pmt_vector_float
Write stream to file.
Constructor Specific Documentation:
Make a file sink.
Parameters: |
|
---|
Close current output file.
Closes current output file and ignores any output until open is called to connect to another file.
declare_sample_delay(file_sink_sptr self, unsigned int delay)
if we’ve had an update, do it now.
Open filename and begin output to it.
pc_input_buffers_full_avg(file_sink_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(file_sink_sptr self) -> pmt_vector_float
turn on unbuffered writes for slower outputs
Read stream from file.
Constructor Specific Documentation:
Create a file source.
Opens as a source of items into a flowgraph. The data is expected to be in binary format, item after item. The of the block determines the conversion from bits to items.
If is turned on, the file will repeat the file after it’s reached the end.
Parameters: |
|
---|
Close the file handle.
declare_sample_delay(file_source_sptr self, unsigned int delay)
Opens a new file.
pc_input_buffers_full_avg(file_source_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(file_source_sptr self) -> pmt_vector_float
seek file to relative to
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