SlideShare a Scribd company logo
1 of 59
Download to read offline
LV 1
Introduction to LabVIEW
LV 2
•Graphical Programming
• Easy to use
• Faster Development Time
• Graphical User Interface
• Graphical Source Code
• Easily Modularized
• Application Builder to create
stand-alone executables
LabVIEW
TM
LV 3
Network-based
Measurement & Automation
Acquire
Anywhere
Analyze
Anywhere
Present
Anywhere
Your entire Measurement and Automation
system can be controlled with LabVIEW
locally, or over the Internet
Network Network
LV 4
Acquisition with LabVIEW
• LabVIEW can acquire data by using
one or more of the following devices:
• GPIB
• Serial
• Data Acquisition (DAQ)
• Remote Data Acquisition (RDA)
• PCI eXtensions for Instrumentation (PXI)
• Image Acquisition (IMAQ)
• Motion Control
• Real-Time (RT) Board
• PLC (through OPC Server)
LabVIEW is completely
compatible with
National Instruments
hardware, and also
works with a variety of
third party devices
Acquire
Anywhere
LV 5
Analyze
Anywhere
Analysis with LabVIEW
• LabVIEW includes the following
tools to help you analyze your data:
• Analysis VIs for Differential
Equations, Optimization, Curve
Fitting, Calculus, Linear Algebra,
Statistics, etc.
• Signal Processing VIs for Filtering,
Windowing, Transforms, Peak
Detection, Harmonic Analysis,
Spectrum Analysis, etc.
Analysis can either be
done directly in
LabVIEW, or with third
party software such as
Matlab, HiQ, or C
LV 6
Present
Anywhere
Presentation with LabVIEW
• LabVIEW includes the following
tools to help you present your data:
• On your machine - Graphs, Charts,
Tables, Gauges, Meters, Tanks, 3D
Controls, Picture Control, 3D
Graphs (Windows Only), Report
Generation (Windows Only)
• Over the Internet - Web Publishing
Tools, Datasocket (Windows Only),
TCP/IP, VI Server
• Enterprise Connectivity Toolset -
SQL Tools (Databases), Internet
Tools (FTP, E-mail, Telnet, HTML)
Presentation with
LabVIEW can be
done on your PC or
over a network, and
you can use third
party software like
Excel, or DIAdem
LV 7
Introduction to LabVIEW
You Will Learn:
A. What a virtual instrument (VI) is
B. The LabVIEW environment
C. LabVIEW Help Options
LV 8
Start » All Programs » National Instruments LabVIEW 8.0
Startup Screen:
Start from a Blank VI:
New»Blank VI
Start from an Example:
Examples»Find
Examples…
»
or
Open and Run LabVIEW
LV 9
Each VI has 2 Windows
Front Panel
• User Interface (UI)
– Controls = Inputs
– Indicators = Outputs
Block Diagram
• Graphical Code
– Data travels on wires from
controls through functions to
indicators
– Blocks execute by Dataflow
LabVIEW Programs Are Called Virtual Instruments (VIs)
LV 10
• Recommended: Automatic Selection Tool
• Tools to operate and modify both front panel and
block diagram objects
Operating Tool
Positioning/Resizing Tool
Labeling Tool
Wiring Tool
Tools Palette
Automatic Selection Tool
Automatically chooses among the following tools:
LV 11
Run Button
Continuous Run Button
Abort Execution
Execution Highlighting Button
Additional Buttons on
the Diagram Toolbar
Status Toolbar
Retain Wire Values Button
Step Function Buttons
LV 12
Creating, Editing, & Debugging a VI
A. How to Create VIs
B. How to Edit VIs
C. How to Debug VIs
You Will Learn:
LV 13
Creating a VI Front Panel
• Numeric controls and indicators
• Boolean controls and indicators
• Configuring controls and indicators
– Use shortcut menus
– Parts have different menus
Digital
Control
Digital
Indicator
Labels
Increment
Buttons Boolean
Control
Boolean
Indicator
LV 14
Accessing Shortcut Menus
Right-click on the label
for its shortcut menu Right-click on the digital
display for its shortcut menu
LV 15
Terminal pattern for the
Add Function and the
Subtract function (three
node terminals).
Creating a VI Block Diagram
NodesWires
Control
Terminals
Diagram Window
Panel Window
Indicator
Terminals
LV 16
Wiring a VI Block Diagram
Hot Spot
Tools to Help Wiring
- Automatic Wiring
- Tip Strips
- Right-click on terminals
and select Show Terminals
- Context Help Window
Scalar 1D Array
Numeric
Boolean
String
Orange (floating point)
Blue ( integer)
Green
Purple
2D Array
LV 17
Exercise 1
Students build Convert C to F.vi
* This VI will be used in a later exercise
LV 18
Debugging Techniques
• Finding Errors
• Execution Highlighting
• Probe
Click on broken Run button
Window showing error appears
Click on Execution Highlighting button; data
flow is animated using bubbles. Values are
displayed on wires.
Right-click on wire to display probe and it
shows data as it flows through wire segment
You can also select Probe tool from Tools
palette and click on wire
LV 19
Debugging Techniques
• Breakpoints
• Step Into, Over, and Out buttons for Single
Stepping
Click on Step Into button to enable single stepping
Once Single Stepping has begun, the button steps
into nodes
Click on Step Over button to enable single stepping
or to step over nodes
Click on Step Out button to step out of nodes
Select Breakpoint tool from Tools palette and click
on wire or node where you want execution to pause
LV 20
Exercise
Students modify and run Debug Exercise (Main).vi
(Uses Debug Exercise (Sub).vi)
LV 21
Creating a SubVI
A. What a SubVI is
B. How to create the icon and connector
C. How to use a VI as a subVI
You Will Learn:
LV 22
SubVI Example – Calculating Slope
LV 23
Creating the Icon
• Right-click in the icon pane (Panel or Diagram)
and select “Edit Icon…” option
LV 24
Creating the Connector
Right-click in the icon pane (Panel only)
LV 25
Creating the Connector - cont.
Click
LV 26
The Connector Pane
• The terminal colors match the data types to
which they are connected
• Click on the terminal to see its associated
front panel object
LV 27
Exercise 2
Students build icon and connector for
Convert C to F.vi
*This VI will be used in a later exercise.
LV 28
Using the VI as a SubVI
• Changes made to subVI saved in memory until
saved to disk
• Calling subVIs
– Functions >>Select a VI…
OR
– Drag icon onto target diagram
LV 29
Help and Classifying Terminals
• Context Help for subVIs
• Classify inputs and outputs:
How displayed in Context Help Window
Required - Bold label
Recommended - Normal text
Optional - Visible or wire
stubs shown
LV 30
Documenting the VI
• Document VIs - VI Properties>>Documentation
• Document objects - Description and Tip...
VI Documentation
Description and Tip
LV 31
Exercise 3
Students build Thermometer.vi
*This VI will be used in a later exercise.
LV 32
The Create SubVI Option
• Enclose area to be converted into a subVI
• Select Create SubVI from the Edit Menu
LV 33
Loops and Charts
A. About While Loops
B. About waveform charts
D. About For Loops
You Will Learn:
LV 34
While Loop
Do
(Execute diagram
inside Loop)
While Condition is TRUE
1. Select While Loop
2. Enclose code to be repeated
3. Drop or drag additional nodes and then wire
LV 35
Select the Loop Condition
• Right-click on Conditional Terminal to define
when the loop stops
Iteration Terminal Conditional Terminal
LV 36
Waveform Charts
• Selected from the Controls >> Graph subpalette
LV 37
Customizing Charts and Graphs
• Plot Legend (color, point style, line style, etc.)
• Digital Display
• Scrollbar
• Customize the
X and Y Axes
• Graph Palette
• Scale Legend
LV 38
Wiring to Charts
• Single-Plot Chart
• Multiple-Plot Chart
LV 39
Exercise 4
Students build Temperature Monitor.vi
*This VI will be used in a later exercise.
LV 40
For Loop
• In Structures subpalette of Functions palette
• Enclose code to be repeated and/or resize and
add nodes inside boundary
• Executes diagram inside of loop a predetermined
number of times
Count terminal
(Numerical input)
LV 41
Numeric Conversion
• Numeric defaults to double precision (8 bytes) or
long integer (4 bytes)
• LabVIEW automatically converts to different
representations
• Gray coercion dot on terminal indicates conversion
LV 42
Arrays, Graphs, and Clusters
A. About arrays
B. About generating arrays with loops
C. Some basic array functions
D. What polymorphism is
E. Using graphs to display data
You Will Learn:
LV 43
Arrays
• Collection of data elements that are of same type
• One or more dimensions, up to 2 elements per
dimension
• Elements accessed by their index
• First element is index 0
31
index
10-element array 1.2 3.2 8.2 8.0 4.8 5.1 6.0 1.0 2.5 1.7
0 1 2 3 4 5 6 7 8 9
2D array
Five-row by seven column
array of 35 elements
0 1 2 3 4 5 6
0
1
2
3
4
LV 44
Array Controls and Indicators
Add Dimension for 2D
arrays
1. Select the Array Shell
from the Controls palette
2. Place data object inside
shell
LV 45
Creating Array Constants
1. Select Array
Constant shell
from the Array
subpalette
2. Place the data object in
the array shell
LV 46
Creating and Using Arrays
• Auto-Indexing –
loops accumulate
arrays at their
boundaries
• For Loops auto
index by default;
While Loops do
not
LV 47
Creating 2D Arrays
• Inner loop creates column elements
• Outer loop stacks them into rows
LV 48
Common Array Functions
Array Size
Initialize Array
Array Subset
LV 49
The Build Array Function
Building a higher dimension array
Concatenate Inputs (default)
Appending an element
LV 50
The Index Array Function
Extracting an Element
Extracting a Row
LV 51
Polymorphism
• Function inputs can be of different types
• All LabVIEW arithmetic functions are polymorphic
• Run Polymorphism
Example.vi
Scalar + Scalar
Array + Scalar
Combination Result
Scalar
Array
Array
1 4 2
2
4 6 7
5
2
7
Array + Array 3 2 5
1 4 2
Array + Array 1 4 2
3 2 5 7
Array3 6 4
4 6 7
LV 52
Graphs
• Selected from the Graph subpalette
• Waveform Graph – Plot an array of numbers
against their indices
• XY Graph – Plot one array against another
Plot Legend
(point and
line styles)
Graph Palette
Scale Legend
LV 53
Single-Plot Waveform Graphs
Uniform X axis - initial X = 0.0, delta X = 1.0
Uniform X axis - you specify point spacing
LV 54
Exercise 5
Students build Temperature Analysis.vi
LV 55
Case and Sequence Structures
A. About Case structures
B. About Sequence structures
D. How to replace Sequence structures
You Will Learn:
LV 56
Case Structures
• In the Structures subpalette of Functions palette
• Enclose nodes or drag them inside the structure
• Stacked like a deck of cards, only one case visible
LV 57
Boolean and Numeric Cases
Note: all possible outputs of the Case structure must be wired
LV 58
Sequence Structures
• In the Structures subpalette of Functions palette
• Executes diagrams sequentially, Frame 0 (0..x),
where x is the total number of frames
• Stacked like a deck of cards, only one frame visible
LV 59
Sequence Locals
• Pass data from one frame to future frames
• Created at the border of the Sequence structure
Sequence local
created in
Frame 1
Data not
available
Data
available

More Related Content

What's hot (20)

Lab view
Lab viewLab view
Lab view
 
Virtual instrumentation (LabVIEW)
Virtual instrumentation (LabVIEW)Virtual instrumentation (LabVIEW)
Virtual instrumentation (LabVIEW)
 
digita storage oscilloscope (dso)
digita storage oscilloscope (dso)digita storage oscilloscope (dso)
digita storage oscilloscope (dso)
 
Oscillators
OscillatorsOscillators
Oscillators
 
floating point multiplier
floating point multiplierfloating point multiplier
floating point multiplier
 
Elvis orientation
Elvis orientationElvis orientation
Elvis orientation
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital Systems
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 
Logic Gate
Logic GateLogic Gate
Logic Gate
 
Op amp basics
Op amp basicsOp amp basics
Op amp basics
 
Verilog operators.pptx
Verilog  operators.pptxVerilog  operators.pptx
Verilog operators.pptx
 
Labview material
Labview materialLabview material
Labview material
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Virtual instrumentation
Virtual instrumentationVirtual instrumentation
Virtual instrumentation
 
Digital storage ocilloscope
Digital storage ocilloscopeDigital storage ocilloscope
Digital storage ocilloscope
 
Unit 2 signal generators
Unit 2 signal generatorsUnit 2 signal generators
Unit 2 signal generators
 
IC Design of Power Management Circuits (I)
IC Design of Power Management Circuits (I)IC Design of Power Management Circuits (I)
IC Design of Power Management Circuits (I)
 
Matrix Cosec Tam Presentation V1 R1
Matrix Cosec Tam Presentation V1 R1Matrix Cosec Tam Presentation V1 R1
Matrix Cosec Tam Presentation V1 R1
 

Similar to Introduction to LabVIEW

Lab view introduction-threehour
Lab view introduction-threehourLab view introduction-threehour
Lab view introduction-threehoure-LabVIEW
 
Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptx
Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptxUnit 3 Sensor and Instrumentation _Graphical programming techniques.pptx
Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptxpromethiusshinkura
 
Virtual Instrumentation & LabVIEW-lini.ppt
Virtual Instrumentation & LabVIEW-lini.pptVirtual Instrumentation & LabVIEW-lini.ppt
Virtual Instrumentation & LabVIEW-lini.pptAvinashJain66
 
222066369 clad-study-guide
222066369 clad-study-guide222066369 clad-study-guide
222066369 clad-study-guidehomeworkping9
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursconquista2011
 
1.1 LabVIEW Step By Step Guide Final.pdf.pdf
1.1 LabVIEW Step By Step Guide Final.pdf.pdf1.1 LabVIEW Step By Step Guide Final.pdf.pdf
1.1 LabVIEW Step By Step Guide Final.pdf.pdfMitsakisMitsaras
 
Lab-Lecture3-Intro-to-LabView(1).ppt
Lab-Lecture3-Intro-to-LabView(1).pptLab-Lecture3-Intro-to-LabView(1).ppt
Lab-Lecture3-Intro-to-LabView(1).pptBakiyalakshmiR1
 
Lesson 1 navigating lab view
Lesson 1   navigating lab viewLesson 1   navigating lab view
Lesson 1 navigating lab viewRaymundo Vazquez
 
Introduction%20to%20 labview
Introduction%20to%20 labviewIntroduction%20to%20 labview
Introduction%20to%20 labviewandrearln
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursArihant Jain
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step Ming-Hung Hseih
 
Lab view introduction
Lab view introductionLab view introduction
Lab view introductionJakupBerisha2
 
6 weeks summer training in labview,jalandhar
6 weeks summer training in labview,jalandhar6 weeks summer training in labview,jalandhar
6 weeks summer training in labview,jalandhardeepikakaler1
 
6months industrial training in labview, ludhiana
6months industrial training in labview, ludhiana6months industrial training in labview, ludhiana
6months industrial training in labview, ludhianadeepikakaler1
 
6 weeks summer training in labview,ludhiana
6 weeks summer training in labview,ludhiana6 weeks summer training in labview,ludhiana
6 weeks summer training in labview,ludhianadeepikakaler1
 

Similar to Introduction to LabVIEW (20)

Lab view introduction-threehour
Lab view introduction-threehourLab view introduction-threehour
Lab view introduction-threehour
 
Lesson_1-4.ppt
Lesson_1-4.pptLesson_1-4.ppt
Lesson_1-4.ppt
 
Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptx
Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptxUnit 3 Sensor and Instrumentation _Graphical programming techniques.pptx
Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptx
 
Virtual Instrumentation & LabVIEW-lini.ppt
Virtual Instrumentation & LabVIEW-lini.pptVirtual Instrumentation & LabVIEW-lini.ppt
Virtual Instrumentation & LabVIEW-lini.ppt
 
222066369 clad-study-guide
222066369 clad-study-guide222066369 clad-study-guide
222066369 clad-study-guide
 
Wmc lab (1)
Wmc lab (1)Wmc lab (1)
Wmc lab (1)
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hours
 
Labview pdf
Labview pdfLabview pdf
Labview pdf
 
1.1 LabVIEW Step By Step Guide Final.pdf.pdf
1.1 LabVIEW Step By Step Guide Final.pdf.pdf1.1 LabVIEW Step By Step Guide Final.pdf.pdf
1.1 LabVIEW Step By Step Guide Final.pdf.pdf
 
Lab-Lecture3-Intro-to-LabView(1).ppt
Lab-Lecture3-Intro-to-LabView(1).pptLab-Lecture3-Intro-to-LabView(1).ppt
Lab-Lecture3-Intro-to-LabView(1).ppt
 
17625-1.pptx
17625-1.pptx17625-1.pptx
17625-1.pptx
 
Lesson 1 navigating lab view
Lesson 1   navigating lab viewLesson 1   navigating lab view
Lesson 1 navigating lab view
 
Labview.ppt
Labview.pptLabview.ppt
Labview.ppt
 
Introduction%20to%20 labview
Introduction%20to%20 labviewIntroduction%20to%20 labview
Introduction%20to%20 labview
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hours
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step
 
Lab view introduction
Lab view introductionLab view introduction
Lab view introduction
 
6 weeks summer training in labview,jalandhar
6 weeks summer training in labview,jalandhar6 weeks summer training in labview,jalandhar
6 weeks summer training in labview,jalandhar
 
6months industrial training in labview, ludhiana
6months industrial training in labview, ludhiana6months industrial training in labview, ludhiana
6months industrial training in labview, ludhiana
 
6 weeks summer training in labview,ludhiana
6 weeks summer training in labview,ludhiana6 weeks summer training in labview,ludhiana
6 weeks summer training in labview,ludhiana
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 

Recently uploaded (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Introduction to LabVIEW

  • 2. LV 2 •Graphical Programming • Easy to use • Faster Development Time • Graphical User Interface • Graphical Source Code • Easily Modularized • Application Builder to create stand-alone executables LabVIEW TM
  • 3. LV 3 Network-based Measurement & Automation Acquire Anywhere Analyze Anywhere Present Anywhere Your entire Measurement and Automation system can be controlled with LabVIEW locally, or over the Internet Network Network
  • 4. LV 4 Acquisition with LabVIEW • LabVIEW can acquire data by using one or more of the following devices: • GPIB • Serial • Data Acquisition (DAQ) • Remote Data Acquisition (RDA) • PCI eXtensions for Instrumentation (PXI) • Image Acquisition (IMAQ) • Motion Control • Real-Time (RT) Board • PLC (through OPC Server) LabVIEW is completely compatible with National Instruments hardware, and also works with a variety of third party devices Acquire Anywhere
  • 5. LV 5 Analyze Anywhere Analysis with LabVIEW • LabVIEW includes the following tools to help you analyze your data: • Analysis VIs for Differential Equations, Optimization, Curve Fitting, Calculus, Linear Algebra, Statistics, etc. • Signal Processing VIs for Filtering, Windowing, Transforms, Peak Detection, Harmonic Analysis, Spectrum Analysis, etc. Analysis can either be done directly in LabVIEW, or with third party software such as Matlab, HiQ, or C
  • 6. LV 6 Present Anywhere Presentation with LabVIEW • LabVIEW includes the following tools to help you present your data: • On your machine - Graphs, Charts, Tables, Gauges, Meters, Tanks, 3D Controls, Picture Control, 3D Graphs (Windows Only), Report Generation (Windows Only) • Over the Internet - Web Publishing Tools, Datasocket (Windows Only), TCP/IP, VI Server • Enterprise Connectivity Toolset - SQL Tools (Databases), Internet Tools (FTP, E-mail, Telnet, HTML) Presentation with LabVIEW can be done on your PC or over a network, and you can use third party software like Excel, or DIAdem
  • 7. LV 7 Introduction to LabVIEW You Will Learn: A. What a virtual instrument (VI) is B. The LabVIEW environment C. LabVIEW Help Options
  • 8. LV 8 Start » All Programs » National Instruments LabVIEW 8.0 Startup Screen: Start from a Blank VI: New»Blank VI Start from an Example: Examples»Find Examples… » or Open and Run LabVIEW
  • 9. LV 9 Each VI has 2 Windows Front Panel • User Interface (UI) – Controls = Inputs – Indicators = Outputs Block Diagram • Graphical Code – Data travels on wires from controls through functions to indicators – Blocks execute by Dataflow LabVIEW Programs Are Called Virtual Instruments (VIs)
  • 10. LV 10 • Recommended: Automatic Selection Tool • Tools to operate and modify both front panel and block diagram objects Operating Tool Positioning/Resizing Tool Labeling Tool Wiring Tool Tools Palette Automatic Selection Tool Automatically chooses among the following tools:
  • 11. LV 11 Run Button Continuous Run Button Abort Execution Execution Highlighting Button Additional Buttons on the Diagram Toolbar Status Toolbar Retain Wire Values Button Step Function Buttons
  • 12. LV 12 Creating, Editing, & Debugging a VI A. How to Create VIs B. How to Edit VIs C. How to Debug VIs You Will Learn:
  • 13. LV 13 Creating a VI Front Panel • Numeric controls and indicators • Boolean controls and indicators • Configuring controls and indicators – Use shortcut menus – Parts have different menus Digital Control Digital Indicator Labels Increment Buttons Boolean Control Boolean Indicator
  • 14. LV 14 Accessing Shortcut Menus Right-click on the label for its shortcut menu Right-click on the digital display for its shortcut menu
  • 15. LV 15 Terminal pattern for the Add Function and the Subtract function (three node terminals). Creating a VI Block Diagram NodesWires Control Terminals Diagram Window Panel Window Indicator Terminals
  • 16. LV 16 Wiring a VI Block Diagram Hot Spot Tools to Help Wiring - Automatic Wiring - Tip Strips - Right-click on terminals and select Show Terminals - Context Help Window Scalar 1D Array Numeric Boolean String Orange (floating point) Blue ( integer) Green Purple 2D Array
  • 17. LV 17 Exercise 1 Students build Convert C to F.vi * This VI will be used in a later exercise
  • 18. LV 18 Debugging Techniques • Finding Errors • Execution Highlighting • Probe Click on broken Run button Window showing error appears Click on Execution Highlighting button; data flow is animated using bubbles. Values are displayed on wires. Right-click on wire to display probe and it shows data as it flows through wire segment You can also select Probe tool from Tools palette and click on wire
  • 19. LV 19 Debugging Techniques • Breakpoints • Step Into, Over, and Out buttons for Single Stepping Click on Step Into button to enable single stepping Once Single Stepping has begun, the button steps into nodes Click on Step Over button to enable single stepping or to step over nodes Click on Step Out button to step out of nodes Select Breakpoint tool from Tools palette and click on wire or node where you want execution to pause
  • 20. LV 20 Exercise Students modify and run Debug Exercise (Main).vi (Uses Debug Exercise (Sub).vi)
  • 21. LV 21 Creating a SubVI A. What a SubVI is B. How to create the icon and connector C. How to use a VI as a subVI You Will Learn:
  • 22. LV 22 SubVI Example – Calculating Slope
  • 23. LV 23 Creating the Icon • Right-click in the icon pane (Panel or Diagram) and select “Edit Icon…” option
  • 24. LV 24 Creating the Connector Right-click in the icon pane (Panel only)
  • 25. LV 25 Creating the Connector - cont. Click
  • 26. LV 26 The Connector Pane • The terminal colors match the data types to which they are connected • Click on the terminal to see its associated front panel object
  • 27. LV 27 Exercise 2 Students build icon and connector for Convert C to F.vi *This VI will be used in a later exercise.
  • 28. LV 28 Using the VI as a SubVI • Changes made to subVI saved in memory until saved to disk • Calling subVIs – Functions >>Select a VI… OR – Drag icon onto target diagram
  • 29. LV 29 Help and Classifying Terminals • Context Help for subVIs • Classify inputs and outputs: How displayed in Context Help Window Required - Bold label Recommended - Normal text Optional - Visible or wire stubs shown
  • 30. LV 30 Documenting the VI • Document VIs - VI Properties>>Documentation • Document objects - Description and Tip... VI Documentation Description and Tip
  • 31. LV 31 Exercise 3 Students build Thermometer.vi *This VI will be used in a later exercise.
  • 32. LV 32 The Create SubVI Option • Enclose area to be converted into a subVI • Select Create SubVI from the Edit Menu
  • 33. LV 33 Loops and Charts A. About While Loops B. About waveform charts D. About For Loops You Will Learn:
  • 34. LV 34 While Loop Do (Execute diagram inside Loop) While Condition is TRUE 1. Select While Loop 2. Enclose code to be repeated 3. Drop or drag additional nodes and then wire
  • 35. LV 35 Select the Loop Condition • Right-click on Conditional Terminal to define when the loop stops Iteration Terminal Conditional Terminal
  • 36. LV 36 Waveform Charts • Selected from the Controls >> Graph subpalette
  • 37. LV 37 Customizing Charts and Graphs • Plot Legend (color, point style, line style, etc.) • Digital Display • Scrollbar • Customize the X and Y Axes • Graph Palette • Scale Legend
  • 38. LV 38 Wiring to Charts • Single-Plot Chart • Multiple-Plot Chart
  • 39. LV 39 Exercise 4 Students build Temperature Monitor.vi *This VI will be used in a later exercise.
  • 40. LV 40 For Loop • In Structures subpalette of Functions palette • Enclose code to be repeated and/or resize and add nodes inside boundary • Executes diagram inside of loop a predetermined number of times Count terminal (Numerical input)
  • 41. LV 41 Numeric Conversion • Numeric defaults to double precision (8 bytes) or long integer (4 bytes) • LabVIEW automatically converts to different representations • Gray coercion dot on terminal indicates conversion
  • 42. LV 42 Arrays, Graphs, and Clusters A. About arrays B. About generating arrays with loops C. Some basic array functions D. What polymorphism is E. Using graphs to display data You Will Learn:
  • 43. LV 43 Arrays • Collection of data elements that are of same type • One or more dimensions, up to 2 elements per dimension • Elements accessed by their index • First element is index 0 31 index 10-element array 1.2 3.2 8.2 8.0 4.8 5.1 6.0 1.0 2.5 1.7 0 1 2 3 4 5 6 7 8 9 2D array Five-row by seven column array of 35 elements 0 1 2 3 4 5 6 0 1 2 3 4
  • 44. LV 44 Array Controls and Indicators Add Dimension for 2D arrays 1. Select the Array Shell from the Controls palette 2. Place data object inside shell
  • 45. LV 45 Creating Array Constants 1. Select Array Constant shell from the Array subpalette 2. Place the data object in the array shell
  • 46. LV 46 Creating and Using Arrays • Auto-Indexing – loops accumulate arrays at their boundaries • For Loops auto index by default; While Loops do not
  • 47. LV 47 Creating 2D Arrays • Inner loop creates column elements • Outer loop stacks them into rows
  • 48. LV 48 Common Array Functions Array Size Initialize Array Array Subset
  • 49. LV 49 The Build Array Function Building a higher dimension array Concatenate Inputs (default) Appending an element
  • 50. LV 50 The Index Array Function Extracting an Element Extracting a Row
  • 51. LV 51 Polymorphism • Function inputs can be of different types • All LabVIEW arithmetic functions are polymorphic • Run Polymorphism Example.vi Scalar + Scalar Array + Scalar Combination Result Scalar Array Array 1 4 2 2 4 6 7 5 2 7 Array + Array 3 2 5 1 4 2 Array + Array 1 4 2 3 2 5 7 Array3 6 4 4 6 7
  • 52. LV 52 Graphs • Selected from the Graph subpalette • Waveform Graph – Plot an array of numbers against their indices • XY Graph – Plot one array against another Plot Legend (point and line styles) Graph Palette Scale Legend
  • 53. LV 53 Single-Plot Waveform Graphs Uniform X axis - initial X = 0.0, delta X = 1.0 Uniform X axis - you specify point spacing
  • 54. LV 54 Exercise 5 Students build Temperature Analysis.vi
  • 55. LV 55 Case and Sequence Structures A. About Case structures B. About Sequence structures D. How to replace Sequence structures You Will Learn:
  • 56. LV 56 Case Structures • In the Structures subpalette of Functions palette • Enclose nodes or drag them inside the structure • Stacked like a deck of cards, only one case visible
  • 57. LV 57 Boolean and Numeric Cases Note: all possible outputs of the Case structure must be wired
  • 58. LV 58 Sequence Structures • In the Structures subpalette of Functions palette • Executes diagrams sequentially, Frame 0 (0..x), where x is the total number of frames • Stacked like a deck of cards, only one frame visible
  • 59. LV 59 Sequence Locals • Pass data from one frame to future frames • Created at the border of the Sequence structure Sequence local created in Frame 1 Data not available Data available