Virtual Measurement System MATLAB GUI Documentation

Similar documents
Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15. Figure 2: DAD pin configuration

sin(wt) y(t) Exciter Vibrating armature ENME599 1

SignalCalc Drop Test Demo Guide

Experiment 1 Introduction to Simulink

ME scope Application Note 02 Waveform Integration & Differentiation

SDOF System: Obtaining the Frequency Response Function

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

Real Analog - Circuits 1 Chapter 11: Lab Projects

MASSACHUSETTS INSTITUTE OF TECHNOLOGY /6.071 Introduction to Electronics, Signals and Measurement Spring 2006

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

Vibration Fundamentals Training System

MEMS. Platform. Solutions for Microsystems. Characterization

ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm

Laboratory Experiment #2 Frequency Response Measurements

EE 210 Lab Exercise #3 Introduction to PSPICE

ECE411 - Laboratory Exercise #1

SHAKER TABLE SEISMIC TESTING OF EQUIPMENT USING HISTORICAL STRONG MOTION DATA SCALED TO SATISFY A SHOCK RESPONSE SPECTRUM Revision C

Figure E2-1 The complete circuit showing the oscilloscope and Bode plotter.

5 Lab 5: Position Control Systems - Week 2

Response spectrum Time history Power Spectral Density, PSD

Constructing response curves: Introduction to the BODE-diagram

UNIVERSITY OF UTAH ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT

Measurement Techniques

Lab #1 Lab Introduction

Linear Motion Servo Plants: IP01 or IP02. Linear Experiment #0: Integration with WinCon. IP01 and IP02. Student Handout

SonoLab Echo-I User Manual

SHAKER TABLE SEISMIC TESTING OF EQUIPMENT USING HISTORICAL STRONG MOTION DATA SCALED TO SATISFY A SHOCK RESPONSE SPECTRUM

Experiment 1 Introduction to MATLAB and Simulink

INTRODUCTION TO AGILENT VEE

Class #16: Experiment Matlab and Data Analysis

AgilEye Manual Version 2.0 February 28, 2007

LABORATORY 4. Palomar College ENGR210 Spring 2017 ASSIGNED: 3/21/17

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity)

EE 210: CIRCUITS AND DEVICES

Introduction to Simulink Assignment Companion Document

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

Introduction to Simulink

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

A METHOD FOR OPTIMAL RECONSTRUCTION OF VELOCITY RESPONSE USING EXPERIMENTAL DISPLACEMENT AND ACCELERATION SIGNALS

EE 462G Laboratory #1 Measuring Capacitance

Lab 2: Introduction to Real Time Workshop

This manual describes the Motion Sensor hardware and the locally written software that interfaces to it.

DETERMINATION OF CUTTING FORCES USING A FLEXURE-BASED DYNAMOMETER: DECONVOLUTION OF STRUCTURAL DYNAMICS USING THE FREQUENCY RESPONSE FUNCTION

Physics 303 Fall Module 4: The Operational Amplifier

Experiment P11: Newton's Second Law Constant Force (Force Sensor, Motion Sensor)

Dynamic Vibration Absorber

Experiment 3 Topic: Dynamic System Response Week A Procedure

Correction for Synchronization Errors in Dynamic Measurements

Module 4 TEST SYSTEM Part 2. SHAKING TABLE CONTROLLER ASSOCIATED SOFTWARES Dr. J.C. QUEVAL, CEA/Saclay

MECE 3320 Measurements & Instrumentation. Data Acquisition

Open Loop Frequency Response

Servo Closed Loop Speed Control Transient Characteristics and Disturbances

Portable FFT Analyzer CF-9200/9400

Load Cells, LVDTs and Thermocouples

Vibration Analysis on Rotating Shaft using MATLAB

Use of the LTI Viewer and MUX Block in Simulink

Laboratorium 1. Introduction to GnuRadio environment. I. Introduction

ME 365 EXPERIMENT 1 FAMILIARIZATION WITH COMMONLY USED INSTRUMENTATION

EEL 4350 Principles of Communication Project 2 Due Tuesday, February 10 at the Beginning of Class

Root Locus Design. by Martin Hagan revised by Trevor Eckert 1 OBJECTIVE

Curly Lines Paint.NET plugin: User Guide

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

TEMPERATURE MAPPING SOFTWARE FOR SINGLE-CELL CAVITIES*

Experiment Number 2. Revised: Summer 2013 PLECS RC, RL, and RLC Simulations

ES442 Final Project AM & FM De/Modulation Using SIMULINK

Experiment # 3. Doppler Spread

etatronix PMA-3 Transmitter Tester Manual

SIGNALS AND SYSTEMS: 3C1 LABORATORY 1. 1 Dr. David Corrigan Electronic and Electrical Engineering Dept.

Modal Excitation. D. L. Brown University of Cincinnati Structural Dynamics Research Laboratory. M. A. Peres The Modal Shop, Inc Cincinnati, OH

Beam Dynamics + Laser Micro Vibrometry 1

CONSIDERATIONS ON USING THE VIRTUAL INSTRUMENTS FOR THE ACQUISITION AND ANALYSIS OF EXPERIMENTAL DATA FROM DYNAMIC SYSTEMS

A Basic Guide to Photoshop Adjustment Layers

Laboratory Assignment 5 Amplitude Modulation

Lab #2 First Order RC Circuits Week of 27 January 2015

Voltage Controlled SAW Oscillator Mechanical Shock Compensator

Lab 3 Swinging pendulum experiment

Experiment # 1 Introduction to Lab Equipment

EMG Electrodes. Fig. 1. System for measuring an electromyogram.

Measuring Modulations

Lab 1: Simulating Control Systems with Simulink and MATLAB

Beat phenomenon in combined structure-liquid damper systems

Do all accelerometers behave the same? Meggitt-Endevco, Anthony Chu

Alibre Design Tutorial - Simple Extrude Step-Pyramid-1

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005

ADMS 5 MapInfo Link. User Guide CERC

Week 15. Mechanical Waves

Velleman Arbitrary Function Generator: Windows 7 by Mr. David Fritz

Terrapin RCM Solver v1.0. User s Guide

Computer Exercises in System Identification

Uncovering a Hidden RCL Series Circuit

Experiment 7: Frequency Modulation and Phase Locked Loops

6.S02 MRI Lab Acquire MR signals. 2.1 Free Induction decay (FID)

(i) Sine sweep (ii) Sine beat (iii) Time history (iv) Continuous sine

Sensors. Chapter 3. Storey: Electrical & Electronic Systems Pearson Education Limited 2004 OHT 3.1

Applications Note. Bently Nevada* Asset Condition Monitoring. Periodically Monitored Assets. Connecting SCOUT to Continuous Monitoring Systems

ECE4902 Lab 5 Simulation. Simulation. Export data for use in other software tools (e.g. MATLAB or excel) to compare measured data with simulation

MEM01: DC-Motor Servomechanism

Real Analog - Circuits 1 Chapter 1: Lab Projects

CHM 152 Lab 1: Plotting with Excel updated: May 2011

Example Application C H A P T E R 4. Contents

Transcription:

INTRODUCTION When taking real-world measurements on a dynamic system with an accelerometer and LVDT, these transducers will not always produce clean output, like that shown in Fig. 1. 0.1 Accerometer output (V) 0.06 0.02-0.02-0.06 0 0.5 1 1.5 2-0.1 Time (s) Fig. 1. Ideal clean accelerometer output Factors such as noise (random or sinusoidal), drift, and bias can corrupt the transducer output. The results obtained from a test may look more like the data shown in Fig. 2. 0.1 Accelerometer output (V) 0.06 0.02-0.02-0.06 0 0.5 1 1.5 2-0.1 Time (s) Fig. 2. Replicated real-world messy accelerometer output. 1

The GUI attempts to analytically replicate the real-life problems seen with data from these transducers. These problems can then be more easily identified and understood. The dynamic system modeled is a simple single-degree-of-freedom (SDOF) second-order system like the mass-spring-dashpot shown in Fig. 3. Fig. 3. Basic mass-spring-dashpot system. To this basic model components are added which simulate the output from an LVDT and accelerometer placed on this system. Various corrupting factors can then be added and varied to observe the resulting effect on the output. The use of a simple RC circuit low-pass filter to reduce sinusoidal noise can also be explored. FILES NEEDED TO USE VIRTUAL MEASUREMENT SYSTEM GUI basic_system.fig basic_system.p mass_spring.mdl mass-spring-dashpot.jpg Place these four files into the same directory, and make this the working directory in MATLAB. RUNNING THE SIMULINK MODEL AND GUI With the proper working directory active, type 'basic_system' in the MATLAB command window. SIMULINK MODEL The GUI is based on a Simulink model. The controls of the GUI are used to change the properties of this model. The entire Simulink model is shown in Fig. 4. 2

Fig. 4. Complete Simulink model. It consists of three basic sections: the central portion which describes the SDOF second-order dynamic system (in blue), the simulated accelerometer output (in red), and the simulated LVDT output (in green). These sections will now be discussed in more detail. The properties of these various components can be altered using the GUI, which will be explained in the next section. Central System The main part of the Simulink model is shown in Fig. 5. Fig. 5. Portion of Simulink model which models the basic SDOF system. 3

This is the foundation of the Simulink model: a single-degree-of-freedom, second-order system. For more information on modeling second-order systems in Simulink, see the tutorials which address block diagram modeling in Simulink and second-order systems in general. This system has three characteristics which determine its response: its mass (m), damping (c), and stiffness (k). Three different types of inputs can be applied to the system: a step function, an impulse, or a displacement input. The step function is straightforward; it is a standard Simulink source block. In this model, the impulse is modeled by combining two step functions. For more information this and other ways to model impulses in Simulink, see the tutorial specific to impulse responses. The displacement input is applied by adding an initial condition in the init_disp integrator block. When the model is run, it outputs to the workspace the displacement, velocity, and acceleration of the system. Accelerometer The section of the model which imitates the behavior of an accelerometer is shown in Fig. 6. Fig. 6. Portion of Simulink model which models the accelerometer. The acceleration of the system is converted to an accelerometer output by multiplying by a sensitivity (in volts per m/sec 2 ) to produce an ideal accelerometer output in volts. This is how the data shown in Fig. 1 was produced. This accelerometer output is considered ideal because it assumes that the accelerometer perfectly measures the acceleration; if the accelerometer voltage is divided by the sensitivity then the exact acceleration of the system is determined. In practice, however, the accelerometer output could be corrupted by any of several problems. The problems which can be modeled here are bias, drift, and random noise. Bias: A DC offset of the signal can be caused by the accelerometer s signal conditioning circuitry. The signal conditioner converts the output charge from the piezoelectric material in the accelerometer to a voltage. This DC bias could be eliminated by AC coupling the signal, but for measurements on systems with low frequencies this is often not practical. Drift: Drift occurs when the energy contained in the signal is not balanced about the x-axis. The capacitance in the signal conditioning system tends to acquire a net positive or negative charge (depending on whether the signal is more positive or more negative) so the signal will drift positive or negative. Random noise: In this Simulink model, the level of the random noise can be specified. The most likely source of random noise in a laboratory setting is nearby electrical devices such as electrical wiring or computers. 4

These factors are combined, and the resulting accelerometer output is referred to as the realworld accelerometer output, because it simulates issues that are seen in actual measurements. The plot shown in Fig. 2 is an example of this. LVDT Fig. 7 shows the section of the Simulink model which models the LVDT. Fig. 7. Portion of Simulink model which models the LVDT. Similar to the accelerometer, an ideal LVDT output is produced by multiplying the displacement of the system by a sensitivity in V/m. Bias: A DC offset can be added. This occurs in real measurements when the LVDT is not perfectly zeroed when the system is at a position of zero displacement. Noise: Sinusoidal noise can also be added to the LVDT signal. 60 Hz noise is most commonly seen, this is generally caused by nearby electrical wiring These signals are added into the LVDT signal, and the resulting messy signal is referred to as the real-world LVDT output. This signal is output to the workspace, but it is also put through a simple filter. The filter appears as the RC circuit low-pass filter subsystem in Fig. 7 above. Low-Pass Filter Fig. 8 shows the contents of this subsystem. Fig. 8. Contents of RC circuit low-pass filter subsystem. 5

This is a simple first-order system, an RC circuit, which acts as a low-pass filter. For more information on RC circuits and filtering, see the tutorials specific to first-order systems. By changing the RC value of this model, the cut-off frequency of the filter is changed. The input and output points before and after the filter allow you to view the frequency response of the filter. GRAPHICAL USER INTERFACE (GUI) Although the properties of the Simulink model can be changed directly by modifying the properties of the various blocks, they can be varied more easily using the GUI. When the GUI is first opened, it will appear as shown in Fig. 9. Fig. 9. Graphical User Interface. The interface consists primarily of slider bars and text boxes which can be used to change the parameters of the model. If a value is entered which is outside the range of the slider, the slider and the textbox will reset to the last valid value. The label for each different parameter (mass, LVDT bias, etc.) is followed by a one or two letter abbreviation (m, Lb) by which it is referred to in the list box. The following subsections discuss the different controls available on the GUI. 6

System Characteristics This section of controls, shown in Fig. 10, allows the user to set the mass, damping, and stiffness properties of the mass-spring-dashpot system. Fig. 10. Controls for setting the system characteristics. It should be noted that the damping can be set to a negative value, which will result in an unstable system. Initial Condition and Forcing Functions The initial displacement of the system and the forcing functions (impulse or step) can be set using the controls shown in Fig. 11. The impulse height and step height values are in Newtons. Fig. 11. Controls for setting initial condition and forcing functions. Accelerometer The properties of the accelerometer can be set using the controls shown in Fig. 12. 7

Fig. 12. Controls for setting the properties of the accelerometer. The user can set the sensitivity of the accelerometer, in V per m/s 2. A bias, or DC offset in volts, can be added using the second control. A drift may also be added by setting a positive or negative slope in V per second. To add random noise to the accelerometer signal, click the checkbox and then set the level using the slider bar or textbox. LVDT The controls for the LVDT portion of the model are shown in Fig. 13. Fig. 13. Controls for setting the properties of the LVDT. Similar to the accelerometer, the sensitivity of the LVDT can also be set. The second control sets a DC offset or bias. The third control changes the amplitude of sinusoidal noise on the signal, and the fourth control (which will become active if the noise amplitude is not equal to 0) allows the frequency of the sinusoidal noise to be changed. RC Circuit Low-Pass Filter on LVDT Fig. 14 shows the control to set the RC value of the low-pass filter circuit on the LVDT. 8

Fig. 14. Control for setting the RC value of the low-pass filter. Running Simulation and Plotting The bottom section of the GUI, shown in Fig. 15, contains the controls for running the simulation, storing the results, and plotting. Fig. 15. Controls for simulating, storing results, and plotting. Press the Simulate and store results button to run the Simulink model and store the results. Depending on the speed of the computer being used, this may take a few moments. When the simulation is complete, a label for the run such as Run 1 will appear in the list box, followed by the parameter values used in that run. Above each column is the one or two letter abbreviation for the parameter listed. Each time the Simulate button is pressed, a new row appears in the list box. Clicking the Remove button will delete each selected row in the box. To select multiple rows hold down the Control key while clicking. If there are data listed in the list box, the plotting controls will become active. To plot data, select a run or runs in the list box and then check the boxes for the desired output (displacement, velocity, etc). Clicking the Plot button will then cause a figure to appear with the desired plots, as shown in Fig. 16. 9

Fig. 16. Plotting results. The same output can be plotted for multiple runs, different outputs from the same run can be plotted, or any combination of these. Outputting Data to File The output from the GUI can be output to a file, which can then be imported into Excel. To do this, enter the desired filename ("data" is the default) into the text box shown in Fig. 17. Fig. 17. Control for outputting data to file. Then click "Output to file." All of the available data (displacement, velocity, etc.) for the selected run, along with the model properties for that run, will be saved in a file in the current working directory. 10