Lab%201%20ME104%202008

Lab%201%20ME104%202008 - ME 104 Sensors and Actuators Fall...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
ME 104 Sensors and Actuators Fall 2008 Laboratory 1 Introduction to LabVIEW Department of Mechanical Engineering University of California, Santa Barbara Fall 2008
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 INTRODUCTION In this laboratory, you will learn how to use the LabVIEW development environment, which is based on the graphical programming language G . You will then write a LabVIEW program to acquire, display, and save an external voltage signal. LabVIEW is a programming language just like other programming languages, such as C, Basic, or Pascal, but LabVIEW is higher–level. In text-based programming languages, you are as concerned about the code as you are about what you are trying to do; you must pay close attention to the syntax (commas, periods, semicolons, square brackets, curly brackets, round brackets, etc.). LabVIEW is much more user- friendly — it uses icons to represent subroutines, and you wire these icons together in order to define the flow of data through your program. It is sort of like flow-charting your code as you are writing it—and the net effect is that you can write your program in a lot less time than if you did it in a text-based programming language. 1 LabVIEW software and hardware (data acquisition boards) have been installed on the PC’s in the Undergraduate Control Laboratory (Engineering 2, Room 2218). To launch LabVIEW, go to the Windows NT Start menu and proceed as follows: Start >> Programs >> National Instruments LabVIEW 7.1 or Start >> Programs >> National Instruments >> LabVIEW 7.1 >>LabVIEW. LabVIEW software (without data acquisition hardware) is also available in the CADLab (Room 2243). PART 1. INTRODUCTION TO LABVIEW 7 Objective Become familiar with the LabVIEW environment. Learn the general approach to building a virtual instrument in LabVIEW. Build a LabVIEW virtual instrument. Your TA will give an introductory presentation on LabVIEW 7. You will build some simple VIs to become familiar with LabVIEW 1 Paragraph excerpts from LabVIEW—Proven Productivity (April 2000), National Instruments Corporation.
Background image of page 2
Oscilloscope External voltage PART 2. USING LABVIEW WITH DATA ACQUISITION HARDWARE Objective To use a VI to acquire an analog voltage via a DAQ(data acquisition) board, plot the voltage to a chart, and write the voltage to a spreadsheet file. Review the operation of the oscilloscope and the function generator. Experiment 2A. Acquire Analog Input Voltage The hardware configuration for sampling an analog voltage signal is shown in Figure 1. To view a specific analog input, you will connect an external voltage signal to the CB-68LP connector block shown in Figure 2. The connector block is directly connected to the DAQ (data acquisition) board by a 2 meter, shielded I/O (input/output) cable. The Tektronix CFG280 Function Generator is used to generate an external voltage signal, which should be verified on the oscilloscope before connecting to the connector block. Figure 1.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/04/2011 for the course ME 104 taught by Professor Staff during the Spring '08 term at UCSB.

Page1 / 8

Lab%201%20ME104%202008 - ME 104 Sensors and Actuators Fall...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online