labview intro
TRANSCRIPT
-
8/6/2019 LabVIEW Intro
1/61
1
-
8/6/2019 LabVIEW Intro
2/61
2
What Youll Do Today
Learn LabVIEW fundamentals
Acquire temperature signal
Output warning light based on alarm level
Write data to file
-
8/6/2019 LabVIEW Intro
3/61
3
National Instruments at a Glance
$0
$100
$200
$300
$400
$500
$600
$700
$800
'77 '79 '81 '83 '85 '87 '89 '91 '93 '95 '97 '99 '01 '03 '05 '07
Net Revenue in Millions
Leaders in Computer-BasedMeasurement and Automation
Long-term Track Record ofGrowth and Profitability
Record Revenue: $820M in 2008
Fortune 100 Best Companies toWork For ten years in a row
More than 4,900 employees;operations in 40+ countries
Founded in 1976 with focus onInstrument Control
LabVIEW 1.0 released in 1986
NI HQ
-
8/6/2019 LabVIEW Intro
4/61
4
Virtual Instrumentation with LabVIEW
Automated
Test
Industrial
Embedded
Software-defined
behavior
Modular
I/O
-
8/6/2019 LabVIEW Intro
5/61
5
Virtual Instrumentation Case Study
Application
Boeing used LabVIEW and 7 PXI chassis to
collect over 300 channels of acoustic data
simultaneously in their research todecrease noise during takeoff
NI Products
LabVIEW, PXI
"Using NI software and hardware, we were able to
create a high-end, low-cost system that could distribute the acquisition system across multiple chassis, tightly
synchronize all channels, provide high channel count with full bandwidth on all channels simultaneously, and
allow virtually unlimited channel-count expansion.
-- James Underbrink, Boeing Aero/Noise/Propulsion Laboratory
-
8/6/2019 LabVIEW Intro
6/61
6
What is LabVIEW?
-
8/6/2019 LabVIEW Intro
7/617
LabVIEW is a Programming Language
Graphical Programming Data types
Structures (i.e. loops, case, event handling)
Standard functions (i.e. File I/O)
Re-use external code
Compiles to machine code
Automatic multithreading
-
8/6/2019 LabVIEW Intro
8/618
LabVIEW is a Development Environment
Debugging tools Assistants
Configurable functions
I/O Finder Easy UI Development
Software Engineering Tools
Performance Tools
-
8/6/2019 LabVIEW Intro
9/619
LabVIEW Has Built-in Engineering Libraries
In-line and off-line analysis and control Signal processing
Analysis and filtering
Complex math PID
Vision
Motion
-
8/6/2019 LabVIEW Intro
10/61
-
8/6/2019 LabVIEW Intro
11/6111
Exercise: Open and Run Final Application
Explore final application
Acquire, analyze and display temperature signal
-
8/6/2019 LabVIEW Intro
12/6112
LabVIEW Fundamentals
-
8/6/2019 LabVIEW Intro
13/6113
The LabVIEW EnvironmentVI = program or function
Front Panel = user interface Block Diagram = code
-
8/6/2019 LabVIEW Intro
14/61
-
8/6/2019 LabVIEW Intro
15/61
15
Finding Front Panel Objects
or
Right-click on Front Panel
Browse by object hierarchy
Press to bring up
Search by object name
Controls Palette
Controls Quick Drop
-
8/6/2019 LabVIEW Intro
16/61
16
Functions and Express VIs
Configuration Based
Express VI
Standard VIs
-
8/6/2019 LabVIEW Intro
17/61
-
8/6/2019 LabVIEW Intro
18/61
-
8/6/2019 LabVIEW Intro
19/61
19
Execution Control Structures
While Loop For Loop
Run until stop
condition metRun N times
Allow same piece of code to run multiple times
Exit conditions different for each
-
8/6/2019 LabVIEW Intro
20/61
20
Finding Block Diagram Functions
or
Functions Palette
Functions Quick Drop
Right-click on Block Diagram
Browse by object hierarchy
Press ctrl + space to bring up
Search by object name
-
8/6/2019 LabVIEW Intro
21/61
21
Instructor Demo: Creating a Basic VI
Use basic LabVIEW objects
Simulate signal and display
-
8/6/2019 LabVIEW Intro
22/61
22
Exercise: Simulate Signal to Graph
Simulate various signals
Write to Graph
-
8/6/2019 LabVIEW Intro
23/61
23
Built-in Programming Assistance
Highlight Execution
Block Diagram Cleanup
Context Help
-
8/6/2019 LabVIEW Intro
24/61
24
Instructor Demo: Using Help Tools
Use Highlight Execution, Context Help and
Block Diagram Cleanup
-
8/6/2019 LabVIEW Intro
25/61
25
Data Acquisitionwith LabVIEW
-
8/6/2019 LabVIEW Intro
26/61
26
PC-Based Data Acquisition (DAQ)
-
8/6/2019 LabVIEW Intro
27/61
27
NI DAQ Platforms
PCI PXI
USBWireless
CompactDAQ
One application,
multiple targets
-
8/6/2019 LabVIEW Intro
28/61
28
Todays DAQ System
Hi-Speed USB 2.0
Mix and Match
over 50
modules
Hot-swappable modulesDirect sensor
connectivity NI CompactDAQ
Built-in Signal
Conditioning
-
8/6/2019 LabVIEW Intro
29/61
30
Exercise: Taking a Basic Measurement
Acquire temperature signal Write to graph
-
8/6/2019 LabVIEW Intro
30/61
31
Analysis and
Signal Processing
-
8/6/2019 LabVIEW Intro
31/61
32
Signal Processing & Analysis Waveform Generation Waveform Conditioning
Waveform Monitoring
Waveform Measurements
Signal Generation
Signal Operations
Windows
Digital Filters
Spectral Analysis
Transforms
Point-by-Point
Mathematics Numeric Elementary and Special Functions
BLAS/LAPAC-based Linear Algebra
Curve Fitting
Interpolation / Extrapolation
Probability and Statistics
Optimization
Ordinary Differential Equations
Geometry
Polynomial
Formula Parsing 1D & 2D Evaluation
Calculus
LabVIEW Signal Processing, Analysis and Math
-
8/6/2019 LabVIEW Intro
32/61
33
Using Analysis Functions
Configuration Based
Express VIs
Programmatic,
Low-Level VIs
Text-based
MathScript Node
-
8/6/2019 LabVIEW Intro
33/61
35
Exercise: Add Analysis and Output
Acquire temperature signal Average and monitor
Output based on alarm value
-
8/6/2019 LabVIEW Intro
34/61
-
8/6/2019 LabVIEW Intro
35/61
38
Data Visualization and CommunicationVisualization
Built-in user interface objects
Charting and graphing capabilities
Remote application control
Reporting and Data Storage
File I/O functionality
HTML reports for the Web
Microsoft Word and Excel reports
-
8/6/2019 LabVIEW Intro
36/61
39
LabVIEW Supported Storage Types
ASCII
Binary
HTML
XML
LVM
TDM(S) *
Excel
Word
Datalog
Databases
-
8/6/2019 LabVIEW Intro
37/61
41
Exercise: Write to File
Acquire temperature signal
Average and monitor
Output based on alarm value
Write to File
-
8/6/2019 LabVIEW Intro
38/61
42
Next Steps
-
8/6/2019 LabVIEW Intro
39/61
43
Worldwide LabVIEW User Community
Over 50,000 members on award-
winning NI Discussion Forums
NI and LabVIEW user-contributed
blogs
More than 100 LabVIEW UserGroups
Third-party community web sites in
over 15 languages
Hundreds of third-party add-ontools on the LabVIEW Tools Network
b b d
-
8/6/2019 LabVIEW Intro
40/61
44
Learn More about NI LabVIEW and
NI DAQ Systems
Check out additional LabVIEW exercises for
Automated Test, Industrial Measurement
and Control and Embedded:www.ni.com/labview/whatis
View DAQ product specs and demos:
www.ni.com/daq
http://www.ni.com/labview/whatishttp://www.ni.com/daqhttp://www.ni.com/daqhttp://www.ni.com/labview/whatis -
8/6/2019 LabVIEW Intro
41/61
45
Software Maintenance and Support
Membership in a National Instruments software maintenance and support
program allows you to:
Receive software updates and maintenance releases automatically
Enjoy direct access to technical support from NI applications
engineers
Access special online software training modules that highlight
features, application uses, and development best practices
Visit ni.com/services to learn more
-
8/6/2019 LabVIEW Intro
42/61
46
Training and Certification
Together, the National Instruments training and certification programs deliver the
fastest, most certain route to increased proficiency and productivity using NI software
and hardware.
NI Training: Build Your Knowledge
NI training helps you build the skills to
more efficiently develop robust,
maintainable applications. We provide
several training options includingclassroom, self-paced, online, or on-site
training at your facility.
NI Certification: Validate Your Expertise
NI certification confirms your technical growth
and skill. This professional certification is ideal
for differentiating yourself from the competition
and making your own informed hiring andoutsourcing decisions.
Visit ni.com/training to learn more
-
8/6/2019 LabVIEW Intro
43/61
47
LabVIEW Hands-On Seminar
Michael [email protected]
Yusuf Cavdarli
mailto:[email protected]:[email protected]:[email protected]:[email protected] -
8/6/2019 LabVIEW Intro
44/61
48
Multicore
Programming
-
8/6/2019 LabVIEW Intro
45/61
49
LabVIEW automatically divides each application into multipleexecution threads (introduced in 1998 with LabVIEW 5.0)
Parallel code paths will execute in unique threads
Automatic Multithreading in LabVIEW
thread
thread
thread
-
8/6/2019 LabVIEW Intro
46/61
50
LabVIEW and Multicore
There was no need to rewrite our applicationfor the new multicore
processing platforms .
- Scott Sirrine, Eaton Truck Division
Application:Eaton Corp. created a portable in-vehicle test
system for truck transmissions. Using the same
LabVIEW code on multicore processors
increased their overall throughput without having
to change application code.
NI Products:LabVIEW, USB DAQ, CAN
-
8/6/2019 LabVIEW Intro
47/61
51
LabVIEW Modules
and Toolkits
-
8/6/2019 LabVIEW Intro
48/61
52
LabVIEW Real-Time Module
Rapidly developdeterministicapplications withgraphical programming
Easily architectdistributed control andmonitoring systems
Eliminate time spentintegrating diverse I/O
-
8/6/2019 LabVIEW Intro
49/61
53
LabVIEW Datalogging and Supervisory
Control Module
Graphical development fordistributed monitoring andcontrol systems
Trend real-time and historicaldata
Log data from any networkedI/O to a historical database
Monitor and log alarms andevents
Network LabVIEW Real-Time
targets and OPC devices Add security to LabVIEW user
interfaces
-
8/6/2019 LabVIEW Intro
50/61
-
8/6/2019 LabVIEW Intro
51/61
55
Create custom human-machine interface (HMI) applications for
the NI TPC-2006 and other Windows CE devices
NI TPC-2006
LabVIEW Touch Panel Module
-
8/6/2019 LabVIEW Intro
52/61
56
LabVIEW Statechart Module
Statecharts provide high-level abstraction for state
based applications
Simple semantics represent complex systems
Self-documenting design
Integrate statecharts into existing LabVIEWapplications
Generate code for desktop, Real-time, FPGA, and
embedded targets
b bil d l
-
8/6/2019 LabVIEW Intro
53/61
57
Handheld Data Acquisition and Instrument
Control
Communicate using 802.11, Bluetooth, SMS Text
Messaging, IrDA and serial protocols
Easily connect to distributed applications using
shared variables
LabVIEW Mobile ModuleTake LabVIEW With You
NI Vi i D l M d l
-
8/6/2019 LabVIEW Intro
54/61
58
NI Vision Development Module
LabVIEW programming libraries formachine vision and image processing
Includes Vision Assistant
Prototypes and benchmarks applications
Generates complete code for LabVIEW,Visual Basic, and C
Hundreds of tools to:
Enhance images Check for presence
Locate features
Identify parts
Measure objects
-
8/6/2019 LabVIEW Intro
55/61
59
Motion Control with LabVIEW
NI Motion Assistant
Interactive environment with 3D visualization
Ready-to-run LabVIEW or C code creation Easy trapezoidal or S-curve velocity profile
implementation
Teach pendant for easy prototyping
NI SoftMotion Controller for CANopen and
IEEE 1394 Use LabVIEW and NI Motion Assistant to program
distributed motion control applications
Compatible with intelligent CANopen drives fromCopley and IEEE 1394 drives from ORMEC
NI SoftMotion Development Module
Develop custom motion controllers in LabVIEW Real-Time or LabVIEW FPGA
Use trajectory generation, spline interpolation,position, velocity control, and encoderimplementation VIs
L bVIEW S d d Vib ti T lkit
-
8/6/2019 LabVIEW Intro
56/61
60
LabVIEW Sound and Vibration Toolkit
10 Express VIs
Fractional Octave Analysis withWeighting
Vibration Level with Single orDouble Integration
Sound Level with A-, B-, C-
Weighting Power Spectrum
Zoom Power Spectrum
Frequency Response
Peak Search
Power in Band
Limit Testing
L bVIEW O d A l i T lkit
-
8/6/2019 LabVIEW Intro
57/61
61
LabVIEW Order Analysis Toolkit
Gabor order tracking
algorithm analyzes signalsfrom rotating machinery
Resampling order analysis for
online condition monitoring
Flexible order energy
selection in the joint time-
frequency domain
Plot order versus time or RPM
Order extraction tools
separate order-specific signalcomponents
Digital and analog tachometer
signal processing
PID C t l T lkit
-
8/6/2019 LabVIEW Intro
58/61
62
PID Control Toolkit
PID Control
Autotuning
Gain scheduling
Fuzzy Logic
Control strategies Decision making
R G i T lki f Mi f Offi
-
8/6/2019 LabVIEW Intro
59/61
63
Report Generation Toolkit for Microsoft Office
Programmatically create and editreports in Microsoft Word and
Excel
Populate report templates
Manage report layout, format,and appearance
E-mail reports and run macros
Express VI included
L bVIEW Ad d Si l P i T lkit
-
8/6/2019 LabVIEW Intro
60/61
64
LabVIEW Advanced Signal Processing Toolkit
Time-Frequency Analysis
Time-Series Analysis
Wavelet and filter bank
design
Applications
Automotive
Biomedical
Seismology
Radar/Sonar
D t b C ti it T lkit
-
8/6/2019 LabVIEW Intro
61/61
Database Connectivity Toolkit
Insert, select data from OLE DB, ODBC databases
Microsoft Access, SQL Server, Oracle, etc.
Create, drop tables
Save records in XML format
Execute SQL queries
Immediate, parameterized
Execute stored procedures
Accept, reject multiple operations (transactions)