OCC GPS for myRIO Project
You can use the OCC GPS for myRIO Project
as a starting point for creating myRIO applications that
acquire GPS data using the OCC GPS for
myRIO hardware module. Other GPS's may be compatible with
this code as well, but are not specifically addressed here.
Table of Contents
System Requirements
Understanding the
Components of This Program
Running This Program
Modifying This Program
Related Information
System Requirements
Development System
- LabVIEW Full or Professional Development System, version 2015
or later
- LabVIEW Real-Time Module
- LabVIEW myRIO Toolkit
Hardware
Understanding the Components of This Program
This program uses a Flat Sequence structure that
executes frames from left to right.

The Flat Sequence structure in this template
executes the following frames from left to right:
- Initialize—Initializes the myRIO serial port.
- Acquire and process data—Acquires data from
the OCC GPS for myRIO and processes the data for presentation.
The While Loop repeats code until you click Stop
or an error occurs.
- Close—Closes user interface elements and the
serial port, and resets the myRIO output values to zero before
the application exits. Closing code is optional.
Running This Program
- In the Project Explorer window, navigate to
your myRIO target and open the Main VI.
- Click Run. This application acquires GPS
data from the OCC GPS for myRIO hardware module and displays it.
If the GPS cannot acquire a lock from the satellites, the GPS
data may not be valid.
- Click Stop to stop the application.
Modifying This Program
The GPS sends out several different data strings by
default, and can send several others if it is configured properly.
This example program demonstrates how to parse just one string.
Refer to the GPS chip documentation for information on the other
strings available. Parsing each string can be accomplished in a
manner similar to the code provided in the example, by referring
to the documentation.
Related Information
Information on the OCC GSP for myRIO hardware product and
example code can also be found on the Original Code
Consulting website. In addition, technical documentation for
the GPS chip is included in the Documentation folder of the example
project.
Legal Information
Copyright
© 2018 Original Code Consulting