getRadioTime
Add-On Required: This feature requires the Wireless Testbench™ Support Package for NI™ USRP™ Radios add-on.
Description
returns the current time time
= getRadioTime(radio
)time
in the time registers of the radio
associated with the radio object radio
.
Unless
you set the radio time to a specific value by using the setTimeNextPPS
function, or you take an action that causes the radio time to reset, the radio time is the
elapsed time since you connected to your radio, which happens in one of the following scenarios:
You use a radio object function.
You create a baseband application object and specify the
Preload
name-value argument is true.You use the
capture
ortransmit
function with a baseband or detector application object that you created without specifying thePreload
name-value argument astrue
.You call the
setup
function on ausrp
System object™.
Note
Updating the following object properties causes the radio time to reset:
Properties that select radio antennas, such as
Antennas
,TransmitAntennas
,ReceiveAntennas
,DUTInputAntennas
, orDUTOutputAntennas
.The
SampleRate
property, if the new sample rate is derived from a different master clock rate. For more information on how the baseband sample rate is derived, see Baseband Sample Rate in NI USRP Radios.
To ensure that any time values you set are relative to the current radio
time, make changes to these properties only before you use the
getRadioTime
function to get the current radio time.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a