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
Syntax
Description
creates a baseband receiver application 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 application object associated with the specified radio from the workspace.
sets properties using one or more name-value arguments. For example,
bbrx
= basebandReceiver(radio
,PropertyName=Value
)CaptureDataType="double"
sets the data type of the returned captured
data to double
.
loads the application onto the radio and configures properties during object
creation. (since R2025a)bbrx
= basebandReceiver(radio
,Preload
=true,PropertyName=Value
)
Use this syntax when you plan to schedule or synchronize operations using the radio time.
Input Arguments
Properties
Object Functions
capture | Capture IQ data using baseband receiver or transceiver |
isCapturing | Status of capture running in background using baseband receiver or transceiver |
captureOutputs | Retrieve outputs from capture run in background using baseband receiver or transceiver |
stopCapture | Stop capture running in background using baseband receiver or transceiver |
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.