Main Content

gpsLockedStatus

Lock status of GPSDO to GPS constellation

Since R2021a

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

    Description

    gpsLocked = gpsLockedStatus(radio) returns the lock status gpsLocked of a global positioning system disciplined oscillator (GPSDO) to the GPS constellation on the USRP™ radio radio.

    example

    Examples

    collapse all

    Create an SDRu receiver System object™ with these specified properties.

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

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

    status = gpsLockedStatus(rx)
    status = uint32
    
    1
    

    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.

    Version History

    Introduced in R2021a

    expand all