Create Maximum Optimization and Efficiency for Your Measurement and Automation Applications Introduction to NI LabVIEW and Fundamentals in Data Acquisition with NI-DAQ Pham Quoc Hung
Trang 2Create Maximum Optimization and Efficiency for Your Measurement and
Automation Applications
Introduction to NI LabVIEW and Fundamentals
in Data Acquisition with NI-DAQ
Pham Quoc Hung
Field Systems Engineer Tel: 0932529288 Email: quochung.pham@ni.com
Trang 3What You’ll See Today
• Overview of National Instruments
• Virtual Instrumentation and Graphical System Design
• LabVIEW graphical programming fundamentals
• Ease of Data Acqusition (DAQ) with NI
• Application Areas
• Web-based Remote Monitoring
• Next Steps
Trang 4National Instruments at A Glance
• Leaders in computer-based
measurement and automation
• Long-term track record of
growth and profitability
• $1.02 B USD revenue in 2011
• More than 16% of revenue is
invested into R&D
• More than 6,000 employees;
operations in 40+ countries
• Fortune’s 100 Best Companies to
Work For 13 Consecutive Years
Trang 6Low-Cost Modular Measurement and
Control Hardware Productive Software Development Tools Systems Platforms Highly Integrated
Used By Engineers and Scientists for Test, Design, and Control
What We Do
Trang 7Empowering Users Through Software
Providing unique differentiation and competitive advantage
LEGO ® MINDSTORMS ® NXT
“the smartest, coolest toy
of the year”
CERN Large Hadron Collider
“the most powerful instrument on earth”
Trang 8Embedded Devices and Machines
Display
Drives and Motors Controller and I/O
Control Software
Trang 9Diversity of Applications
No Industry >15% of Revenue
Electronics Semiconductors Computers
Advanced Research
Petrochemical Food
Processing
Textiles
Automotive Telecom
ATE Military/
Aerospace Academic
Trang 10Who are NI Customers?
More than 30,000 companies
More than 90% of Fortune 500 manufacturing companies
Trang 11What is Virtual Instrumentation?
Customer-Defined PC-Based Measurement and Automation Solutions
Traditional Vendor-Defined
Instruments
Processor RAM ROM
Display
Power Supply Hard Disk
Trang 12Virtual Instrumentation
“To do for test and measurement what the spreadsheet did for financial analysis.”
Trang 13Graphical System Design
National Instruments Vision Evolved
Industrial & Embedded Test & Measurement
Real-time Measurements Embedded Monitoring Hardware-in-the-loop
“To do for embedded what the PC did
for the desktop.”
“To do for test and measurement
what the spreadsheet did for financial
analysis.”
Trang 15Virtual Instrumentation with LabVIEW
Automated Test
Trang 162009
2010
LabVIEW 2010
Advanced Timing FPGA IP
2011
Trang 17Virtual Instrumentation Case Study
Application
Boeing used LabVIEW and 70 PXI chassis to
collect over 400 channels of acoustic data
simultaneously in their research to decrease
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
Trang 18Virtual Instrumentation Case Study
448-channel Microphone Array
200 Hz
400 Hz
Airframe Noise
Trang 19Oil Wells Vibration Monitoring for Vietsovpetro
• Applications: Vietsovpetro wants to drill
more oil wells between existing wells to
maintain output level when some existing
wells are depleted This system is to
monitor the vibration during drilling to
alert operator if drilling shaft is about to
touch the existing wells System was
developed by NI partner AIC
http://sine.ni.com/cs/app/doc/p/id/cs-14201
Trang 20What is LabVIEW?
Trang 21Programming Approaches
Analysis Libraries
Deployment Targets
A Highly Productive Graphical Development Environment for Engineers and Scientists
APIs and Drivers Custom User Interfaces
Technology Abstractions
Trang 22LabVIEW is a Programming Language
• Graphical Programming
• Data types
• Structures (i.e loops, case, event handling)
• Standard functions (i.e File I/O)
• Reuse external code
• Compiles to machine code
• Automatic multithreading
Trang 23LabVIEW is a Development Environment
Trang 24LabVIEW Has Built-in Engineering Libraries
• In-line and off-line analysis and control
Trang 25LabVIEW Easily Connects to Hardware I/O
• More than 9,000 instruments from over 350 vendors
• PCI, PCI Express (PCIe), PXI, PXI Express (PXIe), USB, Ethernet, serial, GPIB, and CAN devices
• Modular data acquisition hardware from DC to 26.5 GHz
• Motion control stages
• Cameras
• Hundreds of PLCs
Trang 26LabVIEW Fundamentals
Trang 27The LabVIEW Environment
“VI” = program or function
Trang 28Demo 1: Simple Front Panel and Block Diagram
• Show LabVIEW Graphical Programming Environment
• Explore the Front Panel and Block Diagram
Trang 29Controls & Indicators
Trang 30Finding Front Panel Objects
or
• Press <ctrl + space> to bring up
• Search by object name
Controls Palette
Controls Quick Drop
Trang 31Functions and Express VIs
Configuration Based
Express VI Standard VIs
Trang 32Dataflow Programming
1
2 Comparison waits until all inputs are present, then executes
Both Simulate Signal Express VIs execute simultaneously
Trang 33Wires and Data Types
• 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 dashed
black line with a red X in the middle
Trang 34Execution Control Structures
Run until stop
• Allow same piece of code to run multiple times
• Exit conditions different for each
Trang 35Finding 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
Trang 36Demo 2: Simulate Signal to Graph
• Simulate various signals
• Display on Graph
Trang 37Built-in Programming Assistance
Highlight Execution Block Diagram Cleanup Context Help
Trang 38Data Acquisition with LabVIEW
Trang 39PC-Based Data Acquisition (DAQ)
Trang 40NI DAQ Platforms
One application, multiple targets
Trang 41Today’s DAQ System
Trang 42Demo 3: Measurement and Automation Explorer (MAX)
• Explore MAX and located/test connected Devices
Trang 43CompactDAQ Door Rattle Noise Analyzer
“We need a quote here to highlight how great LabVIEW, cDAQ and S&V are for making advanced portable solutions.”
- Youngkey Kim, CEO, SM Instruments
NI Products
LabVIEW, CompactDAQ
Application
SM Instruments used LabVIEW and
CompactDAQ to design a portable “Sound
Camera” to analyze unwanted noise in
automobile testing
Trang 44Demo 4a: Taking a Basic Measurement
• Acquire temperature signal
• Display to graph
Trang 45Demo 4b: Basic Measurement with Simple Limit Threshold Control
• Acquire temperature signal
• Do Limit Threshold and trigger control output if over limit
Trang 46Application Areas
Green Engineering
Solving Environment Challenges with
Graphical System Design
Trang 47Measure It and Fix It
The Engineering Innovation Process
Measure Water and Air Quality Measure CO2 and NOx Emissions
Measure Power Usage
Fix Old Engine Controllers Fix Wasteful Processes Fix New Sources of Energy
Measure Torque
Measure Horsepower
Measure Fuel consumption
Fix Spark and Fuel Timing Fix Stability Control
Fix Reliability Issues
Trang 48“Measure It” for Green Applications
• Acquire environmental data (CO2,
water quality, and temperature)
• Analyze power and energy (electrical
power quality and energy consumption)
• Present results reports
(mercury and NOx regulation compliance)
Trang 49“Fix It” for Green Applications
• Design more efficiently
(more energy efficient products)
• Prototype new technologies
(renewable energy generation)
• Deploy advanced controllers
(optimize existing machinery)
Trang 50“Once you start monitoring something in
an automation system, you know you can
fix things”
- Dave Brandt Electrical Engineer
Trang 51• Green Benefit - Reduced chiller energy consumption by
up to 30%
Chiller Optimization in Tropical Countries
Trang 52• Malaysian based company retrofitting
large-scale, commercial and industrial
air-conditioning systems
• Measuring temperature, humidity,
• Performing calculations based on advanced
control, thermodynamics,
• Fixing excessive electricity use by sending
new and optimized operating instructions to
the chillers
• Green Benefit
Reduced chiller energy consumption by up to
30%
Industrial chillers use approximate 30% of all
electrical power in Taiwan
Chiller Energy Management System
(CEMS)
Trang 53Demo 5: Wireless Monitoring of
Temperature and Solar Panel
output from a solar
Trang 54Power Quality Measurements
• Definition
The ability of a power system to operate loads
without disturbing or damaging them
The ability of loads to operate without disturbing or reducing the efficiency of the power
• Metrics
Flicker, dip/swell/interruption, harmonic, unbalance,
…
Trang 55Reasons of Increased Interest in PQ
Trang 56LabVIEW Power Quality and PMU Pioneer Toolkits
Voltage and Current Power and Energy Power Quality
Three Phase RMS (V and I) Power per Phase Voltage Sag (dip)
THD Three Phase or Total Voltage Swell
Harmonic (up to 64th) Power Factor Impulsive Transient (V + I) Interharmonics (0.5 to 63.5th) Active Power Total Oscillatory Transient (V + I) Voltage Unbalance Active Power Harmonic Overvoltage and undervoltage Frequency Oscillation Apparent Power Total Overcurrent
Flicker Apparent Power Harmonic Phasor Imbalance
DC Portion Reactive Power Three Phase Voltage Harmonic
Reactive Power Harmonic Four Current Harmonic Energy Active Total Harmonic per sec and per cycle Energy Apparent Total and +/- Synchrophasor IEEE-C37.118
Trang 57LabVIEW Power Quality Toolkit
Trang 58Demo 6: Power Quality Measurement with
Trang 59Case Study: Advanced Smart Distribution Switch
• Advanced analytics for distribution automation
• Development and introduction of advanced switching features
• Embedded electrical power measurements and monitoring
• Wireless communication for configuration and file transfer
• Remote updates, configuration and firmware upgrades
Analytics (NI Smart Grid Analyzer)
•833 Samples/Cycle, 24-bit Resolution
•Advanced Embedded Analytics
•Data Storage, 1000+ event captures
•Remote upgrade
•Multi Protocol Communications
Distribution Switch
•Rated Through 38kV
•Vacuum Interruption Technology
•Integrated CTs & Voltage Sensors
•Optional future upgrades
•ANSI / IEEE C37.60
•3-phase protection
Trang 60Sound and Vibration Measurement
System Components
Data Acquisition
Trang 61Application Areas
Structural Health Monitoring
Preventive Infrastructure Test/Monitoring with
Graphical System Design
Trang 62Sensors
Structural Measurement System
Signal Conditioning
A/D
Timing
Data Storage Online Processing
Comm Data
Storage
Data Analysis
Data Presentation, Report Gen
• More options
• MEMS and
more
dynamic
• Integrated signal conditioning
• Higher resolution (24-bit)
• Distributed
• Higher performance; multi core computing
V
Trends
Trang 63PXI SCXI
Internet
Trang 64Lab/Research Instrumentation
• PXI – Modular Instrumentation
PCI eXtensions for Instrumentation
Open; supported by over 60 vendors
Embedded PC controller
High performance ; best of class timing
and synchronization
• SCXI – Signal Conditioning
Front-end signal conditioning for PXI data
Trang 65Large Channel Architecture with PXI/SCXI
• Maximum Scalability
From 4 to 272 simultaneous channels in a single chassis
More than 10,000 synchronized channels in distributed systems
< 0.1 degree phase mismatch at 1 kHz
• Highest Data Throughput and Storage
RAID-0 configurations with 3 TB of storage
• Best measurement performance
24-bit simultaneous A/D & D/A
Trang 66Portable Application: Field Testing of Bridges
• Bridge testing and
• Mode shapes, etc
• Quick setup and
takedown
Strain Gauges
• LabVIEW • CompactDAQ
Trang 67Portable DAQ with C Series
• CompactDAQ System
4-slot or 8-slot for I/O
Over 50 C Series I/O modules available
USB 2.0 / Gigabit Ethernet
• stream data at over 5Ms/s
Includes data logging software
• Single slot options
USB 2.0
Ethernet
Wi-Fi
Trang 68Strain and Vibration Measurements – C Series
• 24-bit resolution ADC; ≥100 dB dynamic range
• ADC per channel, simultaneously sampled
• Anti-aliasing filters
• Smart sensor (TEDS) compatible
• NIST-traceable calibration
• Resistive strain gauges
Programmable excitation levels
Shunt calibration, remote sensing
Trang 69Demo 7: Vibration Monitoring
Trang 70Vibration Monitoring of Meazza Stadium in Milan
Requirements
• High-channel, distributed network
monitoring system
• Structural evaluations, modal
analysis, static and dynamic
measurements, and corrosion
Trang 71Meazza Stadium in Milan
• Structural Measurement Diagnosis and Surveillance
Trang 72Range of NI Machinery Applications
R&D Test Cells Factory Test Field Service,
Data logging
On-line
Trang 74Web Services
Remote Monitoring and Control Technologies
• Introduced with LabVIEW 8.6
• Web services are web APIs
Hosted and executed on a remote system
Accessible via HTTP protocol
Response is typically formatted as XML
• Web services can be called from nearly all programming languages
Trang 75LabVIEW Web Service Architecture
• Separate deployed VI from application
• Communicate via shared variables
• Provide configuration and administrative control
LabVIEW
Application
LabVIEW Web Service
Web Interface
Response Request
Trang 76Web Services and Thin Clients
Web
Web Service
Thin Client Application
HTTP Request
XML Response
Trang 77Demo 8: Real-Life Data Monitoring from iPad/Android
• Using iPad to monitor
real-life data
LabVIEW Dashboard for iPad &
Android
Trang 78VI deploys data via
Web Service
Web Services in LabVIEW
Web Server
Trang 79LabVIEW Web UI Builder
VI deploys data via
Web Service
Use the Web UI Builder for a LabVIEW client application without LabVIEW Run Time
Web Server
Trang 80LabVIEW Web UI Builder
Trang 81ni.com/uibuilder
Trang 82Next Steps
Trang 83Learn More about NI LabVIEW and NI DAQ Systems
• Check out additional LabVIEW materials for
Automated Test, Industrial Measurement and Control and Embedded:
• View DAQ product specs and demos:
Trang 84Worldwide LabVIEW User Community
• Over 50,000 members on award-winning
NI Discussion Forums
• NI and LabVIEW user-contributed blogs
• More than 100 LabVIEW User Groups
• Third-party community web sites in over
15 languages
• Hundreds of third-party add-on tools on
the LabVIEW Tools Network
Trang 85Training 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 including
classroom, 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 and
outsourcing decisions
Visit ni.com/training to learn more
Trang 86To help us continually improve our seminar program, we would very
much appreciate your comments by completing the seminar
feedback form and returning to us after the seminar