Hands-On Introduction To LabVIEW and Data Acquisition With NI CompactDAQ PDF
Hands-On Introduction To LabVIEW and Data Acquisition With NI CompactDAQ PDF
uk.ni.com
ireland.ni.com
Agenda
What is Data Acquisition?
Components of a Data Acquisition System
Introduction to LabVIEW and DAQ Hardware
Bridging the Hardware/Software gap with DAQmx
Practicing concepts with hands-on measurement exercises
uk.ni.com
ireland.ni.com 2
What is Data Acquisition?
uk.ni.com
ireland.ni.com
Why Measure?
Engineers need to determine system behavior to optimize
performance
Signals from sensors indicate how the system is
operating
Engineers can use that information to modify
performance
uk.ni.com
ireland.ni.com 4
What Is Data Acquisition (DAQ)?
uk.ni.com
ireland.ni.com 5
What Is Data Acquisition (DAQ)?
uk.ni.com
ireland.ni.com 6
Components of a DAQ System
uk.ni.com
ireland.ni.com
Components of a DAQ System
uk.ni.com
ireland.ni.com 8
Components of a DAQ System
uk.ni.com
ireland.ni.com 9
Sensor Overview
Converts physical phenomena into a measurable electrical signal
Transducer
or
Sensor
Physical Signal
Phenomena
uk.ni.com
ireland.ni.com 10
Sensor Examples
Phenomena Transducers/Sensors Electrical Characteristics
Temperature Thermocouples, resistive Low voltage output, nonlinear
temperature devices (RTDs), Low resistance, nonlinear
thermistors
uk.ni.com
ireland.ni.com 12
Signal Conditioning
Improves a signal that is difficult for your DAQ device to
measure
Not always required
Signal
Conditioning
uk.ni.com
ireland.ni.com 13
Signal Conditioning Examples
uk.ni.com
ireland.ni.com 14
Signal Classification
Analog Digital
Shape
State Rate
Level Frequency
uk.ni.com
ireland.ni.com 15
The Three Rs of Data Acquisition
Original Waveform
6-Bit Resolution
3-Bit Resolution
uk.ni.com
ireland.ni.com 16
The Three Rs of Data Acquisition
Original Waveform
Range
of
102 V to -10
-2 VV
3-Bit Resolution
uk.ni.com
ireland.ni.com 17
The Three Rs of Data Acquisition
Sampling Rate = 11 Hz
Original Waveform (10 Hz)
Sampling Rate = 25 Hz
uk.ni.com
ireland.ni.com
Sampling Rate
18
= 100 Hz
Components of DAQ System
uk.ni.com
ireland.ni.com 19
LabVIEW and DAQ Hardware
uk.ni.com
ireland.ni.com
Architecture of an Integrated Measurement System
LabVIEW is system design software that provides
engineers and scientists with the tools needed to
create and deploy measurement and control systems
through unprecedented hardware integration.
uk.ni.com
ireland.ni.com 21
LabVIEW Building Blocks Are Called Virtual Instruments (*.VI)
Customizable Indicators
Used to convey outputs to a user
• Graphs and Charts
• Progress Bars
• Gauges and Meters
• LEDs
• Numerics
• Strings and Paths
• …and more
Customizable Controls
Used to receive input from a user
• Knobs and Dials
• Sliders
• Buttons
• Numerics
• Strings and Paths
• …and more
uk.ni.com
ireland.ni.com 23
Exploring a LabVIEW Block Diagram
Parallelism and
Multithreading
Signal Analysis
uk.ni.com
ireland.ni.com 24
With LabVIEW, You Can Program the Way You Think
uk.ni.com
ireland.ni.com 25
With LabVIEW, You Can Program the Way You Think
uk.ni.com
ireland.ni.com
Bridging the Hardware and Software Gap with NI-DAQmx
uk.ni.com
ireland.ni.com 30
Measurement & Automation Explorer (MAX)
Free, unified configuration management utility for NI hardware
Task and
Channel Creation
Configuration and
Connection
Management
Simulated Devices
Built-In Signal
Connection
Diagrams
uk.ni.com
ireland.ni.com 31
NI-DAQmx API: Configuration-Based DAQ Assistant
Enables quick, configuration-
based measurements
uk.ni.com
ireland.ni.com 32
Hands-On Exercises
Select one of the following exercises:
uk.ni.com
ireland.ni.com 33