Developing Measurement and Analysis System using MATLAB

Similar documents
Acquiring Data from Sensors and Instruments Using MATLAB

Advanced NI-DAQmx Programming Techniques with LabVIEW

Introduction to LabVIEW and NI Hardware Platform

BE/EE189 Design and Construction of Biodevices Lecture 5. BE/EE189 Design and Construction of Biodevices - Caltech

VIBBOX. 32, 48, or 64-Channel Sound & Vibration Solution Expansion to 256 Channels. Key Feature of Each VIBbox: Table 1. Key Features of VIBbox Models

Computerized Measurement systems

Developing Customized Measurements and Automated Analysis Routines using MATLAB

LabVIEW FPGA in Hardware-in-the-Loop Simulation Applications

VIBbox 64-Channel Sound & Vibration Solution

Open. Powerful. Application Builder for Test & Measurement Systems.

Measurement Studio Using.NET in Your Test and Measurement Applications

DATA SHEET. VEE Pro 9.33

Measure Foundry. Open. Powerful. Application Builder for Test & Measurement Systems. Measure Foundry Instruments and Advanced Instruments versions:

Building a Next Generation Data Logging System

The data acquisition components, and their relationship to each other, are shown below.

Data Acquisition in LabVIEW

Software-Defined Test Fundamentals. Understanding the Architecture of Modular, High-Performance Test Systems

Introduction to Automating Standalone Instruments

Keysight Technologies VEE Pro 9.32

A Step Into the Future of Data Measurement. Focus on Tests and Measurements. Let idaq Do the Rest.

NI-DAQmx Basic Course NITS John Shannon

Install the Software and Hardware

New Technologies in Data Acquisition

LabVIEW Core 1. What You Need To Get Started. File Locations. The course installer places the course files in the following location: ni.

LabWindows /CVI Using the Latest ANSI C Tools for High-Performance Automated Test

Data acquisition hardware

Computerized Measurement Systems (EEMN10) 2016

Computerized Measurement Systems (EEMN10) 2014

Computerized Measurement Systems (EEMN10) 2015

LabVIEW Basics I: Introduction Course

The new Expert Logger 400: Industry 4.0 ready!

DAQ in MATLAB HANS-PETTER HALVORSEN,

Hands-On Seminar. Evaluate CompactDAQ and LabVIEW for Your Application 09/05/2017. ni.com

Data Acquisition Fundamentals

Current Status of IEEE Transducer Electronic Data Sheet (TEDS)

NI Technical Symposium ni.com

How to communicate with instruments that support GPIB. Gianfranco Miele, Ph.D

Computer Hardware Requirements for Real-Time Applications

Features. High-precision Analog input board (Low Profile size) for PCI Express AI-1616L-LPE AI-1616L-LPE 1. Ver.1.01

DT Measure Foundry TM is a powerful software package designed for test and measurement,

Data Acquisition Laboratory

Automated Test Equipments

CompactDAQ Chassis PRODUCT FLYER CONTENTS. Цены и срок поставки уточняйте на сайте по телефону: или

Ultra-Accurate Measurement for Temperature and Voltage

Tools for Developing LXI Systems

PXI Digital Pattern Instruments

SECTION 1 INTRODUCTION. Walt Kester

What s New in Data Acquisition

GSV-6BT GSV-6BT. Description

ni.com/training Quizzes LabVIEW Core 1 ni.com/training Courses Skills learned: LabVIEW environment Certifications Skills tested: LabVIEW environment

LXI Day. Sponsored by

Introduction to Simulink Design Optimization

Introducing the LXI Interface

Additional products and features

Precision Voltage Measurement. Instruments. Applications. Voltage Inputs. High-Stability, Low Drift Voltage References. Key Design Features

Appendix G. Commercial DSP Systems. Annie Foong

With respect to the National Instruments software product(s) being used, the following patents may apply:

Innovative hardware...

Faster Time to Measurement Advances in LabVIEW Instrument Control

Integrated Simulation and Hardware-test Environment for Microcontroller Development

Ultra-Accurate Measurement for Temperature and Voltage

A variety of ECONseries modules provide economical yet flexible solutions

Low Cost Data Acquisition Setup for Electrical Machines Laboratory. Ciprian Sorandaru, Sorin Musuroi

AIO AH-PCI. Features. Packing List. 12-bits Analog I/O Board (High Gain) for PCI AIO AH-PCI 1. Ver.1.04

DynoWare. Electronics & Software. Software for Data Acquisition and Evaluation. Type 2825A...

LAN extensions for Instrumentation. The LXI Primer. Version 1.1

VISA, SICL, VISA COM,

VXI-LXI DAQ System Ensures Mission Critical Reliability for Rocket Engine Test

Gas Combustion Testing With LabVIEW

DT9828. USB Powered Thermocouple Measurement Module. Key Features: Analog Input Channels

34970A 3499A/B/C. Advanced Test Equipment Rentals ATEC (2832) 34970A and 3499A/B/C Switch Systems

The IVI Driver Standards

ECONseries Low Cost USB DAQ

ECONseries Low Cost USB DAQ

Keysight Technologies IO Libraries Suite 2019 DATA SHEET

EDX-10 Series. Compact Recording System

Computer-Based Instruments

AO-1604LX-USB. Features. High-Resolution Analog Output Unit for USB AO-1604LX-USB 1. Ver.1.01

PRACTICAL DESIGN TECHNIQUES FOR SENSOR SIGNAL CONDITIONING

Temperature Measurement Instruments Ultra-Accurate... by Design

Getting Started with IVI Drivers

Developing Measurement and Control Applications with the LabVIEW FPGA Pioneer System

This document provides additional information for the installation and use of the Keithley I/O Layer.

Tactical/Land Vehicle Test.

Multifunction DAQ Accessory and Cable Selection Guides

16-Bit A/D Converter (ENOB=14.1) 16-bit D/A. 16-bit D/A. Digital I/O (8/8) Counter/Timer (2)

Modelling, Simulation, and Real-Time Testing for Model-Based Design GianCarlo Pacitti Application Engineer MathWorks

DATENBLATT ADA16-32/2(PCI)F. HABEN SIE FRAGEN ODER WÜNSCHEN SIE EIN INDIVIDUELLES ANGEBOT? Unser Team berät Sie gerne persönlich.

DBK48. Multipurpose Isolated Signal-Conditioning Module. Description. Supports up to Sixteen 8B Modules

Dept. of Electrical, Computer and Biomedical Engineering. Data Acquisition Systems and the NI LabVIEW environment

EDX-10 Series. Compact Recording System

1. Learn about LabView software and its different components

The Measurement Revolution

A variety of ECONseries modules provide economical yet flexible solutions. Waveform Generation

PHY 351/651 LABORATORY 1 Introduction to LabVIEW

LXI Reference Design Overview

A Combined ISO/IEC/IEEE and -2 Data Acquisition Module

Ultra-Accurate Temperature Measurement Instruments

Analog Input Sample Rate

How to Choose the Right Bus for Your Measurement System

Transcription:

Developing Measurement and Analysis System using MATLAB 성호현차장 Senior Application Engineer MathWorks Korea 2013 The MathWorks, Inc. 1

Agenda Great Demo : Battery test demo Overview of data acquisition capabilities from MATLAB Simple examples Acquiring data from stand alone application MATLAB Compiler Summary Q&A 2

Realistic Example of T&M System. Battery Testing Demo 2013 The MathWorks, Inc. 3

Control Algorithm Development What do I do first? Understand the plant behavior. How can I do that? Build a plant model Use the plant model to develop controller u + s1 s3 s2 Actuators System Sensors y Controller Plant 4

Battery Equivalent Circuit Rx = f(soc, Current, Voltage, Temperature) Transient Dynamics End of Charge Resistance Terminal Resistance C1 1 R2 Open-Circuit Voltage R0 1 V R1 Em 2 End of Discharge Resistance [Main Branch] 5

Simulink Model OR OR What did I just modeled? 6

Model Correlation Every model needs to be correlated against real data. R x = f(soc, Current, Voltage, Temperature) Transient Dynamics C1 End of Charge Resistance Terminal Resistance Open-Circuit Voltage R1 1 R2 R0 1 V Em End of Discharge Resistance 2 [Main Branch] 7

What is Model Correlation? A form of Data Analysis Take raw data Transform it into applicable form Apply it to make engineering decision 8

Data Analysis Tasks Access Files Explore & Discover Data Analysis & Modeling Share Reporting and Documentation Software Algorithm Development Outputs for Design Code & Applications Hardware Application Development Deployment Automate 9

Data Analysis Tasks Access Access Files Bring data into MATLAB Test and Measurement Toolbox Vehicle Network Toolbox Software Code & Applications Hardware Ensure data integrity during data collection Voltage threshold CAN dropout 10

Data Analysis Tasks Access Files Explore & Discover Data Analysis & Modeling Software Algorithm Development Code & Applications Hardware Application Development 11

Data Analysis Tasks Access Files Software Code & Applications Hardware Explore & Discover Explorer and Discover Data Analysis & Modeling Data Application Development Managing heterogeneous data Visualizing Algorithm Development Quality Combining different sampling rates Handling missing data Identifying bad data (outliers) 12

Demo: Pre-Processing of Test Data Goal: Prepare data for further analysis Approach: Load data from files Combine different sampling rates to unified time scale Handle missing data Identify outliers 13

Demo: Pre-Processing of Test Data Goal: Prepare data for further analysis Approach: Load data from files Combine different sampling rates to unified time scale Handle missing data Identify outliers 14

Joins for Datasets Merge datasets together Popular Joins: Inner Full Outer Left Outer Right Outer Inner Join Full Outer Join Left Outer Join 15

Full Outer Join Key A B 1 1.1 4 1.4 7 1.7 9 1.9 First Data Set Key X Y Z 1 0.1 0.2 3 0.3 0.4 5 0.5 0.6 7 0.7 0.8 Second Data Set Key B Y Z 1 3 4 5 7 9 1.1 NaN 1.4 NaN 0.1 0.3 NaN 0.5 0.2 0.4 NaN 0.6 1.7 1.9 0.7 NaN 0.8 NaN Joined Data Set 16

Inner Join Key A B 1 1.1 4 1.4 7 1.7 9 1.9 First Data Set Key X Y Z 1 0.1 0.2 3 0.3 0.4 5 0.5 0.6 7 0.7 0.8 Second Data Set Key B Y Z 1 1.1 0.1 0.2 7 NaN 1.7 0.7 0.3 0.4 0.8 3 4 Joined 1.4 Data NaN Set 5 7 9 NaN 0.5 1.7 0.7 1.9 NaN Joined Data Set NaN 0.6 0.8 NaN 17

Left Outer Join Key A B 1 1.1 4 1.4 7 1.7 9 1.9 First Data Set Key X Y Z 1 0.1 0.2 3 0.3 0.4 5 0.5 0.6 7 0.7 0.8 Second Data Set Key B Y Z 1 1.1 0.1 0.2 1 4 NaN 1.4 NaN 0.3 NaN 0.4 3 7 1.4 1.7 NaN 0.7 NaN 0.8 4 9 NaN 1.9 NaN 0.5 NaN 0.6 5 7 1.7 0.7 Joined Data Set 1.9 NaN 9 Joined Data Set 0.8 NaN 18

Demo: Pre-Processing of Test Data Goal: Prepare data for further analysis Approach: Load data from files Combine different sampling rates to unified time scale Handle missing data Identify outliers 19

Techniques to Handle Missing Data List-wise deletion Unbiased estimates (assuming that the data is MCAR) Reduces sample size Loss of power Implementation options Listwise deletion is built in to many MATLAB functions Manual filtering 20

Techniques to Handle Missing Data Substitution - Replace missing data points with a reasonable approximation Easy to model Too important to exclude 21

Techniques to handle missing data Substitution: Replace the missing data point with something reasonable Enables other types of analysis 4 3.8 Error estimates will be biased 3.6 3.4 3.2 3 4 4.5 5 5.5 6 22

Techniques to handle missing data Substitution: Replace the missing data point with something reasonable 4 3.8 Missing Data Point 3.6 3.4 3.2 3 4 4.5 5 5.5 6 23

Techniques to handle missing data Substitution: Replace the missing data point with something reasonable 4 3.8 Mean Substitution 3.6 3.4 3.2 3 4 4.5 5 5.5 6 24

Techniques to handle missing data Substitution: Replace the missing data point with something reasonable 4 3.8 Median Substitution 3.6 3.4 3.2 3 4 4.5 5 5.5 6 25

Techniques to handle missing data Substitution: Replace the missing data point with something reasonable 4 3.8 3.6 Linear Interpolation 3.4 3.2 3 4 4.5 5 5.5 6 26

Techniques to handle missing data Substitution: Replace the missing data point with something reasonable 4 3.8 Regression Substitution (Linear) 3.6 3.4 3.2 3 4 4.5 5 5.5 6 27

Techniques to handle missing data Substitution: Replace the missing data point with something reasonable 4 More complicated model - Nonlinear regression - Smoothing spline - Localized regression - 3.8 3.6 3.4 3.2 3 4 4.5 5 5.5 6 28

Techniques to handle missing data Substitution: Replace the missing data point with something reasonable 4 3.8 Mean Substitution Median Substitution Regression Substitution (Linear) Linear Interpolation 3.6 3.4 3.2 Regression Substitution (Nonlinear) 3 4 4.5 5 5.5 6 29

Demo: Pre-Processing of Test Data Goal: Prepare data for further analysis Approach: Load data from files Combine different sampling rates to unified time scale Handle missing data Identify outliers 30

Demo: Pre-Processing of Test Data Summary Managed data with dataset array Merged dataset arrays with join Resampled data with fit objects and filled in missing values Identified outliers using statistical analysis 31

Technical Computing Workflow Access Explore & Discover Share Automate 32

MATLAB Connects to Your Hardware Data Acquisition Toolbox Plug in data acquisition boards and modules Instrument Control Toolbox Instruments and RS-232 devices Image Acquisition Toolbox Image capture devices Vehicle Network Toolbox CAN bus interface devices MATLAB Interfaces for communicating with everything 33

Data Acquisition Toolbox : Supported Hardware Agilent Technologies Keithley ISA, PCI, PCMCIA Measurement Computing Corporation USB, PC/104, ISA, PCMCIA, Parallel port National Instruments Hardware supported by NI-DAQ, NI-DAQmx drivers over AT, PCI, PCI Express, FireWire, PXI, SCXI, PCMCIA, parallel port, USB, CompactDAQ Any Windows compatible sound cards (AI, AO) IOtech DaqBoard, DaqBook, DaqLab, DaqScan, Personal Daq/3000, and WaveBook Series Data Translation All USB and PCI boards CONTEC Various boards through CONTEC ML-DAQ adaptor Advantech For a complete list, visit www.mathworks.com/products/daq/supportedio.html 34

Demo: Acquiring and analyzing data from sound cards Windows sound card Frequency Analysis Live Data Graphical User Interface 35

Analyzing sensor data from MATLAB Physical Quantity Sensor / Transducer Hardware Voltage Measurement Types Temperature Pressure Flow Acceleration Rotation Strain Computer Data 36

Data Acquisition Toolbox What kind of hardware can I use? Supports for a variety of data acquisition boards and USB modules Key Features Support for analog input, analog output, counters, timers, and digital I/O Direct access to voltage, current, IEPE accelerometer, and thermocouple measurements Live acquisition of measured data directly into MATLAB or Simulink Hardware and software triggers for control of data acquisition Device-independent software interface 37

What s new in recent releases of Data Acquisition Toolbox? Two interfaces to connect to DAQ hardware Legacy interface Session-based interface (NI-only) Support the following on NI hardware IEPE accelerometer measurements Bridge-based sensors measurements Thermocouple and RTD measurements Counter/Timer operations Analog Input, Analog Output, Digital I/O Synchronization and Triggering functions 38

Session Interface vs. Legacy Interface Legacy Session Multi-vendor support yes No, NI only Sound card support yes no 32-bit ML on 32 or 64-bit Windows OS yes yes 64-bit ML no yes Analog Input yes yes Analog Output yes yes Digital I/O yes yes Counter/Timer no yes Voltage Measurements yes yes Current No* yes Thermocouple, RTD No* yes IEPE accelerometer, Bridge No* yes Advanced Synchronization capabilities (applies to NI) **See supported hardware page for available interfaces for a specific NI device 39 yes yes

Key Capabilities & Benefits (DAT) Capabilities Connect to a wide variety of DAQ hardware using a common set of commands Access to hardware capable of specialized measurements such as IEPE accelerometer, thermocouple and Bridge Access to counter/timer measurements Benefits Freedom to choose the hardware that is right for the task Easier to maintain code and leverage previously written code for new projects with different hardware Simplifies measurement test setup since the signal conditioning is in the hardware Connect the sensor and acquire the data in the desired engineering units (g, degrees K etc.) without conversions or lookup tables Full access to the capability of the DAQ card Simplifies applications involving counting, pulse width and frequency measurements Advanced Synchronization Enables live analysis of acquired data Synchronize data collection from multiple devices Auto synchronization capabilities, external event based triggering Simplified background data acquisition Analyze data as you collect it. Reduce collection of bad data 40

Instrument Control Toolbox What are the key features of Instrument Control Toolbox? IVI, VXIplug&play, and native MATLAB instrument driver support GPIB and VISA (GPIB, GPIB-VXI, VXI, USB, TCP/IP, and serial) support TCP/IP, UDP, and Bluetooth serial protocol support Interactive tool for identifying, configuring, and communicating with instruments Simulink blocks for sending and receiving live data between instruments and Simulink models Functions for reading and writing binary and ASCII data to and from instruments Synchronous and asynchronous (blocking and nonblocking) readand-write operations 41

Instrument Control Toolbox: Supported Hardware Instruments from Agilent, Anritsu, LeCroy, Rohde & Schwarz, Tabor, Tektronix, and others Instruments and devices supporting common communication protocols (GPIB, VISA, TCP/IP, UDP, and serial, Bluetooth) Serial devices Any device with a RS-232, RS-422, or RS-485 interface (EEGs, gas chronometers, mass spectrometers, etc.) Instruments using industry-standard instrument drivers (IVI, VXIplug&play, LXI) For a complete list, visit http://www.mathworks.com/products/instrument/hardware/index.html 42

Acquiring Data Using the Test and Measurement Tool Features: Export directly to Figure Window Export to MATLAB workspace 43

Test and Measurement Tool Features Features: View driver properties View driver functions Create device objects Create interface objects View connected hardware 44

Session Log Features: Automatically creates MATLAB code from activity within the tool Comments the code Can be saved for use in application 45

What s new in recent releases of Instrument Control Toolbox Bluetooth support Serial Port Profile (SPP) I2C support Quick Control Instruments Quick Control Oscilloscope Quick Control Function Generator 46

Key Capabilities & Benefits (ICT) Capabilities Control and acquire data from instruments using IVI, VXIplug&play and MATLAB instrument drivers Connect to instruments and devices over GPIB, TCP/IP, VISA, USB and Serial and Bluetooth and I2C Quick Control Instruments Benefits Verify designs and build test systems Instrument Control Toolbox and MATLAB as a platform for design verification. Develop models in MATLAB or Simulink and test them with data generated or collected from test equipment. Verify that prototypes meets specs and build larger test systems. Easily connect to hardware without leaving MATLAB Analyzing data, visualizing data and developing custom measurements all in the single environment saves time. Connect to instruments without knowing SCPI or driver commands Connect to oscilloscopes and function generators with only a few lines of MATLAB code Connect to remote software applications using TCP/IP or UDP Enables analysis of data collected from a remote source 47

Summary Acquire Data from sensors and Instruments Data Acquisition Toolbox Instrument Control Toolbox Image Acquisition Toolbox Vehicle Network Toolbox Without leaving MATLAB you can acquire, analyze and visualize your data Acquiring and analyzing data from the same environment saves time and enables live analysis of data 48

Resources Data sheets, user stories, demos, technical literature, documentation www.mathworks.com/products View this and other archived webinars www.mathworks.com/products/daq View more data acquisition demos http://www.mathworks.com/products/daq/demos.html View more instrument control demos http://www.mathworks.com/products/instrument/demos.html View supported hardware Data Acquisition Toolbox Instrument Control Toolbox Image Acquisition Toolbox Vehicle Network Toolbox 49