Read baseband signals from file
The comm.BasebandFileReader
object reads a baseband
signal from a specific type of binary file written by comm.BasebandFileWriter
. Baseband signals are typically downconverted from
a nonzero center frequency to 0 Hz. The SampleRate
and
CenterFrequency
properties are saved when the file is created.
The comm.BasebandFileReader
object automatically reads
the sample rate, center frequency, number of channels, and any descriptive data and
saves them to its read-only properties.
To create an input signal from a saved baseband file:
Create a comm.BasebandFileReader
object and
set the properties of the object.
Call step
to generate a baseband signal
from saved data.
Call release
to close the file.
Note
Alternatively, instead of using the step
method to perform the
operation defined by the System object™, you can call the object with arguments, as if it were a function. For
example, y = step(obj)
and y = obj()
perform equivalent operations.
bbr = comm.BasebandFileReader
returns a baseband reader object,
bbr
, using the default properties.
bbr = comm.BasebandFileReader(fname)
returns a baseband reader
object and sets fname
as the Filename
property.
bbr = comm.BasebandFileReader(fname,spf)
also sets
spf
as the SamplesPerFrame
property.
bbr = comm.BasebandFileReader(___,Name,Value)
specifies additional properties using Name,Value
pairs. Unspecified
properties have default values.
Example:
bbr = comm.BasebandFileReader('recorded_data',100);
info | Characteristic information about baseband file reader |