NI-Sync LabVIEW API Reference

niSync Get Location (VI)

  • Updated2024-03-29
  • 3 minute(s) read

niSync Get Location (VI)

Installed With: NI-Sync

Returns the last calculated latitude, longitude, and altitude the specified device's onboard GPS receiver.

Note  
  • You must connect an external GPS antenna to the device and set the device's external time reference to GPS in order to receive valid data from this VI. For best results, allow the GPS receiver to complete a self survey before reading the location.
  • This function is supported only on certain targets; refer to Target Support for Timing Properties and VIs for more information.

niSync Get Location

cio.gif

instrument handle specifies the instrument handle that you obtain from niSync Initialize.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

iio.gif

instrument handle out returns the instrument handle that you obtain from niSync Initialize.

idbl.gif

latitude returns the current latitude, in degrees, of the connected device's GPS receiver. Negative values represent southern latitudes. Positive values represent northern latitudes.

idbl.gif

longitude returns the current longitude, in degrees, of the connected device's GPS receiver. Negative values represent western longitudes. Positive values represent eastern longitudes.

idbl.gif

altitude returns the current altitude, in meters, of the connected device's GPS receiver using the WGS-84 earth ellipsoid standard.

ierrcodeclst.gif

error out returns error conditions that occur after this node runs. This output provides standard error out functionality.

Log in to get a better experience