Main Content

referenceLockedStatus

Lock status of USRP radio to 10 MHz clock signal

Since R2021a

    Add-On Required: This feature requires the Wireless Testbench™ Support Package for NI™ USRP™ Radios add-on.

    Description

    status = referenceLockedStatus(radio) returns the lock status of the specified USRP™ radio radio to the 10 MHz clock reference clock of the GPS disciplined oscillator (GPSDO) or a 10Mz external clock source.

    example

    Examples

    collapse all

    Create an SDRu receiver System object. Set the clock source to be the 10 MHz clock signal from a GPSDO.

    rx = comm.SDRuReceiver( ...
        Platform="N320/N321", ...
        IPAddress="192.168.20.2", ...
        ClockSource="GPSDO");

    Get the lock status of the USRP radio to the 10 MHz clock signal.

    status = referenceLockedStatus(rx)
    status = uint32
    
    1
    

    Input Arguments

    collapse all

    USRP radio, specified as a comm.SDRuTransmitter or comm.SDRuReceiver System object™. The radio must be connected to the host computer.

    When you use the referenceLockedStatus function, you must first set the ClockSource property of this System object to 'GPSDO' or 'External'.

    Output Arguments

    collapse all

    Lock status of the USRP radio to the 10 MHz clock signal, returned as 0 or 1.

    Data Types: logical

    Version History

    Introduced in R2021a

    expand all