Labview VI Example Virtual Filters Written by: Dan Lankow 2014



Similar documents
Lab 4 - Data Acquisition

EET 310 Programming Tools

Exercise 10: Basic LabVIEW Programming

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

This activity will show you how to draw graphs of algebraic functions in Excel.

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Cell Phone Vibration Experiment

Inductors in AC Circuits

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

RLC Series Resonance

First Bytes Programming Lab 2

Series and Parallel Resistive Circuits

EXPERIMENT NUMBER 8 CAPACITOR CURRENT-VOLTAGE RELATIONSHIP

Lab 3: Introduction to Data Acquisition Cards

Lab #9: AC Steady State Analysis

Experiment 2 Diode Applications: Rectifiers

Electronic WorkBench tutorial

Lab 1: Introduction to PSpice

Introduction to the TI-Nspire CX

Data Acquisition Using NI-DAQmx

Evaluation copy. Build a Temperature Sensor. Project PROJECT DESIGN REQUIREMENTS

LabVIEW Day 6: Saving Files and Making Sub vis

Creating tables of contents and figures in Word 2013

Introduction to LabVIEW for Control Design & Simulation Ricardo Dunia (NI), Eric Dean (NI), and Dr. Thomas Edgar (UT)

RC & RL Transient Response

LabVIEW Lesson 5 Clusters

Creating a Gradebook in Excel

CATIA Basic Concepts TABLE OF CONTENTS

Petrel TIPS&TRICKS from SCM

Step Response of RC Circuits

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

0 Introduction to Data Analysis Using an Excel Spreadsheet

Tutorial 2: Using Excel in Data Analysis

Numerical Parameters Analysis of Boonton 4540 Peak Power Meter

Excel 2007: Basics Learning Guide

Introduction to Simulink

Hands-On: Introduction to Object-Oriented Programming in LabVIEW

Excel 2007 Basic knowledge

Creating a PowerPoint Poster using Windows

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

RC Circuits and The Oscilloscope Physics Lab X

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Scientific Graphing in Excel 2010

Student Exploration: Circuits

Jump-Start Tutorial For ProcessModel

Annex: VISIR Remote Laboratory

Text Basics. Introduction

I ntroduction. Accessing Microsoft PowerPoint. Anatomy of a PowerPoint Window

Dash 18X / Dash 18 Data Acquisition Recorder

ELC 4383 RF/Microwave Circuits I Laboratory 3: Optimization Using Advanced Design System Software

Lab 1: The Digital Oscilloscope

Tutorial for Tracker and Supporting Software By David Chandler

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Reading assignment: All students should read the Appendix about using oscilloscopes.

Using Excel as a Management Reporting Tool with your Minotaur Data. Exercise 1 Customer Item Profitability Reporting Tool for Management

Lab 1: Full Adder 0.0

Introduction to Word 2007

TestManager Administration Guide

SW43W. Users Manual. FlukeView Power Quality Analyzer Software Version 3.20 onwards

FREE FALL. Introduction. Reference Young and Freedman, University Physics, 12 th Edition: Chapter 2, section 2.5

Tutorial for Programming the LEGO MINDSTORMS NXT

In this example, Mrs. Smith is looking to create graphs that represent the ethnic diversity of the 24 students in her 4 th grade class.

Hands-on Guide. FileMaker Pro. Using FileMaker Pro with Microsoft Office

DSP Laboratory: Analog to Digital and Digital to Analog Conversion

Transistor Amplifiers

Creating an Event Registration Web Page with Special Features using regonline Page 1

Getting Started with Excel Table of Contents

Content Author's Reference and Cookbook

Dealing with Data in Excel 2010

USER MANUAL (PRO-CURO LITE, PRO & ENT) [SUPPLIED FOR VERSION 3]

Data Acquisition in LabVIEW

Create a Poster Using Publisher

Absorbance Spectrophotometry: Analysis of FD&C Red Food Dye #40 Calibration Curve Procedure

GENERAL SCIENCE LABORATORY 1110L Lab Experiment 6: Ohm s Law

Bipolar Transistor Amplifiers

School of Electrical and Information Engineering. The Remote Laboratory System. Electrical and Information Engineering Project 2006.

Creating a table of contents quickly in Word

Hands On ECG. Sean Hubber and Crystal Lu

MATERIALS. Multisim screen shots sent to TA.

Electrical Resonance

Designing a Graphical User Interface

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

Impedance Matching of Filters with the MSA Sam Wetterlin 2/11/11

Data Visualization. Prepared by Francisco Olivera, Ph.D., Srikanth Koka Department of Civil Engineering Texas A&M University February 2004

Dash 8Xe / Dash 8X Data Acquisition Recorder

Cool Smart Board Tricks and Tools

Introduction To Microsoft Office PowerPoint Bob Booth July 2008 AP-PPT5

Calibration and Linear Regression Analysis: A Self-Guided Tutorial

WebSphere Business Monitor V6.2 Business space dashboards

A Guide to Using Excel in Physics Lab

Basic Use of the TI-84 Plus

The Calculation of G rms

Oscilloscope, Function Generator, and Voltage Division

Advanced Programming with LEGO NXT MindStorms

AC CIRCUITS - CAPACITORS AND INDUCTORS

Using Parametric Equations in SolidWorks, Example 1

Excel Reports and Macros

COGNOS Query Studio Ad Hoc Reporting

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

Tactile and Advanced Computer Graphics Module 5. Graphic Design Fundamentals

Transcription:

PH-315 Portland State University Labview VI Example Virtual Filters Written by: Dan Lankow 2014 1. ABSTRAT For this lab, you will be introduced to Labview. You will be implementing a Low Pass, High Pass, and Band Pass filter in Labview in order to gain an understanding of Labview's operation and functionality. No previous experience with Labview will be necessary, and the analytical treatment of these filters is provided. You will also be asked to implement indicators which display the 3 db breakpoint. 2. INTRODUTION Labview is a software programming tool which allows for the design and implementation of virtual instrumentation. The program is categorized as a Graphical User Interface (GUI). The presentation of the code in Labview is a visual block diagram which describes the data flow within the VI. Labview can take an input, in this case the input will be virtual, however with proper interfaces you could sample a real signal, and manipulate in accordance with the design of a Virtual Instrument, VI, and output the manipulated data. For example, it can take data from a sensor, transducer, and plot the voltages it samples, (i.e. it can function as an analog to digital converter as well). It can manipulate that data in a great many ways due to the sheer quantity, and versatility of the various built in functions. In this application, we will use Labview to simulate an input signal, and simultaneously monitor the action of low pass, high pass, and band pass filters. A note on Labview layout. Labview consists of two complementary components: i) The Front Panel, which displays your controls, and indicators. It functions as the user interface for the VI. ii) the Block Diagram which displays all of your functions and express VIs. This is where all of the actual work takes place. The functions, such as mathematical operations, and express VIs, like built analysis tools and signal simulation, are located on menus, called palettes. These are generally accessible by right clicking in the Block Diagram or Front Panel, which brings up the palette menu. In addition, placing functions and express VIs in the Block Diagram will automatically place corresponding elements into the Front Panel. Among the many useful features in Labview, there are three of particular interest at this time. * The first is the ontext Help option, trl+h, which brings up a small help window which will give you information about any element you mouse over. * The second is trl+click and drag, which copies whatever element you have executed this command on. This makes large VIs much easier to create larger, more complicated VIs because any repeated elements can simply be copied directly, instead of having to open the appropriate palette and selecting it over and over again. * Finally, trl+e will swap back and forth between the Front Panel to the Block Diagram.

For this Labview example, we will need to have some familiarity with the Simulate Signal express VI, math operations, and Waveform Graphs. 1. To start, we must first simulate an input signal. This will be done by placing a Simulate Signal express VI into your Block Diagram. This is found under the Signal Analysis palette. Signal Analysis Palette, the bottom left icon is the Simulate Signal Express VI. Simulate Signal Express VI will appear as the left part of this image in you Block Diagram, and wired to a Waveform Graph, the output may look something like the right image. Notice, this express VI did not place any associated elements into the Front Panel. This is because this Express VI does not have any front panel controls directly associated with it. It does, however, require some inputs in order to run. 2. To add these we will do the following: * Simply right click on the appropriate portion of the express VI, Frequency, and Amplitude (Press trl+h, and mouse over the arrows on the left side of the Express VI to identify these inputs). * Open the reate menu, then select ontrol. Doing this will automatically wire the elements together. * Additionally, you can select the control you want from the associated palette. In this case we must connect these elements to each other. * To do so, we wire them together. Place the mouse cursor over the input or output you are looking to wire to or from. This will cause the cursor to change to a wire spool. * lick and drag to the input, or output you are trying to connect. Also, notice that controls were

placed on your Front Panel. 3. Now that we are able to drive a simulated signal, we want to see it. * Right click on the the appropriate output, again TRL+h is your best friend, it will be the lower right arrow. * Go to the reate menu, and this time choose Graph Indicator. This will insert a Waveform Graph. Notice, this placed an object on your Front Panel. This is where Labview will display the simulated signal. * Name this appropriately, such as Input. You can alter the properties, such as auto-scaling, plot legends, and so on by either right clicking the Waveform Graph in the Block Diagram, or in the Front Panel and selecting Properties. You will need to do this to allow for a large frequency range, and to increase the sample rate. A sample rate of 1000000 allows for very high frequencies to be used. This is a picture of the Front Panel display of a Waveform Graph. Please reference the Block Diagram picture for a reference of what it looks like in the Block Diagram. 4. In order to simulate a filter, we will need to simulate a resistor, and capacitor. Labview is not a circuit simulator; we will instead place a ontrol. * Navigate to the Front Panel, right clicking, Selecting Num trl, and selecting the type of control you want. Notice this time, a control has been placed on the Block Diagram. * Rename these appropriately, something like Resistance, and apacitance for instance, so you can easily keep track of them. * You will need to change the properties of these controls so their ranges are appropriate, such as 1000-1000000 for resistance, and 10-12 to 10-6 for capacitance. * It would also be nice to see what value is currently stored. By right licking in the Front Panel, and creating an indicator, we add an indicator to our Block Diagram. * We will then wire this up, as described previously, to the appropriate control. 5. It is time to build your low pass, high pass, and band pass filters. By using the equations 1, and 2, found in your previous lab. We will implement a data flow which will execute the mathematical operations to act on the signal as a filter would.

* We will need to open our arithmetic palette. Here you will find the components you need, Multiply, Square, Add, Divide, and Square Root. * Since 2π is a constant, we will add this by simply right clicking the input we want it to be associated with, in this case, it will be the input to a Multiply operation, selecting reate, then onstant. We can then enter the constant, typing in the numerical value 6.28 will do the trick. Since this is a common constant, it is also located as a default constant on the Arithmetic Palette under onstants. * Set up the operations so that your R, and values flow correctly through the math operations, all the way up until it needs to be coupled with the signal. Feel free to expand this out, and factor accordingly, you may find that the number of operations needed is lower than the provided example uses. Recall that the band pass filter is simply the product of the two filters. Low Pass Filters: High Pass Filters: X 1 V V * for X R X 2 f Out In 2 2 R 1 V V * for X R X 2 f Out In 2 2 (1) (2) 6. Now that the math is done, we need to finish the data flow. This is a good time to point out that the wires between all of the math operations so far are orange, representing numeric data. The wire from your Simulate Signal Express VI is blue with a dashed line in it. This represents dynamic data. Mixing these in an arithmetic operation will not be an issue, as the result is still dynamic data. However, in more complicated VIs, it is important to know what data type is being handed off to what kind of operation to avoid data conflicts. At this stage we cannot see our filters, and we have not wired our signal to the arithmetic operations. We must add Waveform Graphs for each filter we have added. This is very straight forward. * Again, trl+click and drag in the first Waveform Graph you created to duplicate it. * We will wire our simulated signal into the appropriate operations, and their outputs to Waveform Graphs. We now have a VI which simulates a low pass, high pass, and band pass filter. Your goal now is to modify the Front Panel and Block Diagram to include the 3 db break point. The calculation for this is available in your previous lab, I have included it here for your convenience. Similar to the previous portions of this example, you will implement the arithmetic steps necessary to calculate the 3 db break point, and add an indicator. Images of the Block Diagram, and Front Panel of this project follow. High and Low Pass: f 1 2 R (3)

Block Diagram:

Front Panel: