Write baseband signals to file
Communications Toolbox / Comm Sinks
The Baseband File Writer block writes a baseband signal to a specific type of binary file. Baseband signals are typically downconverted from a nonzero center frequency to 0 Hz. Sample rate, which is determined by the input signal sample time and frame size, and center frequency are saved when the signal is written to a file.
Port_1— Baseband signal
This port accepts a baseband signal to be saved under the filename specified by the Baseband file name parameter. The saved signal is always complex.
Complex Number Support: Yes
Baseband file name— Name of file in which data is saved
untitled.bb(default) | character vector
Specify the name of the baseband file as a character vector.
To specify the location where the file is saved, click Browse.
Center frequency (Hz)— Center frequency of the baseband signal
1e8(default) | nonnegative scalar
Specify the center frequency in Hz as a nonnegative scalar.
Metadata in a structure— Data describing the baseband signal
struct()(default) | structure
Specify data describing the baseband signal as a structure. If the signal has no descriptive data, this parameter is an empty structure. The structure can contain any number of fields. Field names have no restrictions, but the field values must be numeric, logical, or character data types having any dimension.
Number of latest samples to write— Number of samples to write
inf(default) | positive scalar
Specify the number to write. If this parameter is
all samples are saved. Otherwise, only the last N
samples are saved, where N is specified by this
Simulate using— Select simulation mode
Code generation(default) |
On the first model run, simulate and generate code for the block using only MATLAB® functions supported for code generation. If the structure of the block does not change, subsequent model runs do not regenerate the code.
Simulate model using all supported MATLAB functions. Choosing this option can slow simulation performance.