Introduction to NI LabVIEW and Computer-Based Measurements. Elias Nicolas Applications Engineer National Instruments

Similar documents
ni.com Sensor Measurement Fundamentals Series

Measurement & Control of energy systems. Teppo Myllys National Instruments

Developer Techniques Sessions

MECE 3320 Measurements & Instrumentation. Data Acquisition

Signal Conditioning Fundamentals for PC-Based Data Acquisition Systems

Data acquisition and instrumentation. Data acquisition

ELG3336 Design of Mechatronics System

EKT 314/4 LABORATORIES SHEET

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

Lab 2A: Introduction to Sensing and Data Acquisition

RF and Microwave Test and Design Roadshow Cape Town & Midrand

Measurement Studio NI-DAQmx.NET Examples

24-Bit, ks/s Dynamic Signal Acquisition and Generation

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2015 Lecture #5

SPIDER-80SG. General Data Acquisition Device with Strain Gage Measurement. Spider Measurement Solution

Correlation of Voltage and Temperature Measurement

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5

EKT 314/4 LABORATORIES SHEET

PC-based controller for Mechatronics System

USB Dynamic Signal Acquisition

Let`s get SIRIUS! SIRIUS Overview. SIRIUS from Dewesoft. SIRIUS Overview. The new hardware generation makes your measurement more precise!

National Instruments Flex II ADC Technology The Flexible Resolution Technology inside the NI PXI-5922 Digitizer

ni.com Sensor Measurement Fundamentals Series

National Instruments Switches

Things to consider while selecting a Digitizer

DT9838 Strain Measurement Module

DT9838. Strain- and Bridge-Based Measurement Module. Key Features: Bridge Configurations. Analog Input Features

User Guide for TPCX, TPCE, TPCE-LE and TPCE-I

LV-Link 3.0 Software Interface for LabVIEW

ARCHIVES: Benchmarking Single-Point Performance on National Instruments Real-Time Hardware

Burst mode - This is incorporated to simulate simultaneous analog input. Compatible with a range of Application Development Environments

EX1000 Series EX1000A EX1000A-TC EX1016A EX1032A EX1048A EX10SC EX1000A-TCDC RELIABLE DATA FIRST TIME EVERY TIME.

for NI PXI/PXIe User Manual Revision March PVI Systems, Inc. All Rights Reserved.

EMX-1434 APPLICATIONS FEATURES A SMART PXI EXPRESS 4-CHANNEL KSA/S ARBITRARY WAVEFORM GENERATOR

EX CHANNEL ISOLATED THERMOCOUPLE AND VOLTAGE MEASUREMENT INSTRUMENT

2.5 GHz 75 Ω Multiplexer and SPDT Relay Switches

National Instruments Accelerating Innovation and Discovery

CHAPTER 7 HARDWARE IMPLEMENTATION

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT, 250KSPS ADC

SCXI 8-Channel Isolated Analog Input Modules

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

Let`s get SIRIUS! SIRIUS Overview. SIRIUS from Dewesoft. SIRIUS Overview. The new hardware generation makes your measurement more precise!

RX1032 PRECISION TEMPERATURE MEASUREMENTS FOR RUGGED ENVIRONMENTS FEATURES. 32-Channel Thermocouple Measurement System

EDS-400A COMPACT RECORDER. New KYOWA ELECTRONIC INSTRUMENTS CO., LTD.

Portable Multi-Channel Recorder Model DAS240-BAT

Chapter 2 Analog-to-Digital Conversion...

6 1 2-Digit FlexDMM and 1.8 MS/s Isolated Digitizer

Data Sheet. Agilent M9185A PXI Isolated D/A Converter. DISCOVER the Alternatives... Agilent MODULAR Products. 8/16-Channel 16-bit, ±16 V

Agilent U2300A Series USB Modular Multifunction Data-Acquisition Devices

Sefram. Sefram SEFRAM A new family of thermal recorders 6 to 36 channels. Make sure to visit our Website

Data Acquisition and Signal Conditioning

Essential Technologies for Energy Efficiency and Management

Making Basic Strain Measurements

Measurement, Sensors, and Data Acquisition in the Two-Can System

SEFRAM DAS Sefram. Sefram. A new family of paperless recorders 6 to 72 channels, to cover all your applications

Multiple Instrument Station Module

Isolated, Frequency Input 5B45 / 5B46 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Signal Generation in LabVIEW

PC-supported measurement

These specifications apply to the PXIe-5113 with 64 MB and 512 MB of memory.

Faculty of Information Engineering & Technology. The Communications Department. Course: Advanced Communication Lab [COMM 1005] Lab 6.

Moku:Lab. Specifications INSTRUMENTS. Moku:Lab, rev

ThinkRF R5500. Real-Time Spectrum Analyzer. 9 khz to 8 GHz / 18 GHz / 27 GHz. Product Brochure and Technical Datasheet. Featuring

2520 Pulsed Laser Diode Test System

EMX-4350 APPLICATIONS FEATURES A SMART PXI EXPRESS 625 KSA/S 4-CHANNEL DIGITIZER

Q.raxx A101-8 slimline RS / EC

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals

Machine Data Acquisition. Powerful vibration data collectors, controllers, sensors, and field analyzers

A SMART METHOD FOR AUTOMATIC TEMPERATURE CONTROL

ThinkRF R5500. Real-Time Spectrum Analyzer. 9 khz to 8 GHz / 18 GHz / 27 GHz. Product Brochure and Technical Datasheet. Featuring

NEW! AOIP FD5 Advanced Digital Data Logger

FD 5 / 10 / 15. Fast acquisition module with universal synchronized inputs and embedded webserver software

PXI Timing and Synchronization Control

GENERATION OF SIGNALS USING LABVIEW FOR MAGNETIC COILS WITH POWER AMPLIFIERS

Improve asset protection and utilization

Design Implementation Description for the Digital Frequency Oscillator

ANALOG TO DIGITAL CONVERTER ANALOG INPUT

Analyzer and Controller SignalCalc. 900 Series. A member of the

USB-TEMP and TC Series USB-Based Temperature Measurement Devices

VCSO Mechanical Shock Compensation

ni.com Sensor Measurement Fundamentals Series

SIGNAL RECOVERY. Model 7265 DSP Lock-in Amplifier

EX FEATURES. Stand-alone 48-channel unit with built-in Ethernet controller. Built-in bridge completion and Excitation

Stephen Plumb National Instruments

Agilent U2500A Series USB Simultaneous Sampling Multifunction DAQ Devices

The Sampling Theorem:

Training Schedule. Robotic System Design using Arduino Platform

AD9772A - Functional Block Diagram

A DSP IMPLEMENTED DIGITAL FM MULTIPLEXING SYSTEM

FRONTDAQ 20. High speed acquisition module with universal synchronized inputs and embedded webserver software

CompuScope 12501/12502

Analog Signal Conditioning Accessories

Data Acquisition System

Putting It All Together: Computer Architecture and the Digital Camera

IT.MLD900 SENSORS AND TRANSDUCERS TRAINER. Signal Conditioning

FTMS Booster X1 High-performance data acquisition system for FT-ICR MS

Q.raxx A slimline RS / EC Multi Channel System for Thermocouples

CRN: MET-487 Instrumentation and Automatic Control June 28, 2010 August 5, 2010 Professor Paul Lin

Digital to Analog Conversion. Data Acquisition

Transcription:

Introduction to NI LabVIEW and Computer-Based Measurements Elias Nicolas Applications Engineer National Instruments

Today, We ll Explore: The Challenges of Making Measurements Introduction to LabVIEW Fundamentals of Data Acquisition Characteristics of Mixed-Measurement Systems The National Instruments Approach Architecture of a Measurement System History and Philosophy of LabVIEW Gaining LabVIEW Proficiency Essential Data Acquisition Concepts The Basics of Signal Conditioning The Value of National Instruments Hardware Platforms Break Enjoy Coffee and Networking With Peers Uniting Software and Hardware Architecture of the NI-DAQmx Driver Measurement Services and Utilities Exploring and Using the NI-DAQmx API 2

The Challenges of Making Measurements Exploring the Traditional Approach to Measurements

The Origin of Automated Measurements Traditional pen-and-paper approach Redundant circuitry between instruments (e.g., displays) Manual data recording and analysis Error-prone processes Difficult to reproduce or redo 4

Mixed-Measurement Applications Are Diverse Vibration Torque Displacement Pressure Temperature Force Strain 5

Example Application: Air Quality Measurements Potential Sensors Needed: Context GPS Timestamp Position Attitude Altitude Range Finder Environmental Temperature Oxygen Carbon Dioxide Ozone Nitrogen

Sensors, Interfaces, and Signal Conditioning Sensor Interface Conditioning? GPS RS232 No Attitude, Altitude RS232 No LiDAR Ethernet No Temperature Analog Voltage Required O 2, CO 2, O 3, NH 3 Analog Voltage Required 7

Software Provided With Sensors Sensor Software GPS Attitude, Altitude LiDAR Temperature O 2, CO 2, O 3, NH 3 <No Software Provided> 8

With a System Like This, How Do You Accommodate changes in requirements? mixed measurements in a single system? varying connectivity? signal conditioning for sensors? adding or replacing measurements or sensors? incorporating timing, triggering, or synchronization? leveraging emerging technology trends? multiple disparate software environments and APIs? 9

The Human Body A Wonderful Sensing System 10

The Human Body A Wonderful Sensing System Analysis and Decisions 11

National Instruments Strategy: Graphical System Design Your Investment in a Platform-Based Approach to Measurements Scales Across Test Monitor Embedded Control Cyber Physical Industries and Applications Hardware and I/O Devices Desktops and PC-Based DAQ PXI and Modular Instruments NI CompactRIO Open Connectivity With Third-Party I/O 12

Top Benefits of an Integrated Measurement Platform 1. Accelerated Productivity 2. Proven Performance and Accuracy 3. Scalability, Adaptability, and Flexibility 13

Architecture of an Integrated Measurement System Today, we ll learn about three key differentiating components of a National Instruments data acquisition system: Sensor Measurement Device Software Signal Conditioning Analog-to-Digital Converter Driver Software Application Software 14

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. Sensor Measurement Device Software Signal Conditioning Analog-to-Digital Converter Driver Software Application Software 15

The Foundation of LabVIEW: Virtual Instrumentation Automation through software led to a realization about fixed-functionality instrumentation Redundancy: Power Supplies Each separate instrument requires its own power supply to run measurement circuitry that captures the real-world signal. Redundancy: Displays Instrument vendors provide a limitedquality display per instrument, even though monitor technology is far more advanced. Redundancy: Memory PCs can quickly capitalize on a performance boost from a memory upgrade from readily available RAM. Redundancy: Processors Chip manufacturers rapidly enhance processors according to Moore s law, but instruments have fixed processing power. Redundancy: Storage Each instrument duplicates onboard storage even though PC hard drives are plentiful and cost-effective. 16

The Foundation of LabVIEW: Virtual Instrumentation By leveraging COTS PC components, the software becomes the instrument LabVIEW unlocks the power of instrument and data acquisition hardware by capitalizing on the PC industry and abstracting redundant circuitry. 17

The Fundamentals of Data Acquisition (DAQ) The Basics of Making PC-Based Measurements

What Is Data Acquisition (DAQ)? Data acquisition (DAQ) is the process of measuring an electrical or physical phenomenon such as voltage, current, temperature, pressure, or sound with a computer. Compared to traditional measurement systems, PC-based DAQ systems exploit the processing power, productivity, display, and connectivity of industry-standard computers providing a more powerful, flexible, and cost-effective measurement solution. 19

Measurement Error All Measurements Are Technically Inexact Electronic components naturally drift over time and require calibration Manufacturer s specification of measurement uncertainty Effect of Environmental Drift? Measured values error 24 Hrs 90 Days 1 Year Time + error - error Input value? Effect of Aging Drift 20

Signals Come in Two Forms: Digital and Analog Digital Analog 21

Digital Signals Digital signals have two states: high and low Digital lines on a DAQ device accept and generate transistor-transistor logic (TTL) compatible signals High State +5.0 V Indeterminate Low State +2.2 V +0.8 V 0 V State Rate 22

Digital Terminology 0 1 Bit The smallest unit of data. Each bit is either a 1 or a 0. A binary number consisting of eight related bits of data. Byte Line 0110100 1 1010110 0 One individual signal in a port. Bit refers to the data transferred. Line refers to the hardware. A collection of digital lines (usually four or eight). Port 23

Signals Come in Two Forms: Digital and Analog Digital Analog 24

Analog Signals Analog signals are continuous signals that can be any value with respect to time. 25

Analog Terminology 4.71 V Level The instantaneous value of the signal at a given point in time. Shape The form that the analog signal takes, which often dictates further analysis that can be performed on the signal. Frequency The number of occurrences of a repeating event over time. 26

The Three R s of Data Acquisition: Resolution Resolution Range Rate 6-Bit Resolution Original Signal 3-Bit Resolution 27

The Three R s of Data Acquisition: Range Resolution Range Rate Range of -10V -2V to to 10V 2V Original Signal 3-Bit Resolution 28

The Three R s of Data Acquisition: Rate Resolution Range Rate Original Waveform (10 Hz) Sampling Rate = 100 25 11 Hz 29

Sampling Rate Considerations An analog input signal is continuous with respect to time. Sampled signal is series of discrete samples acquired at a specified sampling rate. Actual Signal The faster we sample, the more our sampled signal will look like our actual signal. If not sampled fast enough, a problem known as aliasing will occur. Sampled Signal 30

Amplitude Amplitude Aliasing Sample rate: how often an A/D conversion takes place Alias: misrepresentation of a signal Adequately Sampled Aliased Due to Undersampling 6 Frequency 2 Frequency 31

Following the Nyquist Theorem Prevents Aliasing Frequency To accurately represent the frequency of your original signal You must sample at greater than 2 times the maximum frequency component of your signal. Shape To accurately represent the shape of your original signal You must sample between 5 10 times greater than the maximum frequency component of your signal. 32

The Nyquist Theorem in Action Aliased Signal 100 Hz Sine Wave Sampled at 100 Hz Adequately Sampled for Frequency Only 100 Hz Sine Wave Sampled at 200 Hz 100 Hz Sine Wave Sampled at 1 khz Adequately Sampled for Both Frequency and Shape 33

Conditioning Signals for Quality Measurements Signal conditioning improves a signal that is difficult for your DAQ device to measure Signal conditioning is not always required Signal Conditioning Noisy, Low-Level Signal Filtered, Amplified Signal 34

Common Signal Conditioning Examples Transducer/Signals Thermocouples RTD (Resistance Temperature Detector) Strain Gage Signal Conditioning Amplification, Linearization, Cold-Junction Compensation Current Excitation, Linearization Voltage Excitation, Bridge Configuration, Linearization Common Mode or High Voltage Isolation Amplifier Loads Requiring AC Switching or Large Current Flow High-Frequency Noise Electromechanical Relays or Solid-State Relays Low-Pass Filters 35

Examining Common Signal Conditioning for Voltage Measurements Amplification Attenuation Filtering Isolation 36

Amplification Used on low-level signals Maximizes use of analog-to-digital converter (ADC) range and increases accuracy Increases signal-to-noise ratio (SNR) Amplifier 37

Example: Amplification and the Signal-to-Noise (SNR) Ratio 10 mv Signal 1 mv Noise 1000x Amplifier ADC 1 mv Noise» SNR = 10 10 mv Signal 1000x Amplifier ADC 38» SNR = 10,000

Attenuation Decreases the input signal amplitude to fit within the range of the DAQ device Necessary when input signal voltages are beyond the range of the DAQ device Attenuator 39

Filtering Filters remove unwanted noise from a measured signal and block unwanted frequencies Time Domain Lowpass Filter Time Domain Frequency Domain Frequency Domain 40

Gain (db) Filtering Passband Frequencies the filter lets pass Ripple Filter s effect on the signal s amplitude Corner Frequency where the filter begins blocking the signal Rolloff How sharply the filter cuts off unwanted frequencies Ripple Passband f c Example Bode Plot Corner Rolloff Frequency A filter s attributes are typically described using Bode Plots 41

Isolation Isolation helps to pass a signal from its source to a measurement device without a direct physical connection Blocks high common-mode signals Breaks ground loops Protects your instrumentation Electromagnetic Isolation Capacitive Optical 42

Architecture of an Integrated Measurement System NI CompactDAQ hardware combines a 1-, 4-, or 8-slot chassis with over 50 measurement-specific NI C Series I/O modules and can operate stand-alone with a built-in controller or connect to a host computer over USB, Ethernet, or 802.11 Wi-Fi. Sensor Measurement Device Software Signal Conditioning Analog-to-Digital Converter Driver Software Application Software 43

NI Data Acquisition Hardware Families PXI Optimized for high channel counts and tight synchronization System NI CompactDAQ Customize with a variety of chassis and module types Desktop DAQ Install in a desktop PC slot for maximum data throughput Single Device 44 Portable DAQ Easily connect to any laptop or desktop with simple setup

NI CompactDAQ Is an Integrated, Modular Solution Sensors/Signals C Series Modules Thermocouple Accelerometer Strain Gage Solar Cell (etc) 45

C Series I/O Modules Over 100 NI and Partner Modules Analog Input Analog Output Digital I/O Relay Output Counter, Pulse Generation Communication o CAN o LIN o PROFIBUS Motion Control Wireless Engine Control Signal Conditioning Rugged Mechanicals Signal Conditioning/Filtering Isolation Barrier 46

47

Combining Software and Hardware Into an Integrated System Automated Measurement Solutions With LabVIEW and NI DAQ

Architecture of an Integrated Measurement System NI-DAQmx is free driver software that can be used in conjunction with several different programming languages to control thousands of different data acquisition devices with a consistent API. Sensor Measurement Device Software Signal Conditioning Analog-to-Digital Converter Driver Software Application Software 49

Bridging the Hardware and Software Gap with NI-DAQmx NI-DAQmx is a single, free hardware driver that supports various development languages and hundreds of NI data acquisition hardware platforms. The mark LabWindows is used under a license from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. 50

Comparing Basic DAQ Drivers to NI-DAQmx Basic DAQ Driver Architecture NI-DAQmx Driver Architecture Application Software DAQ Assistant Driver Engine Configuration Manager API Driver Engine DAQ Hardware 51

Measurement & Automation Explorer (MAX) Free, unified configuration management utility for NI hardware Task and Channel Creation Simulated Devices Configuration and Connection Management Built-In Signal Connection Diagrams Test Panel Windows 52

Exercise 1: Using Measurement & Automation Explorer Become familiar with the Devices and Interfaces section of MAX and explore the test panel functionality. 53

NI-DAQmx API: Configuration-Based DAQ Assistant Enables quick, configurationbased measurements Usable across multiple channels, multiple devices Maximum ease of use with some sacrificed flexibility Supported across multiple programming languages Automatically generates lowerlevel code 54

Exercise 2: Generate Code by Using the DAQ Assistant in LabVIEW Implementing a code on LabVIEW for temperature measurement using the DAQ Assistant Express VI. 55

NI-DAQmx API: Low-Level LabVIEW VIs Maximizes flexibility and enables low-level control The basic flow: Configure Channel Configure Timing Configure Triggering Start Acquisition Read Data Clear Task 56

NI-DAQmx C API 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 ); DAQmxStartTask( taskhandle ); Configure Channel Configure Timing DAQmxReadAnalogF64( taskhandle, -1, 10.0, 0, data, 1000, &read, NULL ); printf( Acquired %d samples. %d, read ); DAQmxClearTask( taskhandle ); Start Acquisition Read Data Clear Task 57

NI-DAQmx Channels NI-DAQmx channels encompass: Measurement type, sensor/signal type Terminal configuration Physical connection settings Name Min/Max Value o Used to determine amplification level Custom Scaling o Ex: thermocouple generates a mv signal; NI-DAQmx upscales to C 58

Timing Allows you to configure acquisition timing Set sample clock, rate of acquisition, and number of samples to acquire or generate Timing Option Finite Samples Continuous Samples Hardware-Timed Single Point Description Acquire or generate a configurable number of samples at a configurable rate. Acquire or generate samples continuously, until explicitly stopped by the API. Acquire or generate samples continuously on the edge of a hardware clock. 59

Triggering Produces an action based on a stimulus Ex: generate a waveform after receiving a digital pulse NI-DAQmx supports several different action types: Advance Pause Reference Start Switch to the next device in a list Pause when a trigger is low Resume when a trigger is high Acquisition starts with software Circular buffer is used until reference trigger is received Returns pre- and posttrigger samples Begin acquisition Begin generation 60

Triggering Event-driven acquisition or generation Valid for finite or continuous operations Example: acquire 5 samples on a start trigger: Start Trigger Clock 1 2 3 4 5 Start of Acquisition 61

Trigger Types Digital Edge Triggering Accepts TTL/CMOS-compatible signals 0 to 0.8 V = logic low 2.2 to 5 V = logic high Trigger on rising or falling edge of signal Trigger on Rising Edge Trigger on Falling Edge Begin Acquisition Begin Acquisition 62

Trigger Types Analog Edge Triggering Trigger off signal level and slope Slope can be rising or falling Rising Slope with Level 2.7 Captured data Falling Slope with Level 2.7 Level and slope initiate data capture 2.7 2.7 0 Level and slope initiate data capture 0 Captured data 63

Exercise 3: Generate Code Using the DAQ low-level VIs Implementing a code on LabVIEW for vibration measurement using the DAQmx low-level VIs. 64

Family Highlight: Stand-Alone NI CompactDAQ Embedded Measurements and Logging >50 I/O modules Up to 24-bit, Up to 1 MS/s Dual-core processor 32 GB nonvolatile storage 0 to 55 C Operating Temp 5g shock, 30g vibration Windows or Real-Time OS LabVIEW and NI-DAQmx 65

Utilizing Technology Trends With an Integrated Platform Data Dashboard for LabVIEW Control and visualize data from LabVIEW systems on an ipad 66

NI LabVIEW Certifications Certified LabVIEW Architect Certified LabVIEW Developer On May 16 th, FREE Certified LabVIEW Associate Developer!! Certified LabVIEW Associate Developer 67

Thank You!! 68