Main Content

getGPSNMEA

NMEA GGA sentence from GPSDO

Since R2025a

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

Description

nmeaGGA = getGPSNMEA(radio) returns the National Marine Electronics Association (NMEA) global positioning system fix data (GGA) sentence nmeaGGA from the GPS disciplined oscillator (GPSDO) on the radio associated with the radio object radio.

To obtain the NMEA GGA sentence, the radio must have a GPSDO and the GPSDO must be locked to the GPS constellation. To check the lock, use the gpsLockedStatus function.

example

Examples

collapse all

Create a radio object, specifying a radio setup configuration previously saved using the Radio Setup wizard.

radio = radioConfigurations("MyRadio");

Check the lock status of the GPSDO on the radio to the GPS constellation.

status = gpsLockedStatus(radio)
status = logical
   1

Get the NMEA GGA sentence.

nmeaGGA = getGPSNMEA(radio)
nmeaGGA = 
"$GPGGA,142530.849,5551.768,N,00415.513,W,1,12,1.0,0.0,M,0.0,M,,*72"

Input Arguments

collapse all

Radio object, specified as a radio object that corresponds to a radio setup configuration you saved using the Radio Setup wizard.

To create a radio object, call the radioConfigurations function with the name of your radio setup configuration. For example, for a radio setup configuration named MyRadio, call radio = radioConfigurations("MyRadio").

Output Arguments

collapse all

The NMEA GGA sentence from the GPSDO, returned as a character array.

Data Types: char

Version History

Introduced in R2025a