Main Content

gpsLockedStatus

Lock status of GPSDO to GPS constellation

Since R2021a

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

    Description

    example

    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™.

    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 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