setCommandTime
Add-On Required: This feature requires the Wireless Testbench™ Support Package for NI™ USRP™ Radios add-on.
Description
setCommandTime(
sets the time radio
,cmdTime
)cmdTime
for applying any subsequent changes to RF
properties on the radio associated with the radio object radio
.
Some NI™ USRP™ radios enable you to schedule changes to RF properties by setting the command time:
Use the
getRadioTime
function to query the current radio time.Use the
setCommandTime
function to schedule a future time for updating RF properties on the radio.Make changes to any RF properties on your Wireless Testbench™ object or System object™. For example, update the
TransmitCenterFrequency
andReceiveCenterFrequency
property on yourbasebandTransceiver
object.Use the
clearCommandTime
function to clear the currently set command time.
When you set the command time to a future time and update an RF property on your object, the command is issued to the radio and added to the command queue. The radio executes the commands in the queue in a first in, first out order:
When a command arrives at the front of the queue, the radio executes the command at the specified command time.
If multiple commands in the queue carry the same command time, the radio executes the commands serially in the order that they were placed.
If a command arrives at the front of the queue with a command time that is in the past, the radio executes the command immediately.
Note
To capture data with a baseband application object when there are property updates
scheduled in the command queue, specify the Background
name-value argument as true
when you call the
capture
function. When you capture data in the foreground, you
block the queue.
For details about radio support for this function, see Limitations.
Examples
Input Arguments
Limitations
The setCommandTime
function is honored on a
limited set of supported NI
USRP radios.
Radio Device | Command Time Support |
---|---|
USRP E320 | Yes |
USRP N300 | No |
USRP N310 | No |
USRP N320 | Yes |
USRP N321 | Yes |
USRP X300 | Yes |
USRP X310 | Yes |
USRP X410 | No |
Version History
Introduced in R2025a