Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Baseband File Reader

Read baseband signals from file

Description

The Baseband File Reader block reads a signal from a baseband file. A baseband file is a specific type of binary file written by the Baseband File Writer block. Baseband signals are typically downconverted from a nonzero center frequency to 0 Hz. The block automatically reads the sample rate, center frequency, number of channels, and any descriptive data.

Ports

Output

expand all

Baseband signal, returned as a scalar, vector, or matrix. The signal is read from the file specified by the Baseband file name parameter. The sample time is either inherited from the file or can be set by the Sample Time (s) parameter.

Data Types: double
Complex Number Support: Yes

End-of-file indicator, returned as a logical scalar. The output is true when the Repeatedly read the file parameter is false and the entire file has been read. To enable this port, select the Output end-of-file indicator parameter.

Parameters

expand all

Specify the name of the baseband file as a character vector.

Click Browse to locate the baseband file you want to read. Click File Info to display this information:

  • File name

  • Sample rate

  • Center frequency

  • Number of samples

  • Number of channels

  • Data type

  • Any metadata fields

Data Types: char

Select this check box to inherit the sample time from the file specified by Baseband file name.

Specify the block sample time in seconds as a real positive scalar. To enable this parameter, clear the Inherit sample time from file check box.

Specify the samples per frame as a positive integer scalar.

Select this check box to repeatedly read the contents of the baseband file. If the end of the file is reached, the block exhibits this behavior:

  • Parameter is selected — The block outputs zeros.

  • Parameter is not selected — The block outputs samples from the beginning of the file.

Code generation

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.

Interpreted execution

Simulate model using all supported MATLAB functions. Choosing this option can slow simulation performance.

Introduced in R2016b

Was this topic helpful?