Write stream to file descriptor.
Constructor Specific Documentation:
Build a file descriptor sink block.
Parameters: |
|
---|
Read stream from file descriptor.
Constructor Specific Documentation:
Build a file descriptor source block.
Parameters: |
|
---|
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:
rx_rate (double): sample rate of data. rx_time (uint64_t, double): time stamp of first sample in segment. size (uint32_t): item size in bytes. type (gr_file_types as int32_t): data type. cplx (bool): Is data complex? strt (uint64_t): Starting byte of data in this segment. bytes (uint64_t): Size in bytes of data in this segment.
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: |
|
---|
Reads stream from file with meta-data headers. Headers are parsed into tags.
The information in the metadata headers includes:
rx_rate (double): sample rate of data. rx_time (uint64_t, double): time stamp of first sample in segment. size (uint32_t): item size in bytes. type (gr_file_types as int32_t): data type. cplx (bool): Is data complex? strt (uint64_t): Starting byte of data in this segment. bytes (uint64_t): Size in bytes of data in this segment.
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: |
|
---|
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.
if we’ve had an update, do it now.
Open filename and begin output to it.
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.
Opens a new file.
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: |
|
---|