Main Content


Lock status of GPSDO to GPS constellation

Since R2021a



    gpsLocked = gpsLockedStatus(radio) returns the lock status of a global positioning system disciplined oscillator (GPSDO) to the GPS constellation. radio is the USRP™ radio hardware associated with the SDRu System object™.


    collapse all

    Create an SDRu receiver System object with these specified properties.

    radioRx = comm.SDRuReceiver(...
                        'Platform','X300/X310', ...
                        'IPAddress','', ...
                        'MasterClockRate',200e6, ...
                        'Gain',8, ...
                        'CenterFrequency',2.45e9, ...

    Set the pulse per second (PPS) signal source to be the PPS signal from a GPSDO.

    radioRx.PPSSource = 'GPSDO';

    Get the lock status of the GPSDO to the GPS constellation.

    lockedStatus = gpsLockedStatus(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 gpsLockedStatus function, you must set the PPSSource property of this System object to 'GPSDO' .

    Output Arguments

    collapse all

    Lock status of the GPSDO to the GPS constellation, returned as 0 or 1.

    Data Types: logical

    Version History

    Introduced in R2021a

    expand all