Main Content

referenceLockedStatus

Lock status of USRP radio to 10 MHz clock signal

Since R2021a

    Add-On Required: This feature requires the Communications Toolbox Support Package for USRP Radio add-on.

    Description

    example

    refLocked = referenceLockedStatus(radio) returns the lock status of the specified USRP™ radio to the 10 MHz clock signal of either an external clock source or a GPS disciplined oscillator (GPSDO). radio is the USRP radio hardware associated with the SDRu System object™.

    Examples

    collapse all

    Create an SDRu receiver System object with these specified properties.

    radioRx = comm.SDRuReceiver(...
                        'Platform','N200/N210/USRP2', ...
                        'IPAddress','192.168.10.2', ...
                        'MasterClockRate',100e6, ...
                        'Gain',8, ...
                        'CenterFrequency',2.45e9, ...
                        'TransportDataType','int16');

    Set the clock source to be the 10 MHz clock signal from a GPSDO.

    radioRx.ClockSource = 'GPSDO';

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

    lockedStatus = referenceLockedStatus(radioRx)

    Input Arguments

    collapse all

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

    When you use the referenceLockedStatus function, you must 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