SlideShare a Scribd company logo
1 of 4
Download to read offline
EXPERIMENT NO. 3
AIM:
To study and design the implementation of NMEA Get GPS Data from Record
Apparatus Used:
Microsoft Windows XP, Professional Version 2002, Intel® Pentium® Dual CPU. E2180 @2.00
GHz, 2.00 GHz, 199 GB of RAM, Lab VIEW Robotics 2011 SP1
Theory:
LabVIEW (short for The Laboratory Virtual Instrumentation Engineering Workbench) is a platform and
development environment for a visual programming language from National Instruments in which you
create programs using a graphical natation (connecting functional nodes via wires through which data
flows), in this regard, it differs from traditional programming languages like C, C++, or Java in which you
program with text. However LabVIEW is much more than a programming language. It is an interactive
program development and execution system designed for people, like scientists and engineers, who need
to program as part of their jobs. The LabVIEW development environment works on computers running
Windows, Mac OS X, or Linux. LabVIEW can create programs that run on those platforms, as well as
Microsoft Pocket PC Microsoft windows CE, Palm OS, and a variety of embedded platforms, including
Field Programmable Gate Arrays (FPGAs), Digital Signal Processors (DSP), and Microprocessors.
Procedure:
Execution is determined by the structure of a graphical block diagram on which the programmer connects
different function nodes by drawing wires. These wires propagate variables and any node can execute as
soon as all its input data become available. LabVIEW ties the creation of user interface (front panels) into
the development cycle. LabVIEW programs/subroutines are called virtual instruments (VIs). Each VI has
three components; a block diagram, a front panel, and a connector panel. The last is used to represent the
VI in the block diagram of other, calling VI. Controls and indicators on the front panel allow an operator
to input data into or extract data from a running virtual instrument. However, the front panel can also serve
as a programmatic interface. Thus a VI can either be run as a program, with the front panel serving as a
user interface, or when dropped as a node onto the block diagram, the font panel defines the inputs and
outputs for the given node through the connector pane. This implies each VI can be easily tested before
being embedded as a subroutine into a larger program. The graphical approach also allows non-
programmers to build programs simply by dragging and dropping virtual representation of lab equipment
with which they are already familiar.
Execution of VI’s and Sub –VI’s:
Main VI:
This VI reads NMEA data from a file and plots the latest location and heading data. To process NMEA
sentences individually rather than as a group of sentences, use the Vis on the NMEA Advanced palette.
Sub VI:
Creating Steering:
Front Panel of NMEA API.lvlib: Get GPS Data.vi
Previous partial sentence contains characters to prepend to sensor data. Sensor data contains the data to
parse for GPS data. This VI appends sensor data to previous partial sentence and then parses the data.
Build Path Function:
Creates a new path by appending a name (or relative path) to an existing path.
Base path specifies the path to which this function appends name. The default is an empty path. Appended
path is the resulting path.
Open/Create/Replace File Function:
Opens an exixting file, creates a new file, or replaces an existing file, programmability or interactively
using a file dialog box. This function does not work for files inside the LLB.
File Path (use dialog) is the absolute path to the file. If you do not wire file path (use dialog), the function
displays a dialog box from which you can select a file. If you specify an empty or relative path, this
function returns an error. Return if the file cannot be opened.
Select Function:
Returns the value wired to the t input or f input, depending on the value of s. If s is TRUE, this function
returns the value wired to t. If s is FALSE, this function returns the value wired to f.
‘t’ is the value that this function returns if s passes a TRUE value. T and f must be of the same type, but
they can have different numeric representations. s determines whether the function returns the value of t
or f in s? t:f. If you wire an error cluster to s and an error occurs, the error cluster passes a TRUE value to
the function. Otherwise, the error cluster passes a FALSE value to the function.
Result:
NMEA Get GPS Data VI reads NMEA data from a file and plots the largest location and heading data.
The map indicator is an XY graph with an image snippet used as a background image. You can adopt this
VI to acquire data from a real GPS receiver with drivers instead of reading data from a file.
NMEA get GPS data VI procedure is as first it opens the text file that contains NMEA sentences. Reading
400 characters from the text file, which is similar to acquiring streaming data from a GPS receiver. Read
an amount of characters from a file or instrument that is enough to include several NMEA sentences.
Parses complete sentences in the sensor data into a cluster of common GPS data point. When the string of
data sensor contains more than one value for a data point, the Get GPS Data VI returns the most recent
value. After this VI runs, any remaining partial sentence not yet parsed passes to a shift register to be used
on the next iteration of the loop. Unbundles desired data points and checks that value are valid, or not
‘NaN’. Refer to the Get GPS data VI help topic for more information about invalid values from the shift
registers then it closes the text file.
Precautions:
 To avoid hanging the user interface with front panel locking, configure all events you want a VI to
handle in a single Event structure or always make sure there is only one Event structure in a loop.
 Additionally, make sure there is always an Event structure available to handle events as they occur.

More Related Content

What's hot

The analysis synthesis model of compilation
The analysis synthesis model of compilationThe analysis synthesis model of compilation
The analysis synthesis model of compilation
Huawei Technologies
 

What's hot (20)

1 puc programming using c++
1 puc programming using c++1 puc programming using c++
1 puc programming using c++
 
Symbol table management and error handling in compiler design
Symbol table management and error handling in compiler designSymbol table management and error handling in compiler design
Symbol table management and error handling in compiler design
 
Compiler and symbol table
Compiler and symbol tableCompiler and symbol table
Compiler and symbol table
 
Networking assignment 1
Networking assignment 1Networking assignment 1
Networking assignment 1
 
Lex and Yacc ppt
Lex and Yacc pptLex and Yacc ppt
Lex and Yacc ppt
 
R language
R languageR language
R language
 
Compiler gate question key
Compiler gate question keyCompiler gate question key
Compiler gate question key
 
Lexical analyzer
Lexical analyzerLexical analyzer
Lexical analyzer
 
Symbol Table, Error Handler & Code Generation
Symbol Table, Error Handler & Code GenerationSymbol Table, Error Handler & Code Generation
Symbol Table, Error Handler & Code Generation
 
Labview
Labview Labview
Labview
 
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
 
Compiler worksheet
Compiler worksheetCompiler worksheet
Compiler worksheet
 
Programming in c++ ppt
Programming in c++ pptProgramming in c++ ppt
Programming in c++ ppt
 
The analysis synthesis model of compilation
The analysis synthesis model of compilationThe analysis synthesis model of compilation
The analysis synthesis model of compilation
 
Lexical analysis-using-lex
Lexical analysis-using-lexLexical analysis-using-lex
Lexical analysis-using-lex
 
details of labviews
details of labviewsdetails of labviews
details of labviews
 
Compiler Chapter 1
Compiler Chapter 1Compiler Chapter 1
Compiler Chapter 1
 
Assignment5
Assignment5Assignment5
Assignment5
 
Programming Fundamental Slide lecture no.2 (Section E)
Programming Fundamental Slide lecture no.2 (Section E)Programming Fundamental Slide lecture no.2 (Section E)
Programming Fundamental Slide lecture no.2 (Section E)
 
Cnotes
CnotesCnotes
Cnotes
 

Viewers also liked

design the implementation of trajectory path of the robot using parallel loop
design the implementation of trajectory path of the robot using parallel loopdesign the implementation of trajectory path of the robot using parallel loop
design the implementation of trajectory path of the robot using parallel loop
Ankita Tiwari
 

Viewers also liked (10)

Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
Design the implementation of 1D Kalman Filter Encoder and Accelerometer.Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
Design the implementation of 1D Kalman Filter Encoder and Accelerometer.
 
Design the implementation of Brushless DC Motor Six Step Control.
Design the implementation of Brushless DC Motor Six Step Control.Design the implementation of Brushless DC Motor Six Step Control.
Design the implementation of Brushless DC Motor Six Step Control.
 
Design the implementation of CDEx PID with Constraints
Design the implementation of CDEx PID with ConstraintsDesign the implementation of CDEx PID with Constraints
Design the implementation of CDEx PID with Constraints
 
Design the implementation of CDEx flexible joints
Design the implementation of CDEx flexible jointsDesign the implementation of CDEx flexible joints
Design the implementation of CDEx flexible joints
 
Design the implementation of Robotic Simulator: Goalkeeper.
Design the implementation of Robotic Simulator: Goalkeeper.Design the implementation of Robotic Simulator: Goalkeeper.
Design the implementation of Robotic Simulator: Goalkeeper.
 
design the implementation of trajectory path of the robot using parallel loop
design the implementation of trajectory path of the robot using parallel loopdesign the implementation of trajectory path of the robot using parallel loop
design the implementation of trajectory path of the robot using parallel loop
 
Design the implementation of trajectory path of the robot using parallel loop...
Design the implementation of trajectory path of the robot using parallel loop...Design the implementation of trajectory path of the robot using parallel loop...
Design the implementation of trajectory path of the robot using parallel loop...
 
Design the implementation of Forward Dynamic for PUMA560.
Design the implementation of Forward Dynamic for PUMA560.Design the implementation of Forward Dynamic for PUMA560.
Design the implementation of Forward Dynamic for PUMA560.
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.
 
Design the implementation of Anytime D Star on an Occupancy Grid
Design the implementation of Anytime D Star on an Occupancy GridDesign the implementation of Anytime D Star on an Occupancy Grid
Design the implementation of Anytime D Star on an Occupancy Grid
 

Similar to Design the implementation of NMEA Get GPS Data from Record

From_SPSS Modeler_to_KNIME_v4.7_ebook.pdf
From_SPSS Modeler_to_KNIME_v4.7_ebook.pdfFrom_SPSS Modeler_to_KNIME_v4.7_ebook.pdf
From_SPSS Modeler_to_KNIME_v4.7_ebook.pdf
VeniAgustina1
 

Similar to Design the implementation of NMEA Get GPS Data from Record (20)

Getting started with R
Getting started with RGetting started with R
Getting started with R
 
Gephi Plugin Developer Workshop
Gephi Plugin Developer WorkshopGephi Plugin Developer Workshop
Gephi Plugin Developer Workshop
 
Programming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentProgramming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) Environment
 
Data Science - Part II - Working with R & R studio
Data Science - Part II -  Working with R & R studioData Science - Part II -  Working with R & R studio
Data Science - Part II - Working with R & R studio
 
38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptx38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptx
 
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...
 
38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdf38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdf
 
From_SPSS Modeler_to_KNIME_v4.7_ebook.pdf
From_SPSS Modeler_to_KNIME_v4.7_ebook.pdfFrom_SPSS Modeler_to_KNIME_v4.7_ebook.pdf
From_SPSS Modeler_to_KNIME_v4.7_ebook.pdf
 
Bitstuffing
BitstuffingBitstuffing
Bitstuffing
 
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for DevelopersMSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
 
Simulink Lab Manual final.doc
Simulink Lab Manual final.docSimulink Lab Manual final.doc
Simulink Lab Manual final.doc
 
Who pulls the strings?
Who pulls the strings?Who pulls the strings?
Who pulls the strings?
 
Virtual instrumentation
Virtual instrumentationVirtual instrumentation
Virtual instrumentation
 
Lab 1 Essay
Lab 1 EssayLab 1 Essay
Lab 1 Essay
 
Programmability in spss 14, 15 and 16
Programmability in spss 14, 15 and 16Programmability in spss 14, 15 and 16
Programmability in spss 14, 15 and 16
 
(1) c sharp introduction_basics_dot_net
(1) c sharp introduction_basics_dot_net(1) c sharp introduction_basics_dot_net
(1) c sharp introduction_basics_dot_net
 
Sybase IQ ile Analitik Platform
Sybase IQ ile Analitik PlatformSybase IQ ile Analitik Platform
Sybase IQ ile Analitik Platform
 
Building an analytical platform
Building an analytical platformBuilding an analytical platform
Building an analytical platform
 
iphone presentation
iphone presentationiphone presentation
iphone presentation
 
Itb weka nikhil
Itb weka nikhilItb weka nikhil
Itb weka nikhil
 

More from Ankita Tiwari

More from Ankita Tiwari (20)

EssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdfEssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdf
 
surveyofdnnlearning.pdf
surveyofdnnlearning.pdfsurveyofdnnlearning.pdf
surveyofdnnlearning.pdf
 
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdfBasic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
 
Relation of Big Data and E-Commerce
Relation of Big Data and E-CommerceRelation of Big Data and E-Commerce
Relation of Big Data and E-Commerce
 
Study of various Data Compression Techniques used in Lossless Compression of ...
Study of various Data Compression Techniques used in Lossless Compression of ...Study of various Data Compression Techniques used in Lossless Compression of ...
Study of various Data Compression Techniques used in Lossless Compression of ...
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
 
What is IEEE and why?
What is IEEE and why?What is IEEE and why?
What is IEEE and why?
 
To implement Water level control using LabVIEW and analog input signals from ...
To implement Water level control using LabVIEW and analog input signals from ...To implement Water level control using LabVIEW and analog input signals from ...
To implement Water level control using LabVIEW and analog input signals from ...
 
To count number of external events using LabVIEW
To count number of external events using LabVIEWTo count number of external events using LabVIEW
To count number of external events using LabVIEW
 
To control the dc motor speed using PWM from LabVIEW
To control the dc motor speed using PWM from LabVIEWTo control the dc motor speed using PWM from LabVIEW
To control the dc motor speed using PWM from LabVIEW
 
To measure the intensity of light using LDR sensor by calibrating voltage wit...
To measure the intensity of light using LDR sensor by calibrating voltage wit...To measure the intensity of light using LDR sensor by calibrating voltage wit...
To measure the intensity of light using LDR sensor by calibrating voltage wit...
 
To interface temperature sensor with microcontroller and perform closed loop ...
To interface temperature sensor with microcontroller and perform closed loop ...To interface temperature sensor with microcontroller and perform closed loop ...
To interface temperature sensor with microcontroller and perform closed loop ...
 
Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.
 
To study the relay operation from digital control signal using LabVIEW.
To study the relay operation from digital control signal using LabVIEW.To study the relay operation from digital control signal using LabVIEW.
To study the relay operation from digital control signal using LabVIEW.
 
Linux operating systems and Bootable Pendrive
Linux operating systems and Bootable PendriveLinux operating systems and Bootable Pendrive
Linux operating systems and Bootable Pendrive
 
Sleep paralysis
Sleep paralysisSleep paralysis
Sleep paralysis
 
Ieee 802
Ieee 802Ieee 802
Ieee 802
 
Sem2 robotics ppt
Sem2 robotics pptSem2 robotics ppt
Sem2 robotics ppt
 
IEEE 802
IEEE 802IEEE 802
IEEE 802
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Recently uploaded (20)

chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 

Design the implementation of NMEA Get GPS Data from Record

  • 1. EXPERIMENT NO. 3 AIM: To study and design the implementation of NMEA Get GPS Data from Record Apparatus Used: Microsoft Windows XP, Professional Version 2002, Intel® Pentium® Dual CPU. E2180 @2.00 GHz, 2.00 GHz, 199 GB of RAM, Lab VIEW Robotics 2011 SP1 Theory: LabVIEW (short for The Laboratory Virtual Instrumentation Engineering Workbench) is a platform and development environment for a visual programming language from National Instruments in which you create programs using a graphical natation (connecting functional nodes via wires through which data flows), in this regard, it differs from traditional programming languages like C, C++, or Java in which you program with text. However LabVIEW is much more than a programming language. It is an interactive program development and execution system designed for people, like scientists and engineers, who need to program as part of their jobs. The LabVIEW development environment works on computers running Windows, Mac OS X, or Linux. LabVIEW can create programs that run on those platforms, as well as Microsoft Pocket PC Microsoft windows CE, Palm OS, and a variety of embedded platforms, including Field Programmable Gate Arrays (FPGAs), Digital Signal Processors (DSP), and Microprocessors. Procedure: Execution is determined by the structure of a graphical block diagram on which the programmer connects different function nodes by drawing wires. These wires propagate variables and any node can execute as soon as all its input data become available. LabVIEW ties the creation of user interface (front panels) into the development cycle. LabVIEW programs/subroutines are called virtual instruments (VIs). Each VI has three components; a block diagram, a front panel, and a connector panel. The last is used to represent the VI in the block diagram of other, calling VI. Controls and indicators on the front panel allow an operator to input data into or extract data from a running virtual instrument. However, the front panel can also serve as a programmatic interface. Thus a VI can either be run as a program, with the front panel serving as a user interface, or when dropped as a node onto the block diagram, the font panel defines the inputs and outputs for the given node through the connector pane. This implies each VI can be easily tested before being embedded as a subroutine into a larger program. The graphical approach also allows non- programmers to build programs simply by dragging and dropping virtual representation of lab equipment with which they are already familiar.
  • 2. Execution of VI’s and Sub –VI’s: Main VI: This VI reads NMEA data from a file and plots the latest location and heading data. To process NMEA sentences individually rather than as a group of sentences, use the Vis on the NMEA Advanced palette. Sub VI: Creating Steering: Front Panel of NMEA API.lvlib: Get GPS Data.vi Previous partial sentence contains characters to prepend to sensor data. Sensor data contains the data to parse for GPS data. This VI appends sensor data to previous partial sentence and then parses the data.
  • 3. Build Path Function: Creates a new path by appending a name (or relative path) to an existing path. Base path specifies the path to which this function appends name. The default is an empty path. Appended path is the resulting path. Open/Create/Replace File Function: Opens an exixting file, creates a new file, or replaces an existing file, programmability or interactively using a file dialog box. This function does not work for files inside the LLB.
  • 4. File Path (use dialog) is the absolute path to the file. If you do not wire file path (use dialog), the function displays a dialog box from which you can select a file. If you specify an empty or relative path, this function returns an error. Return if the file cannot be opened. Select Function: Returns the value wired to the t input or f input, depending on the value of s. If s is TRUE, this function returns the value wired to t. If s is FALSE, this function returns the value wired to f. ‘t’ is the value that this function returns if s passes a TRUE value. T and f must be of the same type, but they can have different numeric representations. s determines whether the function returns the value of t or f in s? t:f. If you wire an error cluster to s and an error occurs, the error cluster passes a TRUE value to the function. Otherwise, the error cluster passes a FALSE value to the function. Result: NMEA Get GPS Data VI reads NMEA data from a file and plots the largest location and heading data. The map indicator is an XY graph with an image snippet used as a background image. You can adopt this VI to acquire data from a real GPS receiver with drivers instead of reading data from a file. NMEA get GPS data VI procedure is as first it opens the text file that contains NMEA sentences. Reading 400 characters from the text file, which is similar to acquiring streaming data from a GPS receiver. Read an amount of characters from a file or instrument that is enough to include several NMEA sentences. Parses complete sentences in the sensor data into a cluster of common GPS data point. When the string of data sensor contains more than one value for a data point, the Get GPS Data VI returns the most recent value. After this VI runs, any remaining partial sentence not yet parsed passes to a shift register to be used on the next iteration of the loop. Unbundles desired data points and checks that value are valid, or not ‘NaN’. Refer to the Get GPS data VI help topic for more information about invalid values from the shift registers then it closes the text file. Precautions:  To avoid hanging the user interface with front panel locking, configure all events you want a VI to handle in a single Event structure or always make sure there is only one Event structure in a loop.  Additionally, make sure there is always an Event structure available to handle events as they occur.