TECH 3821 Lab #2 Relay Driver with Computer Control

Similar documents
Dept. of Electrical, Computer and Biomedical Engineering. Instrumentation for the data acquisition laboratory

Introduction to Labview and Temperature Measurement

PHYC 500: Introduction to LabView. Exercise 16 (v 1.2) Controlling hardware with DAQ device. M.P. Hasselbeck, University of New Mexico

ENGR 1000, Introduction to Engineering Design

Figure 1: Control & Simulation Loop

Introduction to National Instruments LabVIEW and Data Acquisition (DAQ)

University of Pennsylvania. Department of Electrical and Systems Engineering. ESE Undergraduate Laboratory. Introduction to LabView

2 Lab 2: LabVIEW and Control System Building Blocks

ENGR 1000, Introduction to Engineering Design

Small rectangles (and sometimes squares like this

Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction

GEORGIA INSTITUTE OF TECHNOLOGY School of Electrical and Computer Engineering ECE 2020 Fall 2017 Lab #1: Digital Logic Module

Step-by-Step Data Acquisition Part II Exercise 2: Generating an Analog Output Waveform

Agilent 3630A Triple DC Power Supply. Agilent 34401A Digital Multimeter (DMM)

If I wanted to connect an LED and little light bulb and have them switch on and off with one switch, my schematic would look like the one below.

LABVIEW LAB SKILLS ACTIVITY 1 PROGRAMING ENVIRONMENT

Computer Interfacing Using LabView

Introduction to LabVIEW

Hands-on Lab 2: LabVIEW NI-DAQ Basics 2

COMP2611: Computer Organization Introduction to Logisim & simple combinational circuit

WHAT TO DO IF THE SERVO SYSTEM REPORTS FAILURES.

INTRODUCTION TO LABVIEW

Getting Started with LabVIEW Virtual Instruments

Pre-Laboratory #Boolean Expressions ECE 332

Homework Assignment 9 LabVIEW tutorial

CHAPTER 5. Voltage Regulator

GETTING STARTED WITH ADS

Digital Circuits. Page 1 of 5. I. Before coming to lab. II. Learning Objectives. III. Materials

Hands-on Lab 1: LabVIEW NI-DAQ Basics 1

Touch Control Switch + - R6 R4 R8 R7 CAT# Grading. Assembly Instructions by Earl D. Gates SUNY Oswego Fall Conference 2007.

OpenStax-CNX module: m Thermometer VI * National Instruments

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW

Lesson 17: Building a Hierarchical Design

Part 1. Creating an Array of Controls or Indicators

CADSOFT EAGLE TUTORIAL

COS 116 The Computational Universe Laboratory 7: Digital Logic I

Hardware: Acquiring Data and Communicating with Instruments

EE 100 DMM and DC Power Supply LabVIEW Experiment Guide

PHY 351/651 LABORATORY 1 Introduction to LabVIEW

ENGR 210 Lab1. Ohm's Law

Lab 4 - Data Acquisition

Lab Exercise 4: Analog & Digital I/O Signals

Look closely at this schematic diagram, in thid class you will be asked to construct this circuit WITHOUT using the textbook!

The mystem Project Board Quick Start

NAME EET 2259 Lab 3 The Boolean Data Type

Create a unit using United Streaming and PowerPoint. Materials: Microsoft PowerPoint, Internet access, United Streaming account

Lab Exercise 2: Data Acquisition with NI LabVIEW

-Remember to always hit Command + S every time you make a change to your project going forward.

EE 210 Lab Assignment #2: Intro to PSPICE

Ephorus Blackboard Building Block Manual For Instructors

NI LabView READ THIS DOCUMENT CAREFULLY AND FOLLOW THE INSTRIUCTIONS IN THE EXERCISES

ROBOLAB Tutorial MAE 1170, Fall 2009

LabVIEW Tutorials. T.1 Temperature Measurement and Cold Junction Compensation (CJC) LUMS School of Science and Engineering

Labview Lab 2. Vern Lindberg. April 16, 2012

Boise State University Digital Systems Laboratory

Revision Notes: July2004 Generate tutorial for single transistor analysis. Based on existing schematic entry tutorial developed for ECE410

University of Florida EEL 3701 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering Revision 0 12-Jun-16

1 1 / 1 / Due : Fri. Nov. 23 rd / Mon. Nov. 26

How to set up an Amazon Work Profile for Windows 8

Finite State Machine Lab

Page 1 of 6. ME 3200 Mechatronics I Laboratory Lab 2: LabView Computer Systems. Introduction

TUTORIAL SESSION Technical Group Hoda Najafi & Sunita Bhide

ECE 270 Lab Verification / Evaluation Form. Experiment 1

Strain and Force Measurement

Addition and Subtraction of. Rational Numbers Part 2. Name. Class. Student Activity. Open the TI-Nspire document Add_Sub_Rational_Numbers_Part2.tns.

Cadence Tutorial A: Schematic Entry and Functional Simulation Created for the MSU VLSI program by Andrew Mason and the AMSaC lab group.

1. Learn about LabView software and its different components

Physics 120/220 Lab Equipment, Hints & Tips

ACE-SDC-V3 Stepper Driver +Controller with USB 2.0 Communication

Schematic Diagram: R2,R3,R4,R7 are ¼ Watt; R5,R6 are 220 Ohm ½ Watt (or two 470 Ohm ¼ Watt in parallel)

KiCad Example Schematic ( ) Wien Bridge Oscillator

Dept. of Electrical, Computer and Biomedical Engineering. Measuring the common emitter current gain β in a bipolar junction transistor

Lesson 18: Creating a Hierarchical Block

Engineering Innovation Center LabVIEW Basics

ECE 2010 Laboratory # 2 J.P.O Rourke

Engr 123 Spring 2018 Notes on Visual Studio

How to Get Started. Figure 3

Introduction to PSpice

AUDIO AMPLIFIER PROJECT

NI mydaq HANS-PETTER HALVORSEN, Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics

Outline for Today. Lab Equipment & Procedures. Teaching Assistants. Announcements

How to Save Google Maps Offline to a Mobile Phone

PHYC 500: Introduction to LabView. Exercise 1 (v 1.3) M.P. Hasselbeck, University of New Mexico

Basic Data Acquisition with LabVIEW

lab A.3: introduction to RoboLab vocabulary materials cc30.03 Brooklyn College, CUNY c 2006 Name: RoboLab communication tower canvas icon

48-Bit Isolated Digital I/O

Linear Control Systems LABORATORY

Physics E-1bxl and PS3 Lab 4: Neuron Model 2016

Guide To Making Schematic Components For ExpressSCH

Lab 4: Introduction to ELVIS II+ Introduction to ELVIS II+

Determination of Drag Coefficient

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail

Disabled American Veterans Membership System User Manual for Members

Appendix A. Programming Power Point. Hofstra Center for Technological Literacy. Programming in

Experiment 9: Binary Arithmetic Circuits. In-Lab Procedure and Report (30 points)

Where to Start with NI ELVIS

Introduction to LabVIEW Exercise-1

SOUTHERN POLYTECHNIC S. U.

Vision Pointer Tools

Standard Logic Chips and National Instruments ELVIS Breadboarding for Combinational Logic Circuits

Transcription:

TECH 3821 Lab #2 Relay Driver with Computer Control Name: Background: One of the most basic controls in industry is the ability to turn things on and off. As we saw in Lab #1, a relay is often used to turn on / off devices. In today s lab we will use a Darlington pair transistor to turn on a relay. We will then use a National Instruments Data Acquisition Card to control the relay via a LabVIEW VI. Equipment: Relay (KRPA-11DG-12), Diode, 1K Resistor, TIP120 Darlington Pair Transistor, SC-2075 NI Breadboard, SH68-68-EP Cable, NI PCI-6014 Data Acquisition Card (in PC) Diagrams: Procedure: Build the circuit as show on the NI SC-2075 Breadboard, connect the Heathkit power supply (using A for the +12V and the 5V for the digital in). Make sure you have a common ground (ie both the +5V and +12V ground are connected together and connected to the emitter). Touch the 5V supply to the base resistor and verify the relay is energized. Now connect the Breadboard, via the SH68-68-EP Cable, to the PCI-6014 Data Acq card in the computer.

Replace the +5V digital in, with a wire from the DI00 Spring Terminal. Replace the Ground with a connection from the GND Spring Terminal (the ground and +12V from the Heathkit power supply remain connected) Now we will use LabVIEW to create a program to control our relay driver. LabVIEW is a GRAPHICAL Programming Language. A Program in LabVIEW is called a VI (or Virtual Instrument). Open LabVIEW and do a FILE NEW VI. TWO windows should open, a Front Panel and a Block Diagram. The block diagram is the program and the front panel is the user interface. We will start in the Block Diagram Window. First we need to turn on the Functions Pallet by doing a VIEW Functions Pallet. Now find the Measurement I/O menu and select it, then select NI-DAQmx. This will open up all the functions associated with the Data Acq Card. It should look like this:

Find the Write Icon. Click the left mouse button AND hold it down and drag over to your Block Diagram Window and Release. This places that FUNCTION into your program. Under the icon is a pull down menu. Click on the and do the following selections: [Digital Single Channel Single Sample Boolean (1 line)] This sets up one Digital Output Pin. Now we need to define which of the 8 pins we will use. To do that go back to the NI-DAQmx functions and select Channel Const And drag and drop this onto your block diagram to the left of the write block. Right click on this new block and select the following

This will take you through a series screens. Since we want one digital output pin we will select: GENERATE SIGNALS DIGITAL OUTPUT LINE OUTPUT Then we will select the port/line we will connect the circuit to. On our board we only have one port (called PORT 0) and Lines 0 7. We will select line 0. It will ask you to Enter a Name you can just leave the default and hit finish. It will then bring up a test screen where you can check your I/O. To do this click on the RUN ICON: Then click on the radio button on the screen to turn the I/O point on and off. If it is working correctly the LED on the breadboard corresponding to DIO0 should turn on and off with the radio button Once you are done testing, click on OK at the bottom of the window. Now you should be back on the Block Diagram. Draw a line between the DAQmx name and the DAQmx Write block as follows:

Now you need to add a control. To do this put the wiring spool over the dot on the DAQmx Write block that says DATA and then do a right click Create Control You should now have Lastly we want to do this over and over, so we will create a loop. From the Functions Pallet, select Programming Structures While Loop

Then draw the while loop box around everything by the Global Channel: Lastly do a right click on the dot next to the red stop sign in the corner and do Create Control You should end up with

Go to the front panel, and you should have Except where the black arrow is, your arrow will be white, indicating the program is not running. Click on the Arrow to run the program. Click on the Data button to turn the LED and Relay on and off. Hit stop to end the program. Demo the code / circuit to the instructor. Submit the finish.vi file via the on line submission system.