Easy Transfer Function Measurements with LabVIEW 6i (Lab Skill Exercise X-1)

Similar documents
ME 365 EXPERIMENT 7 SIGNAL CONDITIONING AND LOADING

ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS

Lab 3: RC Circuits. Construct circuit 2 in EveryCircuit. Set values for the capacitor and resistor to match those in figure 2 and set the frequency to

Lab 6: Building a Function Generator

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering

Part 1. Using LabVIEW to Measure Current

LAB #7: Digital Signal Processing

EE 462G Laboratory #1 Measuring Capacitance

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS

Practical 2P12 Semiconductor Devices

Fig. 1. NI Elvis System

Build Your Own Bose WaveRadio Bass Preamp Active Filter Design

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

ELEG 205 Analog Circuits Laboratory Manual Fall 2016

Operational Amplifiers

Auntie Spark s Guide to creating a Data Collection VI

LAB II. INTRODUCTION TO LABVIEW

Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives:

Operational Amplifiers 2 Active Filters ReadMeFirst

Physics 303 Fall Module 4: The Operational Amplifier

EE 3305 Lab I Revised July 18, 2003

GENERATION OF SIGNALS USING LABVIEW FOR MAGNETIC COILS WITH POWER AMPLIFIERS

Laboratory Experiment #1 Introduction to Spectral Analysis

EE 210 Lab Exercise #5: OP-AMPS I

PHY 351/651 LABORATORY 5 The Diode Basic Properties and Circuits

EK307 Passive Filters and Steady State Frequency Response

ECE 2201 PRELAB 6 BJT COMMON EMITTER (CE) AMPLIFIER

PART I: The questions in Part I refer to the aliasing portion of the procedure as outlined in the lab manual.

EK307 Active Filters and Steady State Frequency Response

BME/ISE 3512 Bioelectronics Laboratory Two - Passive Filters

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 4 SINGLE STAGE AMPLIFIER

Name: Resistors and Basic Resistive Circuits. Objective: To gain experience with data acquisition proto-boards physical resistors. Table of Contents:

ECE 3155 Experiment I AC Circuits and Bode Plots Rev. lpt jan 2013

Pre-Lab. Introduction

PURPOSE: NOTE: Be sure to record ALL results in your laboratory notebook.

RC and RL Circuits Prelab

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

Sallen-Key_High_Pass_Filter -- Overview

Lecture 2 Analog circuits. Seeing the light..

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

Lab 1B LabVIEW Filter Signal

Lab 7: Let s Make a Little Noise

VCC. Digital 16 Frequency Divider Digital-to-Analog Converter Butterworth Active Filter Sample-and-Hold Amplifier (part 2) Last Update: 03/19/14

29:128 Homework Problems

ECE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

ME 461 Laboratory #2 Timers and Pulse-Width Modulation

Real Analog - Circuits 1 Chapter 11: Lab Projects

Class #7: Experiment L & C Circuits: Filters and Energy Revisited

PHYC 500: Introduction to LabView. Exercise 9 (v 1.1) Spectral content of waveforms. M.P. Hasselbeck, University of New Mexico

EE 422G - Signals and Systems Laboratory

Magnitude and Phase Measurements. Analog Discovery

The above figure represents a two stage circuit. Recall, the transfer function relates. Vout

LIC & COMMUNICATION LAB MANUAL

Lab #2: Electrical Measurements II AC Circuits and Capacitors, Inductors, Oscillators and Filters

LLS - Introduction to Equipment

ECEN 325 Lab 5: Operational Amplifiers Part III

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

ActiveLowPassFilter -- Overview

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

LABORATORY 7 v2 BOOST CONVERTER

Lab Session 4 Hardware

The Oscilloscope. Vision is the art of seeing things invisible. J. Swift ( ) OBJECTIVE To learn to operate a digital oscilloscope.

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

Welcome to your second Electronics Laboratory Session. In this session you will learn about how to use resistors, capacitors and inductors to make

Lab 15: Lock in amplifier (Version 1.4)

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page!

Using Signal Express to Automate Analog Electronics Experiments

Frequency Selective Circuits

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009

LabVIEW Basics Peter Avitabile,Jeffrey Hodgkins Mechanical Engineering Department University of Massachusetts Lowell

Laboratory 4. Bandwidth, Filters, and Diodes

ELEG 205 Analog Circuits Laboratory Manual Fall 2017

EE 233 Circuit Theory Lab 3: First-Order Filters

ECE4902 C Lab 7

Use of the LTI Viewer and MUX Block in Simulink

EXPERIMENT 4: RC, RL and RD CIRCUITs

Notes on Experiment #1

1.5k. (a) Resistive Circuit (b) Capacitive Circuit

Lab 3: AC Low pass filters (version 1.3)

OPERATIONAL AMPLIFIERS (OP-AMPS) II

Lab 9: Operational amplifiers II (version 1.5)

Laboratory 4: Amplification, Impedance, and Frequency Response

EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab. Prelab Part I: RC Circuit

H represents the value of the transfer function (frequency response) at

10. Computer-Assisted Data Acquisition and Analysis

E84 Lab 3: Transistor

BME 3512 Bioelectronics Laboratory Two - Passive Filters

Lecture 2 Analog circuits. Seeing the light..

Cir cuit s 212 Lab. Lab #7 Filter Design. Introductions:

Low Pass Filter Introduction

EXPERIMENT 4: RC, RL and RD CIRCUITs

EE 2274 DIODE OR GATE & CLIPPING CIRCUIT

Electronics. RC Filter, DC Supply, and 555

AC Circuits. "Look for knowledge not in books but in things themselves." W. Gilbert ( )

2 Oscilloscope Familiarization

Lab 2: Introduction to NI ELVIS, Multisim, and LabVIEW

EXPERIMENT 10: SINGLE-TRANSISTOR AMPLIFIERS 10/27/17

Experiment # 4. Frequency Modulation

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

Transcription:

Easy Transfer Function Measurements with LabVIEW 6i (Lab Skill Exercise X-1) To exploit fully the potential for computer-based measurements offered by LabVIEW 6i, you need to use your computer and its installed DAQ board for three tasks: 1. Supplying the test signals used for input (analog output, abbreviated AO). 2. Acquiring and storing the measured input and output signals from the circuit (analog input, abbreviated AI), and 3. Computing desired results from the measured data, such as the circuit s transfer function, H ) in this example. One important additional specification: the computer must perform the AO and AI simultaneously in order for the measurement to be meaningful. In the LabVIEW library found at LabVIEW\examples\daq\anlog_io, there is a set of ready-made VI s you can use for this purpose. Choose the Simul AI/AO Buffer (xxx) VI appropriate for your DAQ board and open it. You will see a front panel that looks like Fig. 1. Fig. 1. Front panel 1

The following paragraph summarized this VI s operation. Look for the bold-face words in this paragraph on the Fig. 1 front panel: This VI will perform (nearly) simultaneous AO and AI. It calculates sample values for an output waveform and stores them in an output buffer of assigned size. The DAQ board outputs the sequence of voltages in the output buffer at the assigned update rate. At essentially the same time, the DAQ board acquires samples by scanning each of the assigned input channels at the assigned scan rate. It writes these sample values into an input buffer of assigned size, and successively plots snapshots of the acquired waveforms on the acquired data waveform graph. The number of samples used to plot each of the waveforms is the number of scans to read at a time. If all you want to do is measure input and output voltages as functions of time, you can run this VI as is, just setting the scan and update rates appropriately. If your circuit under test were a series RC circuit with the output taken across the capacitor, your wiring diagram for the measurement would look like Fig. 2. Fig. 2. Wiring diagram for input and output measurements using a DAQ board. The front panel after such a measurement looks like Fig. 3. Note how the capacitor voltage charges up and down exponentially, as expected for this circuit. 2

Fig. 3. Using the Simul AIAO VI as an oscilloscope to compare input and output waveforms for a series RC circuit like the one in Fig. 2. So far, all you can do with this VI is measure input and output signals from a circuit, Tasks 1 and 2 of the three set forth at the beginning of this document. And you can only do that for a limited set of input functions, the sine wave, square wave, sawtooth and triangle waves available at the signal type control on the front panel in Fig. 3. In order to measure the transfer function of a circuit, the goal of this exercise, you will need to perform Task 3 also, which will involve calculating the transfer function magnitude and phase from the measured input and output waveforms. Circuit theory gives the transfer function in terms of the input and output as functions of time as follows: { vout ( t)} Vout ( ) H ( ), where the operation, { v( t)}, is the complex one-sided { vin ( t)} Vin ( ) Fourier transform of the time signal, v(t). LabVIEW 6i includes a VI called FrequencyResponseFunction (Mag-Phase).vi that performs this calculation on a measured pair of waveforms. It will also take an average over many measurements, if desired. You can find this VI in the Functions Pallette of LabVIEW under Analyze -> Waveform Measurements. 3

You do not have to modify the the Simul AI/AO Buffer (xxx).vi much in order to measure transfer functions. First, open its Diagram. It will look like Fig. 4. Fig. 4. The Simultaneous AOAI VI diagram. There are two modifications to be made, in the locations shown: 1. Add a transfer function calculation inside the While Loop (gray-outlined rectangle at right), and 2. Modify the Compute Waveform.vi at the lower left to include a broadband noise input. Figure 5, below, shows how to make the first modification. 4

Fig. 5. Modification 1: incorporating the transfer function calculation using the FrequencyResponseFunction(Mag-Phase).vi. (Orange arrow) A brief summary of how you build this VI follows: 1. Create two waveform graphs on the front panel: name one Magnitude and the other Phase. 2. Use two Index Array.vi s to separate the two acquired signals: the output (Column 0) and the input (Column 1). 3. Use two BuildWaveform.vi s to make these columns of data into waveforms. 4. Drop a FrequencyResponseFunction(Mag-Phase).vi. into the diagram and wire the two waveforms to its X and Y terminals. You can right-click on this VI, select Help, and get a short description of how it works. 5. Wire the Magnitude and Phase outputs of the FrequencyResponseFunction(Mag-Phase).vi to the waveform graphs of the same names. 6. Right-click on each of the other inputs to the FrequencyResponseFunction(Mag-Phase).vi and choose Create Control. This will automatically produce the correct controls on the front panel. The next step is to modify the ComputeWaveform.vi to include a noise waveform. If you double-click on the ComputeWaveform.vi where you see it within the diagram for 5

the Simultaneous AOAI VI, you will see the diagram below in Fig.6. Fig. 6. The ComputeWaveform.vi diagram, showing the case structure to be modified. Right-click on the case structure and add a case after case 3 as shown below in Fig. 7. Fig. 7. New Case 4 containing a UniformWhiteNoise.vi. Note that you need to re-label the cases so that the new last case has dots after it (4..) and the old last case has no dots (3). Name your modified VI ComputeWaveform(1).vi, and replace the old ComputeWaveform.vi with the new one in the diagram of your main VI. You will also need to delete the signal type control on the front panel of the main VI, and then go back to the diagram and place the wiring tool on the signal type input of the new ComputeWaveform(1).vi, then choose Create Control. This will create a new control on the front panel that has all of the waveform options available. 6

If you ve done the above steps correctly, you should be ready to measure a transfer function. Fig. 7. Front Panel of the Transfer Function measuring VI, showing results for an RC low-pass filter like the circuit in Fig. 2. In Fig. 7, the X-scales of the two waveform graphs named magnitude and phase, were switched to logarithmic mapping. You can make these changes by right-clicking on the graphs. The view control switches (lower center of the front panel) were set to display magnitude on a db scale, and to display the phase in degrees. The averaging parameters switches control how the averages over multiple measurements are calculated. Since the network whose transfer function was measured is the one in Fig. 2, we would expect that a Bode plot of its transfer function magnitude would be flat near zero db out to some cutoff frequency, and then roll off at a constant slope (in db/decade) above the cutoff frequency. This is exactly what appears in the magnitude graph. We would also expect the phase shift for this network to be zero at low frequency, and decrease toward 90 o at high frequencies. The measured results agree with this theoretical expectation up to a few hundred Hz of frequency, and then seem to diverge. The fundamental cause of this disagreement between theory and experiment in the phase measurements can be found in the magnitude measurements. Notice that, at the higher frequencies, the magnitude has dropped by at least 20 db. This means that the phase of the (very small) output voltages at these higher frequencies is strongly affected 7

by any noise in the measuring circuitry. You can see this noise better if you run a measurement with the averaging mode control set to no averaging. Supplementary Lab Skill Exercise X-1: (Print this part and turn it in) 1. (10%) Put together an RC circuit like the one in Fig. 2 on your proto-board. Wire it to the AO and AI channels of the DAQ interface as in Fig. 2. 2. (10%) From the values you chose for R and C, calculate the time-constant of your circuit. Show your calculation and answer here: 3. (20%) Open the Simul AI/AO Buffer (xxx).vi, and use it to measure the time response of your circuit to a square wave. Print out a front panel showing your results and attach it here: 8

4. (20%) Modify the ComputeWaveform.vi in the Simul AI/AO Buffer (xxx).vi diagram so that it lets you supply a noise waveform as described above. Run your VI with noise selected as the waveform. Your front panel should look like this. Attach a printout of your front panel over this one. 5. Modify the Simul AI/AO Buffer (xxx).vi to measure transfer functions as described above. Measure the transfer function of your RC circuit up to at least 5000 Hz. Set the number of averages al low as you can consistent with accurate results. 9

a) (20%) print out a copy of the diagram of your VI and attach it here. 10

b) (20%) Print out a front panel showing the results of your measurements and attach it here. If you were unable to make your own transfer function measuring VI to use, you may use the one provided on the lab computer system, but you will not get the 20% for part 5a). 11