8/11/2019 Labview Training Days Principiantes
1/57
spain.ni.com/formacion
LabVIEW Training Days
National Instruments Spain
8/11/2019 Labview Training Days Principiantes
2/57
TOPICS
ni.com/training
LabVIEW Training Days - Navigating LabVIEW
A. Virtual Instruments (VIs)
B. Parts of a VI
C. Starting a VI
D. Project Explorer
E. Front Panel
F. Block Diagram
G. Searching for Controls, VIs
and Functions
H. Selecting a Tool
I. DataflowJ. Building a Simple VI
8/11/2019 Labview Training Days Principiantes
3/57
spain.ni.com/formacion
A. Virtual Instruments (VIs)
The appearance and operation of VIs imitate physical instruments,
such as oscilloscopes and digital multimeters.
Virtual Instrument (VI)A LabVIEWprogram
8/11/2019 Labview Training Days Principiantes
4/57
spain.ni.com/formacion
B. Parts of a VI
LabVIEW VIs contain three main components:
1. Front Panel 2. Block Diagram 3. Icon/Connector Pane
8/11/2019 Labview Training Days Principiantes
5/57
spain.ni.com/formacion
B. Parts of a VIFront Panel
You build the front panel
with controls (inputs) and
indicators (outputs)
Front Panel User interface for the VI
8/11/2019 Labview Training Days Principiantes
6/57
spain.ni.com/formacion
B. Parts of a VIBlock Diagram
Front panel objects
appear as terminals on
the block diagram
Block DiagramContains thegraphical source code
8/11/2019 Labview Training Days Principiantes
7/57
spain.ni.com/formacion
B. Parts of a VIIcon/Connector Pane
Icon: graphical representation of a VI
Connector Pane: map of the inputs and outputs of a VI
Icons and connector panes are necessary to use a VI as
a subVIA subVI is a VI that is inside of another VI
Similar to a function in a text-based programming
language
Icon Connector Pane
8/11/2019 Labview Training Days Principiantes
8/57
spain.ni.com/formacion
D. Project Explorer
Use LabVIEW Projects to: Group LabVIEW files and non-LabVIEW files
Create build specifications
Deploy or download files to targets
8/11/2019 Labview Training Days Principiantes
9/57DEMONSTRATION
Using the Project Explorer
Demonstrate creating a project, adding files, and removing
files.
8/11/2019 Labview Training Days Principiantes
10/57
spain.ni.com/formacion
E. Front PanelFront Panel Toolbar
8/11/2019 Labview Training Days Principiantes
11/57
spain.ni.com/formacion
E. Front PanelControls Palette
Contains the controls and indicators you use to
create the front panel
Access from the front panel by selecting
ViewControls Palette
8/11/2019 Labview Training Days Principiantes
12/57
spain.ni.com/formacion
E. Front PanelNumeric Controls/Indicators
The numeric data type can represent numbers of various
types, such as integer or real
Numeric Indicator
Numeric Control
Increment/Decrement Buttons
8/11/2019 Labview Training Days Principiantes
13/57
spain.ni.com/formacion
E. Front PanelBoolean Controls/Indicators
The Boolean data type represents data that only has two
parts, such as True and False or On and Off
Use Boolean controls and indicators to enter and display
Boolean (True or False) values Boolean objects simulate switches, push buttons, and LEDs
BooleanControl
BooleanIndicator
8/11/2019 Labview Training Days Principiantes
14/57
spain.ni.com/formacion
E. Front PanelStrings
The string data type is a sequence of ASCII characters
Use string controls to receive text from the user such as a
password or user name
Use string indicators to display text to the user
8/11/2019 Labview Training Days Principiantes
15/57
spain.ni.com/formacion
E. Front PanelShortcut Menus
All LabVIEW objects have
associated shortcut menus
As you create a VI, use the
shortcut menu items to change
the look or behavior of frontpanel and block diagram
objects
To access the shortcut menu,
right-click the object
8/11/2019 Labview Training Days Principiantes
16/57
spain.ni.com/formacion
E. Front PanelProperty Dialog Box
Right-click a front panel
object and select
Properties to display
The options available on
the property dialog boxare similar to the options
available on the shortcut
menu for that object
8/11/2019 Labview Training Days Principiantes
17/57
spain.ni.com/formacion
E. Front PanelConfigure Multiple Objects
Select multiple objects to simultaneously configure shared
properties
8/11/2019 Labview Training Days Principiantes
18/57
spain.ni.com/formacion
F. Block Diagram
Block diagram objects include the
following:
Terminals
SubVIs Functions
Constants
Structures
Wires
8/11/2019 Labview Training Days Principiantes
19/57
spain.ni.com/formacion
F. Block DiagramFunctions Palette
Contains the VIs, functions, and constants
you use to create the block diagram
8/11/2019 Labview Training Days Principiantes
20/57
spain.ni.com/formacion
F. Block DiagramBlock Diagram Toolbar
8/11/2019 Labview Training Days Principiantes
21/57
spain.ni.com/formacion
F. Block DiagramTerminals
Terminals are:
Block diagram appearance of front panel objects
Entry and exit ports that exchange information between the
front panel and block diagramAnalogous to parameters and constants in text-based
programming languages
Change the view type of a terminal by toggling the View as
Iconselection from the context menu
8/11/2019 Labview Training Days Principiantes
22/57
spain.ni.com/formacion
F. Block Diagram Terminals
8/11/2019 Labview Training Days Principiantes
23/57
spain.ni.com/formacion
F. Block DiagramNodes
Objects on the block diagram that have inputs and/or
outputs and perform operations when a VI runs
Analogous to statements, operators, functions, and
subroutines in text-based programming languages Nodes can be functions, subVIs, or structures
Nodes
8/11/2019 Labview Training Days Principiantes
24/57
spain.ni.com/formacion
F. Block DiagramFunction Nodes
Fundamental operating elements of LabVIEW
Do not have front panels or block diagrams, but do have
connector panes
Double-clicking a function only selects the functiondoesnot open it like a VI
Has a pale yellow background on its icon
8/11/2019 Labview Training Days Principiantes
25/57
spain.ni.com/formacion
F. Block DiagramSubVI Nodes
SubVI: VIs that you build to use inside of another VI
Any VI has the potential to be used as a subVI
When you double-click a subVI on the block diagram, you
can view the front panel and block diagram of the subVI The upper right corner of the front panel and block diagram
displays the icon for the current VI
This is the icon that appears when you place the VI on a blockdiagram as a subVI
8/11/2019 Labview Training Days Principiantes
26/57
spain.ni.com/formacion
F. Block DiagramSubVI Nodes
Express VIs are a special type of subVI
Require minimal wiring because you configure them
with dialog boxes
Save the configuration of an Express VI as a subVI Icons for Express VIs appear on the block diagram
as icons surrounded by a blue field
8/11/2019 Labview Training Days Principiantes
27/57
spain.ni.com/formacion
F. Block DiagramIcons/Expandable Nodes
8/11/2019 Labview Training Days Principiantes
28/57
spain.ni.com/formacion
F. Block DiagramWires
Transfer data between block diagram objects through wires
Wires are different colors, styles, and thicknesses,
depending on their data types
A broken wire appears as a dashedblack line with a red X in the middle
Scalar
1D Array
2D Array
DBL Numeric Integer Numeric String
8/11/2019 Labview Training Days Principiantes
29/57
spain.ni.com/formacion
F. Block DiagramWiring Tips
Press -B to delete all broken wires
Right-click and select Clean Up Wireto reroute the wire
8/11/2019 Labview Training Days Principiantes
30/57
spain.ni.com/formacion
F. Block DiagramWiring Tips
Use the Clean Up Diagram tool to reroute multiple wires and
objects to improve readability
1. Select a section of your block diagram
2. Click the Clean Up Diagram button on the block diagramtoolbar
8/11/2019 Labview Training Days Principiantes
31/57
spain.ni.com/formacion
G. Searching for Controls, VIs & Functions
Find controls, functions, and VIs using the Searchbutton on
the Controlsand Functionspalette.
8/11/2019 Labview Training Days Principiantes
32/57
spain.ni.com/formacion
H. Selecting A Tool
Create, modify, and debug VIs
using the tools provided by LabVIEW
A tool is a special operating mode of the
mouse cursor The operating mode of the cursor corresponds to the icon of
the tool selected
When using the Automatic Tool Selection, LabVIEWchooses which tool to select based on the current location of
the mouse
8/11/2019 Labview Training Days Principiantes
33/57
GOAL
Exercise
Concept: Exploring a VI
Identify the parts of an existing VI.
8/11/2019 Labview Training Days Principiantes
34/57
spain.ni.com/formacion
I. Dataflow
LabVIEW follows a dataflow model for running VIs
A node executes only when data are available at all of its
input terminals
A node supplies data to the output terminals only when thenode finishes execution
8/11/2019 Labview Training Days Principiantes
35/57
spain.ni.com/formacion
I. DataflowQuiz
Which node executes first?
a) Add
b) Subtract
c) Random Numberd) Divide
e) Sine
8/11/2019 Labview Training Days Principiantes
36/57
spain.ni.com/formacion
I. DataflowQuiz Answers
NO CORRECT ANSWER
Which node executes first?
a) Add
possiblyb) Subtractdefinitely not
c) Random Numberpossibly
d) Dividepossibly
e) Sine
definitely not
8/11/2019 Labview Training Days Principiantes
37/57
spain.ni.com/formacion
J. Building a Simple VI
8/11/2019 Labview Training Days Principiantes
38/57
spain.ni.com/formacion
J. Building a Simple VIAcquire
Acquire Express VIs:
DAQ Assistant Express VI
Instrument I/O Assistant Express VI
Simulate Signal Express VI
Read from Measurement File Express VI
8/11/2019 Labview Training Days Principiantes
39/57
spain.ni.com/formacion
J. Building a Simple VIAnalyze
Analyze Express VIs:
Amplitude and Level Measurements Express VI
Statistics Express VI
Spectral Measurements Express VI
Tone Measurements Express VI
Filter Express VI
8/11/2019 Labview Training Days Principiantes
40/57
spain.ni.com/formacion
J. Building a Simple VIPresent
Present tasks are Express VIs that perform a function or
indicators that present data on the front panel of the VI
Indicators include the Waveform Chart, the Waveform
Graph, and the XY Graph Express VIs include the Write to Measurement File Express
VI, Build Text Express VI, DAQ Assistant Express VI, and
the Instrument I/O Assistant Express VI
8/11/2019 Labview Training Days Principiantes
41/57
spain.ni.com/formacion
J. Building A Simple VIRunning
1. Place Express VI on the block diagram
2. Configure the dialog box that opens
3. Wire Express VIs together
4. Save and run the VI
The Run button appears broken when the VI you
are creating or editing contains errors
8/11/2019 Labview Training Days Principiantes
42/57
GOAL
Exercise
Simple Acquire, Analyze, and Present VI
Create a simple VI that acquires data, analyzes data, and
presents the results.
8/11/2019 Labview Training Days Principiantes
43/57
spain.ni.com/formacion
SummaryQuiz
1. Which function executes first:Add or Subtract?
a) Add
b) Subtract
c) Unknown
8/11/2019 Labview Training Days Principiantes
44/57
spain.ni.com/formacion
SummaryQuiz Answer
1. Which function executes first:Add or Subtract?
a) Add
b) Subtract
c) Unknown
8/11/2019 Labview Training Days Principiantes
45/57
spain.ni.com/formacion
SummaryQuiz
2. Which function executes first:Sine or Divide?
a) Sine
b) Divide
c) Unknown
8/11/2019 Labview Training Days Principiantes
46/57
spain.ni.com/formacion
SummaryQuiz Answer
2. Which function executes first:Sine or Divide?
a) Sine
b) Divide
c) Unknown
8/11/2019 Labview Training Days Principiantes
47/57
spain.ni.com/formacion
SummaryQuiz
3. Which of the followingfunctions executes first:
Random Number, Add or
Divide?
a) Random Numberb) Divide
c) Add
d) Unknown
8/11/2019 Labview Training Days Principiantes
48/57
spain.ni.com/formacion
SummaryQuiz Answer
3. Which of the followingfunctions executes first:
Random Number, Add or
Divide?
a) Random Numberb) Divide
c) Add
d) Unknown
8/11/2019 Labview Training Days Principiantes
49/57
spain.ni.com/formacion
SummaryQuiz
4. Which of the followingfunctions execute last:
Random Number, Subtract or
Add?
a) Random Numberb) Subtract
c) Add
d) Unknown
8/11/2019 Labview Training Days Principiantes
50/57
spain.ni.com/formacion
SummaryQuiz Answer
4. Which of the followingfunctions execute last:
Random Number, Subtract or
Add?
a) Random Numberb) Subtract
c) Add
d) Unknown
8/11/2019 Labview Training Days Principiantes
51/57
spain.ni.com/formacion
SummaryQuiz
5. What are the three parts of a VI?
a) Front Panel
b) Block Diagram
c) Project
d) Icon/Connector Pane
8/11/2019 Labview Training Days Principiantes
52/57
spain.ni.com/formacion
SummaryQuiz Answer
5. What are the three parts of a VI?
a) Front Panel
b) Block Diagram
c) Project
d) Icon/Connector Pane
8/11/2019 Labview Training Days Principiantes
53/57
spain.ni.com/formacion
Want to learn more?Attend the LabVIEW Core 1
Training Course
Learn how to:
Use LabVIEW to create data acquisition, analysis, and display applications
Create user interfaces with charts, graphs and buttons
Use the programming structures and data types that exist in LabVIEW
Use common design techniques Use various editing and debugging techniques
Create and save VIs for use as subVIs
Read and write your data to files
Create applications that use GPIB and serial port instruments
LabVIEW Training Path
8/11/2019 Labview Training Days Principiantes
54/57
spain.ni.com/formacion
LabVIEW Training Path
"Certification is an absolute must for anyone serious about calling himselfa LabVIEW expert... At our organization, we require that every LabVIEW
developer be on a professional path to become a Certified LabVIEW
Architect. James Kring, James Kring, Inc.
Certifications
LabVIEW
Core 1
LabVIEW
Core 2
LabVIEW
Core 3
Certified LabVIEW
Developer Exam
Advanced
Architectures
for LabVIEW
Certified LabVIEWArchitect Exam
Courses
New User Experienced User Advanced User
Begin
Here
Certified LabVIEW
Associate Developer Exam
Managing
Software
Engineering
in LabVIEW
S
8/11/2019 Labview Training Days Principiantes
55/57
spain.ni.com/formacion
Standard NI Training Formats
Instructor-led courses, delivered:
In a regional classroom
8 hrs per day
17 courses available
Onsite at your facility
Up to 8 hrs per day
Any course
Online
4 hrs per day
22 courses available
Self-paced materials
O ll S ifi B fit
8/11/2019 Labview Training Days Principiantes
56/57
spain.ni.com/formacion
Overall Specific Benefits
Training customers in a worldwide survey* reported:
as a result of NI training
*Source: NI Training ROI Survey, november 2009, n=41 attendees to courses delivered in NI Spain
0% 20% 40% 60% 80%
70% faster learning
50% faster development46% less maintenance
8/11/2019 Labview Training Days Principiantes
57/57
Thank you!
Please complete the survey.
Top Related