sensor measurement fundamentals seriesdownload.ni.com/evaluation/sensorfundamentals... ·...
TRANSCRIPT
ni.com
Sensor Measurement Fundamentals Series
ni.com
Introduction to Data Acquisition Basics and Terminology
Jackie Byrne
Product Marketing Engineer
National Instruments
ni.com
What Is Data Acquisition (DAQ)?
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
ni.com
Why Measure?
• In-vehicle data acquisition is a complex task that provides valuable information about actual on-road performance
• Diverse data needs to be collected from various sources—up to 100 channels including transducers and buses such as CAN may be involved
• Mixed signals: vibration, RPM, strain, temperature, torque, load, pressure, velocity, CAN, and so on
ni.com
What Is Data Acquisition (DAQ)?
ni.com
What Is Data Acquisition (DAQ)?
ni.com
What Is Data Acquisition (DAQ)?
ni.com
Components of a DAQ System
ni.com
Components of a DAQ System
Sensor/Signal DAQ Hardware Computer
ni.com
Sensor Overview
Sensor/Signal DAQ Hardware Computer
Converts physical phenomena into a measurable electrical signal
Transducer or
Sensor
Signal Physical Phenomena
ni.com
Sensor Examples Phenomena Transducers/Sensors Electrical Characteristics
Temperature Thermocouples, resistive temperature
devices (RTDs), thermistors
Low voltage output, nonlinear
Low resistance, nonlinear
Light Vacuum tube, photo sensors Current loop output if current type
(typical 4 to 20 mA)
Sound Microphone Charge output, powered converter
Force and pressure Strain gages, piezoelectric transducers Low resistance, low sensitivity,
nonlinear
Position and
displacement
Potentiometers, linear voltage
differential transformer (LVDT), optical
encoder
LVDTs: Inductive, requires
demodulation
Vibration Accelerometer Charge output, powered converter
pH pH electrodes
Sensor/Signal DAQ Hardware Computer
ni.com
Components of DAQ System
Sensor/Signal DAQ Hardware Computer
ni.com
Signal Conditioning
• Improves a signal that is difficult for your DAQ device to
measure
• Not always required
Noisy, Low-Level Signal Filtered, Amplified Signal
Signal Conditioning
Sensor/Signal DAQ Hardware Computer
ni.com
Transducers/Signals Signal Conditioning
Thermocouple Amplification, linearization, cold-junction
compensation
RTD (resistance temperature
detector)
Current excitation, linearization
Strain gage Voltage excitation, bridge configuration,
linearization
Common mode or high voltage Isolation amplifier
Loads requiring AC switching
or large current flow
Electromechanical relays or solid-state
relays
High frequency noise Lowpass filters
Signal Conditioning Examples
Sensor/Signal DAQ Hardware Computer
ni.com
Sensor/Signal DAQ Hardware Computer
Analog
Rate State Shape
Level Frequency
Digital
Signal Classification
ni.com
The Three Rs of Data Acquisition
Sensor/Signal DAQ Hardware Computer
Resolution Range Rate
3-Bit Resolution
Original Waveform
6-Bit Resolution
ni.com
The Three Rs of Data Acquisition
Sensor/Signal DAQ Hardware Computer
Resolution Range Rate
3-Bit Resolution
Original Waveform Range
of
10 V to -10 V
Range
of
2 V to -2 V
ni.com
The Three Rs of Data Acquisition
Sensor/Signal DAQ Hardware Computer
Resolution Range Rate
Original Waveform (10 Hz)
Sampling Rate = 11 Hz
Sampling Rate = 25 Hz
Sampling Rate = 100 Hz
ni.com
Diversity of NI DAQ
Sensor/Signal DAQ Hardware Computer
Low-Cost Bus-Powered High-
Performance
NI CompactDAQ OEM
PCI/PXI PCI Express/
PXI Express
Ethernet Wireless USB
ni.com
Components of DAQ System
Sensor/Signal DAQ Hardware Computer
ni.com
Why Is Software Important?
Sensor/Signal DAQ Hardware Computer
Total Measurement Application Cost =
Hardware Price + Software Price + Development Costs
Hidden Cost Visible Price
ni.com
Why Is Software Important?
Sensor/Signal DAQ Hardware Computer
Source: National Instruments Survey of Data Acquisition Customers and Prospects, 2005
36%,
Hardware
and Software
Price 64%, Development
Costs
ni.com
Why Is a Driver Important?
At its core, NI-DAQmx is a powerful hardware driver for
controlling data acquisition hardware.
Hundreds of DAQ Devices
DAQ Hardware
USB, PXI Express, PCI Express
Bus
NI-DAQmx
Hardware Driver
LabVIEW, C, .NET
Application Software
Sensor/Signal DAQ Hardware Computer
ni.com
Configuration Versus Programming
Sensor/Signal DAQ Hardware Computer
Configuration Programming
ni.com
Configure
Channel
Configure
Timing
Configure
Triggering
Start
Acquisition
Read
Data
Clear
Task
NI-DAQmx LabVIEW API
Sensor/Signal DAQ Hardware Computer
ni.com
Sensor/Signal DAQ Hardware Computer
NI-DAQmx LabVIEW API
ni.com
Sensor/Signal DAQ Hardware Computer
NI-DAQmx LabVIEW API
ni.com
Sensor/Signal DAQ Hardware Computer
NI-DAQmx LabVIEW API
ni.com
DAQmxCreateAIVoltageChan( taskHandle, “Dev1/ai0”, “”, DAQmx_Val_Cfg_Default,
-10.0, 10.0, DAQmx_Val_Volts, NULL );
DAQmxCfgSampClkTiming( taskHandle, “”, 10000.0, DAQmx_Val_Rising,
DAQmx_Val_FiniteSamps, 1000 );
DAQmxCfgDigEdgeStartTrig( taskHandle, “/Dev1/PFI0”, DAQmx_Val_Rising );
DAQmxStartTask( taskHandle );
DAQmxReadAnalogF64( taskHandle, -1, 10.0, 0, data, 1000, &read, NULL );
printf( “Acquired %d samples. %d”, read );
DAQmxClearTask( taskHandle );
Read Data
Clear Task
Configure Channel
Configure Timing
Start Acquisition
Configure Triggering
Sensor/Signal DAQ Hardware Computer
NI-DAQmx C API
ni.com
Choosing the Best Data Acquisition System for Your
Application
Your DAQ system requires the following:
• Appropriate signal conditioning
• Appropriate resolution
• Suitable sampling rate
• Right type of timing and triggering
• Correct bus
• Best internal calibration technique
• Most effective suite of software analysis/reporting
ni.com
Technologies Behind NI Data Acquisition
Signal Streaming
Leverage the same NI-DAQmx API for communicating across
PCI, PCI Express,
PXI, PXI Express, USB, Ethernet, and WiFi
Timing and Synchronization Technology
System timing controller that provides high-speed digital I/O,
triggering, and synchronization between several modules and
chassis
Isolation
• Varying levels of electrical isolation to improve measurement
accuracy and device performance
• Isolated on a per channel basis, as groups of channels, or as a
complete system
ni.com
ni.com/data-acquisition/