1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

NI-LabVIEW techniques and data acquisition system with NI-DAQ docx

87 304 1
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề NI-LabVIEW techniques and data acquisition system with NI-DAQ
Tác giả Pham Quoc Hung
Trường học National Instruments
Chuyên ngành Measurement and Automation Applications
Thể loại Giáo trình
Định dạng
Số trang 87
Dung lượng 6,32 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

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 2

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

Field Systems Engineer Tel: 0932529288 Email: quochung.pham@ni.com

Trang 3

What 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 4

National 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 6

Low-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 7

Empowering 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 8

Embedded Devices and Machines

Display

Drives and Motors Controller and I/O

Control Software

Trang 9

Diversity of Applications

No Industry >15% of Revenue

Electronics Semiconductors Computers

Advanced Research

Petrochemical Food

Processing

Textiles

Automotive Telecom

ATE Military/

Aerospace Academic

Trang 10

Who are NI Customers?

More than 30,000 companies

More than 90% of Fortune 500 manufacturing companies

Trang 11

What is Virtual Instrumentation?

Customer-Defined PC-Based Measurement and Automation Solutions

Traditional Vendor-Defined

Instruments

Processor RAM ROM

Display

Power Supply Hard Disk

Trang 12

Virtual Instrumentation

“To do for test and measurement what the spreadsheet did for financial analysis.”

Trang 13

Graphical 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 15

Virtual Instrumentation with LabVIEW

Automated Test

Trang 16

2009

2010

LabVIEW 2010

Advanced Timing FPGA IP

2011

Trang 17

Virtual 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 18

Virtual Instrumentation Case Study

448-channel Microphone Array

200 Hz

400 Hz

Airframe Noise

Trang 19

Oil 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 20

What is LabVIEW?

Trang 21

Programming Approaches

Analysis Libraries

Deployment Targets

A Highly Productive Graphical Development Environment for Engineers and Scientists

APIs and Drivers Custom User Interfaces

Technology Abstractions

Trang 22

LabVIEW 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 23

LabVIEW is a Development Environment

Trang 24

LabVIEW Has Built-in Engineering Libraries

• In-line and off-line analysis and control

Trang 25

LabVIEW 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 26

LabVIEW Fundamentals

Trang 27

The LabVIEW Environment

“VI” = program or function

Trang 28

Demo 1: Simple Front Panel and Block Diagram

• Show LabVIEW Graphical Programming Environment

• Explore the Front Panel and Block Diagram

Trang 29

Controls & Indicators

Trang 30

Finding Front Panel Objects

or

• Press <ctrl + space> to bring up

• Search by object name

Controls Palette

Controls Quick Drop

Trang 31

Functions and Express VIs

Configuration Based

Express VI Standard VIs

Trang 32

Dataflow Programming

1

2 Comparison waits until all inputs are present, then executes

Both Simulate Signal Express VIs execute simultaneously

Trang 33

Wires 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 34

Execution Control Structures

Run until stop

• Allow same piece of code to run multiple times

• Exit conditions different for each

Trang 35

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

Trang 36

Demo 2: Simulate Signal to Graph

• Simulate various signals

• Display on Graph

Trang 37

Built-in Programming Assistance

Highlight Execution Block Diagram Cleanup Context Help

Trang 38

Data Acquisition with LabVIEW

Trang 39

PC-Based Data Acquisition (DAQ)

Trang 40

NI DAQ Platforms

One application, multiple targets

Trang 41

Today’s DAQ System

Trang 42

Demo 3: Measurement and Automation Explorer (MAX)

• Explore MAX and located/test connected Devices

Trang 43

CompactDAQ 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 44

Demo 4a: Taking a Basic Measurement

• Acquire temperature signal

• Display to graph

Trang 45

Demo 4b: Basic Measurement with Simple Limit Threshold Control

• Acquire temperature signal

• Do Limit Threshold and trigger control output if over limit

Trang 46

Application Areas

Green Engineering

Solving Environment Challenges with

Graphical System Design

Trang 47

Measure 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 53

Demo 5: Wireless Monitoring of

Temperature and Solar Panel

output from a solar

Trang 54

Power 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 55

Reasons of Increased Interest in PQ

Trang 56

LabVIEW 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 57

LabVIEW Power Quality Toolkit

Trang 58

Demo 6: Power Quality Measurement with

Trang 59

Case 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 60

Sound and Vibration Measurement

System Components

Data Acquisition

Trang 61

Application Areas

Structural Health Monitoring

Preventive Infrastructure Test/Monitoring with

Graphical System Design

Trang 62

Sensors

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 63

PXI SCXI

Internet

Trang 64

Lab/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 65

Large 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 66

Portable Application: Field Testing of Bridges

• Bridge testing and

• Mode shapes, etc

• Quick setup and

takedown

Strain Gauges

• LabVIEW • CompactDAQ

Trang 67

Portable 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 68

Strain 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 69

Demo 7: Vibration Monitoring

Trang 70

Vibration Monitoring of Meazza Stadium in Milan

Requirements

• High-channel, distributed network

monitoring system

• Structural evaluations, modal

analysis, static and dynamic

measurements, and corrosion

Trang 71

Meazza Stadium in Milan

• Structural Measurement Diagnosis and Surveillance

Trang 72

Range of NI Machinery Applications

R&D Test Cells Factory Test Field Service,

Data logging

On-line

Trang 74

Web 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 75

LabVIEW 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 76

Web Services and Thin Clients

Web

Web Service

Thin Client Application

HTTP Request

XML Response

Trang 77

Demo 8: Real-Life Data Monitoring from iPad/Android

• Using iPad to monitor

real-life data

LabVIEW Dashboard for iPad &

Android

Trang 78

VI deploys data via

Web Service

Web Services in LabVIEW

Web Server

Trang 79

LabVIEW 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 80

LabVIEW Web UI Builder

Trang 81

ni.com/uibuilder

Trang 82

Next Steps

Trang 83

Learn 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 84

Worldwide 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 85

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 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 86

To 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

Ngày đăng: 27/06/2014, 10:20

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN