EE 448: Sensors and Actuators. Laboratory Module #1. Input and Output. Assigned: January 12, 2009 Due: 12:30 PM, Tuesday January 20, 2009 (In CSE 236)

Similar documents
Lab 4 - Data Acquisition

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Cell Phone Vibration Experiment

Data Acquisition Using NI-DAQmx

Work with Arduino Hardware

Building a Simulink model for real-time analysis V Copyright g.tec medical engineering GmbH

DSP Laboratory: Analog to Digital and Digital to Analog Conversion

PropScope USB Oscilloscope

Lab 3: Introduction to Data Acquisition Cards

CHAPTER 11: Flip Flops

Lab 1: The Digital Oscilloscope

Timer A (0 and 1) and PWM EE3376

Massachusetts Institute of Technology

Transmitter Interface Program

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Annex: VISIR Remote Laboratory

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

DATENBLATT USB-DIO32HS USB-DIO32HS-OEM. HABEN SIE FRAGEN ODER WÜNSCHEN SIE EIN INDIVIDUELLES ANGEBOT? Unser Team berät Sie gerne persönlich.

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

Instructions for Setting the T560 Digital Delay Generator for the Target Delay

NEW. EVEN MORE data acquisition and test stand automation

AC Measurements Using the Oscilloscope and Multimeter by Mr. David Fritz

RLC Series Resonance

Lab Experiment 1: The LPC 2148 Education Board

Disturbance Recoder SPCR 8C27. Product Guide

EPSON Perfection 1650/1650 PHOTO. Scanner Parts. Scanner Specifications. Basic Specifications. device Effective pixels

User s Guide DDS-3X25 USB ARBITRARY FUNCTION GENERATOR

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Implementing PID Temperature Control Using LabVIEW. Abstract. Introduction

How to use the OMEGALOG software with the OM-SQ2010/SQ2020/SQ2040 Data Loggers.

EARTH PEOPLE TECHNOLOGY SERIAL GRAPH TOOL FOR THE ARDUINO UNO USER MANUAL

minilab 1008 USB Device for Analog and Digital I/O User's Guide

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

Trigno/Vicon System Integration

AN3252 Application note

Experiment 8 : Pulse Width Modulation

EVAL-UFDC-1/UFDC-1M-16

EET 310 Programming Tools

Dash 18X / Dash 18 Data Acquisition Recorder

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

PSPICE TUTORIAL (BASIC)

Technical Manual. FAN COIL CONTROLLER COOLING or HEATING ANALOG or PWM Art A

Performing Amplifier Measurements with the Vector Network Analyzer ZVB

Measuring, Controlling and Regulating with labworldsoft

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

2.6. In-Laboratory Session QICii Modelling Module. Modelling Module Description

Quick Start Guide for High Voltage Solar Inverter DC-AC Board EVM. Version 1.3

Experiment 5. Strain Gage Measurements

Workshop 7 PC Software - Tracker

Inductors in AC Circuits

Arduino Lab 1 - The Voltage Divider

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

Lab 6 Introduction to Serial and Wireless Communication

6703/6704 ANALOG OUTPUT DEVICE CALIBRATION PROCEDURE

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

Modbus and ION Technology

TESTER MMS FG-220 OPERATING INSTRUCTIONS. valid from 2/2015. Machine Monitoring Systems

Accurate Measurement of the Mains Electricity Frequency

Conversion Between Analog and Digital Signals

UM A. DT9837 User s Manual

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

How to connect your Victron to a computer with VE Bus Quick Configure

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

Technical Specifications: The specifications represent a particular hardware platform. Application-specific software is provided.

Electronic WorkBench tutorial

INTRODUCTION TO SERIAL ARM

X8 Option 2 - Technology

SIGNAL GENERATORS and OSCILLOSCOPE CALIBRATION

User Guide FFFA

S7 for Windows S7-300/400

DS1104 R&D Controller Board

Measuring Temperature withthermistors a Tutorial David Potter

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Technical data. General specifications. Indicators/operating means. Electrical specifications Operating voltage U B Power consumption P 0 Interface

ISP Engineering Kit Model 300

ECONseries Low Cost USB DAQ

Data Acquisition in LabVIEW

The Answer to the 14 Most Frequently Asked Modbus Questions

Analog Devices Welcomes Hittite Microwave Corporation NO CONTENT ON THE ATTACHED DOCUMENT HAS CHANGED

4.1 DESCRIPTION OF CONTROLS cont.

NETWORK ENABLED EQUIPMENT MONITOR

USB to VGA Adapter USB2VGAE2. Instruction Manual. USB 2.0 to VGA Multi Monitor External Video Adapter

PNOZmulti Configurator V8.1.1

ezsystem elab16m Project 1F: Alarm System (Full Project description)

ABB Drives. User s Manual. Pulse Encoder Interface Module RTAC-01

Electrical Resonance

User s Guide DSO-2150 USB PC Based Digital Oscilloscope Operation Manual

Allegion PIM-400/485 and AD-400 Installation Application Note. 1.0 Hardware Requirements. 2.0 Software/Licensing Requirements

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives. Laboratory #3 Figures of Merit

The Universal DAQ Device. Connect and measure immediately!

A-145 LFO. 1. Introduction. doepfer System A LFO A-145

2013 G Miller. 3 Axis Brushless Gimbal Controller Manual

Using LabVIEW to Measure Temperature with a Thermistor

Fiber Optic Selector Guide for Analog & Digital Data Links, Contact Closures & Multiplexers

EPSON Perfection 2450 PHOTO. Scanner Parts. Scanner Specifications. Basic Specifications. US letter or A4 size ( inches [ mm])

DMX2PWM 9 Channel Dimmer Setup Manual

Siemens and National Instruments Deliver Integrated Automation and Measurement Solutions

Transcription:

EE 448: Sensors and Actuators Laboratory Module #1 Input and Output Assigned: January 12, 2009 Due: 12:30 PM, Tuesday January 20, 2009 (In CSE 236) Note: Labs will usually be due in-class on Mondays Objectives The objective of this Module is to use the I/O card to acquire data, generate a signal, and to implement simple discrete transfer functions in Labview. The first transfer function is zero order hold with delay (due to computation), and the second one transforms an input duty-factor to a pulse-width modulated signal with that duty factor. Once you complete this module, you should be familiar enough with the card and the techniques used to program with it to start using it in control applications. You Will Need... To complete this module, you will need 1. A USB-1208FS I/O card. 2. A USB cable 3. A Windows PC 4. Software for communicating with the I/O board: InstaCal, Labview, and the Universal Library. 5. An oscilloscope. 1

6. A function generator. 7. Wire. All of this whould be available in Sieg 233. 1 Connect and Test the I/O Card First, you connect the I/O card to a computer and check that it is working properly. You will use the USB-1208FS for almost every laboratory module in this course, and the following procedure will be the first thing you do each time. 1. Connect the USB-1208FS card to computer using a USB cable. 2. Open InstaCal. A prompt to add the board will be displayed. If the prompt is not displayed, click the add board icon in the toolbar at the top of the screen and select the appropriate device from the list. The USB-1208FS card, labeled Board 0 should appear on the PC board list. 3. Double click on card s icon to display the board configuration options. Select the Flash LED option. Verify that the LED on the board blinks (it is underneath the sticker). This indicates that the board is working properly. If you detach and re-attach the USB-1208FS from the computer, you may need to do this again. 2 Acquire an Analog Input Signal The USB-1208FS card can be used to measure analog voltages and capture signals for data analysis. Using the analog in channel of the card, you will eventually measure the output of sensors attached to a control apparatus. For now, you will simply record some signals using the board s high sample rate input. 1. Configure the I/O card, the function generator and oscilloscope as shown in Figure 1. The signal will be input to CH0 IN. Note that CH0 and CH1 are a differential input, thus you also need to ground CH1, as shown in the figure. Otherwise the CH0 value will be relative to an unknown, floating signal. 2. Capture a 20 Hz sine wave from the function generator. To do this, set the function generator to generate the appropriate sine wave. For this and all sine waves in this module, be sure that you have an offset so that the voltages generated are all positive. Check with the oscilloscope that the appropriate signal is being generated. 3. To capture the signal, open the Tracer DAQ program and figure out how to acquire data from CH0 IN. Note that the default view is a strip chart. Change the view to Scope View for an oscilloscope-like view. 2

Computer Function Generator USB Port Channel 1 Probe Probe Ground Pin 1 CHO IN HI Pin 2 CHO IN LO Oscilliscope 1208FS I/O Card Channel 1 Probe Ground Probe Pin 12 AGND Pin 13 D/A OUT 0 Figure 1: Hardware configuration for this Module. You will also need to use a second oscilloscope probe connected to the output of the function generator. 4. Change the frequency of the signal using the function generator to 40 Hz, 80 Hz, 160 Hz and so on. What happens to the measured version of the signal? For Your Writeup: Describe the differences between the captured signal and the signal shown on the oscilloscope. Describe how the quality of the captured data changes as the frequency is increased. Note: The function generators have a 50-ohm output, but sending them into a highimpedance input (not loaded to 50 ohms) means that you get double the voltage out than the function generator indicates. Believe the oscilloscope, not the function generator. 3 Use the I/O Card with Labview In the previous section, we used the I/O card in buffered data mode. For example, when you acquire data at 5000 samples per second, it is not being sent to the computer at that rate. It is being buffered by the card and then sent to the computer at whatever rate the USB bus can handle. This is not particularly useful for control applications. You will now investigate the use of the I/O card with which you use the arrival of data to trigger an action (in this case the sending of data). The amount of time it takes 3

between input samples is the fundamental limitation of this (or any) I/O card for control applications. For most of the course, we will use Labview to communicate with the I/O card. The installation of Labview in Sieg 233 has libraries for communicating with the USB-1208FS. Use the same hardware configuration as you did for the previous task. Set the function generator so that it produces a 1 Hz sine wave. Close Tracer DAQ and start Labview. 1. Download the EE448mod1.vi from the course wiki and open it. The code is essentially a discrete approximation of the transfer function G(s) = 1. Look up all of the blocks in the Labview help. You will need to gain some facility with these and the other I/O functions, so make sure you know what these do. 2. Set the function generator to generate a 1 Hz sine wave. Connect channel one of the scope to the output of the card and channel two to the output of the generator. As before, the output of the generator should also be sent to the input of the card. Execute the above code and set the oscilloscope so that you can see one period of the sine wave. Try several frequencies to see how well the computer can track the sine wave. For Your Writeup: Using the oscilloscope, zoom in on the I/O card output. Estimate the time between updates to the signal. What is the frequency of the above for loop? For Your Writeup: Determine the delay of the system. That is, what is the phase lag of the generated signal from the original signal? For Your Writeup: Make sure you get visual data from the Labview front panel that is useful for your report. You may need to export the data on the strip-chart into a format that works for your report. 4 Generate a PWM Signal This week you will create a pulse-width modulated (PWM) signal that you will use next week to control a peltier module in the temperature plant. A PWM signal with period KT (where T is the minimum sample period of the DAQ interface, and K is some multiple of that) and duty factor p (where 0p1) is a signal that is high for pkt seconds, then low for (1p)KT seconds, and then repeats (hint: look up PWM on the internet somewhere). 4

For this exercise, save the.vi with a new name and then modify it to take the input from CH0 IN, convert it to a duty factor, and then output a PWM signal with that duty factor. The DAQ interface has both analog and digital outputs, and here we are using the analog output. To accomplish this, first notice the box [ i ] in the lower left of the while loop. This is the loop iteration, and increments by one each time through the loop. If you mod this by some appropriate number (the PWM period), you will get a sawtooth signal. One tooth corresponds to one PWM cycle. Dividing that signal by the PWM period will scale it onto a range 0 to 1. You can then compare the sawtooth signal with the input duty factor, and if the sawtooth is less than the duty factor then output low, and if greater or equal then output high (or vice versa). In LabVIEW, the blocks youll need are Quotient & Remainder, Divide, Greater or Equal, and Select. By the way, there is more than one way to do this exercise these are just suggestions. Assume that the duty factor (with range 0 to 1) is determined from the input voltage V in by the formula p = V in /V max, where you specify the constant V max. You will also specify the PWM period, KT, and should be able to explain the effect that different values of K have on your ability to create PWM signals with different duty factors. For example, what is the difference between using K = 3 versus K = 100? To test your system, apply a constant voltage to the duty-factor input, e.g. the voltage corresponding to 25%, run your.vi, and set the oscilloscope to visualize one or two periods of the PWM signal. Then change the duty factor and see what happens (you can use a low freq square wave to alternate between two duty factors). For Your Writeup: Include a figure showing your.vi diagram, and explain how it works. For Your Writeup: Include a figure showing the PWM signal(s) you created for different values of p. For Your Writeup: Explain the relationship between the PWM period, the resolution of the duty factor and the frequency of the system 5 Reminder: Report Guidelines 1. Title, group number, authors and lead author, percentage of work done by each. 2. Brief abstract stating objectives and main results. 5

3. Intro providing background, and goals of the module. 4. Discussion of relevant theory, equations. 5. All significant calculations, and not the insignificant ones. 6. Results, figures, tables, etc. 7. Discussion and conclusion. 8. List of references. 6