basebandReceiver
Add-On Required: This feature requires the Wireless Testbench™ Support Package for NI™ USRP™ Radios add-on.
Description
Use the basebandReceiver
object to configure the
specified software-defined radio (SDR) as a baseband receiver to capture
raw IQ data from the air.
This diagram shows a conceptual overview of capturing radio signals in Wireless Testbench™ using a radio that you configure with this object. The onboard data buffering ensures contiguous data capture. When you capture more data than the onboard memory buffer size, the data is sent directly to the host computer.
Creation
Description
creates a baseband receiver configuration object for the specified
radio bbrx
= basebandReceiver(radio
)radio
.
Note
The object requires exclusive access to radio hardware resources. Before creating this object, clear any existing Wireless Testbench object associated with the specified radio from the workspace.
sets properties using one
or more name-value arguments. For example, bbrx
= basebandReceiver(radio
,Name=Value
)CaptureDataType="double"
sets the data type of the returned captured data to double
.
Input Arguments
Properties
Object Functions
capture | Capture IQ data using baseband receiver or transceiver |
isCapturing | Status of capture running in background using baseband receiver |
captureOutputs | Retrieve outputs from capture run in background using baseband receiver |
stopCapture | Stop capture running in background using baseband receiver |
Examples
Tips
You cannot use
save
andload
to store and reload Wireless Testbench objects. Instead, you can re-create the object with these steps:Write code to create a
basebandReceiver
object with a saved radio setup configurationradio
and set the properties.Save the code to a script.
Run the script in a new MATLAB® session with the same saved radio setup configuration.
To check your host performance capability for capturing data, see the Evaluate Host Capture Performance example. This example shows you how to identify the highest sample rate at which contiguous IQ data can be captured with your hardware setup.