preambleDetector
Add-On Required: This feature requires the Wireless Testbench™ Support Package for NI™ USRP™ Radios add-on.
Description
Use the preambleDetector
object to configure the
specified software-defined radio (SDR) as a preamble detector. You can use
the preamble detector to detect and capture a signal of interest from the
air using a correlation with a known preamble sequence. The object
specifies the preamble sequence and the thresholding and triggering
parameters. For more details on the internal architecture of the preamble
detector, see Algorithms.
This diagram shows a conceptual overview of detecting and capturing radio signals in Wireless Testbench™ using a radio that you configure with this object. The object also enables you to send a test waveform for detection and capture. The onboard data buffering ensures contiguous data capture and transmit.
Creation
Description
creates a preamble detector application object for the specified radio,
pd
= preambleDetector(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,
pd
= preambleDetector(radio
,PropertyName=Value
)CaptureDataType="double"
sets the data type of the returned captured
signal to double
.
Input Arguments
Properties
Object Functions
capture | Capture signal of interest from the air upon detection |
plotThreshold | Plot preamble detection signals for triggering |
transmit | Transmit waveform using preamble or energy detector |
stopTransmission | Stop transmission from preamble or energy detector |
Examples
Tips
You
cannot use save
and load
to store and reload
Wireless Testbench objects. Instead, you can
re-create the object with these steps:
Write code to create a
preambleDetector
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.