Above Threshold Warning of Temperature Data

Similar documents
Read Temperature Data

Engineering Project-I. Module 1: Familiarization of LabVIEW and the Vernier Toolkit

Lesson 4 Implementing a VI

OpenStax-CNX module: m Thermometer VI * National Instruments

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

Exercise 5: Basic LabVIEW Programming

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

Lab 1: Getting familiar with LabVIEW: Part I

Lab Exercise 2: Data Acquisition with NI LabVIEW

Lesson 1 Introduction to LabVIEW. TOPICS LabVIEW Environment Front Panel Block Diagram Dataflow Programming LabVIEW Help and Manuals Debugging a VI

A. Front Panel Design Lesson 4 Implementing a VI

The LabVIEW Programming Environment and Basic Operations

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

Introduction to Labview and Temperature Measurement

Learn the three palettes. Learn how data is passed in LabVIEW. Create a subvi using two different methods.

LabVIEW Express VI Development Toolkit User Guide

Table 1. Inputs and Outputs

Hardware: Acquiring Data and Communicating with Instruments

Concept: Debugging. Goal. Description. Implementation. Use the debugging tools built into LabVIEW.

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

ENGR 1000, Introduction to Engineering Design

Getting Started with LabVIEW Virtual Instruments

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

Shift Register: Exercise # 1: Shift Register Example VI. 1. Build the following front panel. Figure (8.1): Shift register exercise front panel

Exercise 0 - Open and Run a Virtual Instrument (Slide 12)

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

Introduction to LabVIEW

Introduction to LabVIEW

Introduction to LabVIEW

Introduction to LabVIEW Exercise-1

Vernier SensorDAQ User s Manual

Introduction to National Instruments LabVIEW and Data Acquisition (DAQ)

BE/EE189 Design and Construction of Biodevices Lecture 2. BE/EE189 Design and Construction of Biodevices - Caltech

Lab 4 - Data Acquisition

ENGR 1000, Introduction to Engineering Design

Application State Machine

Basic Data Acquisition with LabVIEW

LabVIEW basics. BME MIT János Hainzmann, Károly Molnár, Balázs Scherer, Csaba Tóth

Linear Control Systems LABORATORY

Small rectangles (and sometimes squares like this

1. Learn about LabView software and its different components

Homework Assignment 9 LabVIEW tutorial

Importing the Vernier Sensor Block into LEGO MINDSTORMS 2

Dept. of Electrical, Computer and Biomedical Engineering. Data Acquisition Systems and the NI LabVIEW environment

Tips and Tricks for Highly Productive Programming in LabVIEW

AOE 3054 LabView Programming

LABQUEST 2 DATA LOGGER

Arrays are lists of elements of the same data type. They are analogous to arrays in traditional languages.

LabVIEW & FRC. BAA Fall Education Day 2015

LabVIEW Academy. 12. óra event, property node

Create a Scrapbook Page

Computer Interfacing Using LabView

ni.com Preparing for the CLAD Exam

Virtual Instrumentation With LabVIEW

Determination of Drag Coefficient

Lab Exercise 4: Analog & Digital I/O Signals

CISE 318: Computer Control Systems Laboratory Exercises

Tips and Tricks for Highly Productive Programming in LabVIEW

LABVIEW LAB SKILLS ACTIVITY 1 PROGRAMING ENVIRONMENT

ECE 463 Lab 1: Introduction to LabVIEW

NAME EET 2259 Lab 3 The Boolean Data Type

INSTALLING THE PS3 XBOX READY SOFTWARE:

LabVIEW TM Real-Time 2: Architecting Embedded Systems Exercises

Lab 2: Introduction to mydaq and LabView

B. Including the Event Structure within a loop. C. Configuring a Timeout case within the Event Structure

About Customizing a SharePoint Server 2007 Site

Exercise 7-1 Preparing Files for Distribution

PHY 351/651 LABORATORY 1 Introduction to LabVIEW

LabVIEW Statechart Module Tutorial

ECE 202 LAB 1 INTRODUCTION TO LABVIEW

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW

Figure 4-9. Click Finish button, system pops up a dialogue box. Click the OK button, the startup wizard is complete. See Figure 4-10.

MagicSoft Version 3.02

LEGO Mindstorm EV3 Robots

1 Introduction. 2 Install the tool. Millennium 2000 M820 ChessGenius Exclusive, PGN. Version:

INTRODUCTION TO LABVIEW

LabVIEW programming I

Controller Area Network (CAN) Tutorial

LabVIEW. Table of Contents. Lesson 1. Pre-reqs/Technical Skills Basic computer use

ET-11 Redi Chek Direct+Connect Roasting Thermometer

FRC LabVIEW Sub vi Example

NI-IMAQdx VI Reference Help

WELCOME TO LabVIEW 1

Project Example Using LookoutDirect as an OPC Client

Importing source database objects from a database

ME 224: EXPERIMENTAL ENGINEERING. Lecture 2

Learn LabVIEW 2010 / 2011 Fast

2. The LabView Environment Two panes will open, one is the Front panel, and one is the Block Diagram

Certified LabVIEW Associate Developer Exam. Test Booklet

Introduction to LabVIEW TM

BASIC NAVIGATION & VIEWS...

PHYC 500: Introduction to LabView. Exercise 15 (v 1.2) Producer Consumer Event Structure. M.P. Hasselbeck, University of New Mexico

OM-DLTT DATA LOGGER INSTRUCTIONS

NATIONAL INSTRUMENTS. NI myrio. Design Real Systems, Fast. Official Manual for the Learn to Design Real Systems Fast with NI myrio Hands-On Workshop

Getting Started with the NI LabVIEW Embedded Module for ADI Blackfin Processors Version 8.6

Introduction to LabVIEW. Modified Powerpoint file taken from ma/courses/es110/

Ch En 475: Introduction to Instrumentation and Signal Processing with Labview

TimerTools, v4.0 User s Manual. TimerTools 2006, 2011, 2017 Kagan Publishing

Virtual Instrumentation With LabVIEW

Strain and Force Measurement

Transcription:

Above Threshold Warning of Temperature Data Exercise 6 Completed front panel and block diagram. The hidden case Celsius is also shown in this picture. In the following exercise, you will create a program using SensorDAQ s Analog Express VI that records temperature data. The code will allow the user to display the data in Celsius or Fahrenheit units. In addition, a threshold value is compared to the temperature measurement and a message is displayed to alert the user when the temperature is above the threshold. OBJECTIVES In this exercise, you will Create a LabVIEW VI to collect temperature data. Become familiar with an Enumerated control. Warn the user when the temperature is above a threshold value. Incorporate code that makes decisions based on user input and numeric comparison. MATERIALS SensorDAQ USB Cable computer LabVIEW Vernier Stainless Steel Temperature Probe Hands-On Introduction to NI LabVIEW with Vernier SensorDAQ 6-1 E

Exercise 6 Part I Connect Equipment 1. Connect the USB cable to the SensorDAQ. 2. Attach the other end of the USB cable to any unused USB port on your computer. The green LED on the SensorDAQ (next to the USB cable port) should be blinking. 3. Connect the Vernier Stainless Steel Temperature Probe to Ch. 1. Part II Launch LabVIEW and Create a VI to Collect Data from SensorDAQ 4. Launch LabVIEW. 5. From the Getting Started window, click on the Blank VI link under the New category. 6. Go to the block diagram using the <Ctrl-E> shortcut. 7. Click and drag the Analog Express VI from the Vernier SensorDAQ palette to the block diagram. Access this palette by right-clicking the block diagram workspace. 8. After dragging the Express VI from the palette to the block diagram workspace, the Express VI s configuration popup will open. Note that this step can be slow, depending on your computer. 9. Click on the Set Timing button, located in the top-left corner of the configuration popup. 10. Set the timing with a length of 20 seconds and a sample rate of 2 samples/second. 11. Click Done to close the Set Timing popup. The Express VI Configuration should now be updated with the new settings. 12. Click OK to close the Express VI s Configuration Popup. The Analog Express VI will now be located in your block diagram workspace. 13. Go to the front panel using the <Ctrl-E> shortcut. 6-2 E Hands-On Introduction to NI LabVIEW with Vernier SensorDAQ

Above Threshold Warning of Temperature Data 14. Place an Enum control on the front panel. This control is located in Controls» Modern» Ring & Enum. Rename the control Units. Tip: An enumerated type control, or enum, contains lists of strings through which you can cycle. When you wire an enumerated type control to the selector terminal of a Case structure, LabVIEW matches the cases to the string values of items in the control, not the numeric values. In addition, you can right-click the Case Structure, and select Add Case for Every Value, to create a case for the string value of each item in the control. 15. Right-click on the Enum and select Edit Items from the shortcut menu. 16. Click the Insert button and add the following Items: Celsius and Fahrenheit. 17. Click OK. Hands-On Introduction to NI LabVIEW with Vernier SensorDAQ 6-3 E

Exercise 6 18. Add a string indicator to the front panel and name it Message. 19. Add a thermometer indicator to the front panel. 20. Clean up your front panel control and indicators. 21. Go to the block diagram using the <Ctrl-E> shortcut. 22. Encircle all of the code with a While Loop, and move the two indicators to the right side of the loop. Move the Analog Express VI and Units control to the left side of the loop. 6-4 E Hands-On Introduction to NI LabVIEW with Vernier SensorDAQ

Above Threshold Warning of Temperature Data 23. Add a Case Structure. 24. Click and drag the selector terminal (the small question mark (?) on the left side of the case structure) up to the top-left corner of the Case Structure to be closer to the Units control. Wire the Units control to the Case Structure, and note how the name of the two cases changes to match the input. 25. Go to the Fahrenheit case and add code to change the measurement value to Fahrenheit. Wire the result to the Thermometer. In addition, perform a greater than comparison of the reading to a value of 77 (degrees Fahrenheit). Tip: The tunnel of a Case Structure must be solid. A solid tunnel signifies that every case has data wired out of the Case Structure. A Case Structure cannot allow some cases to pass data out of the structure, while other cases do not. All cases must wire data out of the tunnel; otherwise, the tunnel will appear hollow and the VI will have a broken arrow and will not run. Hands-On Introduction to NI LabVIEW with Vernier SensorDAQ 6-5 E

Exercise 6 26. Change to the Celsius case and create a wire path from the input tunnel (where the measurement enters the case structure) to the output tunnel (where it exits). The tunnel will change from appearing hollow to appearing solid in color. 27. Add code to the Celsius case to perform a greater than comparison of the reading to a value of 25 (degrees Celsius). 28. Add a Select function (found in the Programming» Comparison palette) to the right of the Case Structure, in front of the Message indicator. Wire the result of the Greater? function in the Celsius case to the conditional input of the Select Function. 29. Go to the Fahrenheit case and wire the result of the Greater? function to the output tunnel. The tunnel will change from appearing hollow to appearing solid in color. 6-6 E Hands-On Introduction to NI LabVIEW with Vernier SensorDAQ

Above Threshold Warning of Temperature Data 30. Add a String Constant function to the block diagram workspace, next to the Select function. A String Constant is found in the Programming» String palette. 31. When the String Constant is placed on the block diagram workspace, it will not contain any text. Type the words Above Threshold and wire the String Constant to the t input of the Select function. 32. Add a second String Constant with the words OK and wire it to the f input of the Select function. Wire the result of the Select function to the Message indicator. Hands-On Introduction to NI LabVIEW with Vernier SensorDAQ 6-7 E

Exercise 6 33. Wire the Analog Express VI s stopped output terminal to the While Loop s conditional terminal. Tip: In this example, a STOP button is not wired into the Express VI s stop (F) input terminal. This means the Express VI will only send a Boolean true value when data collection is completed (as configured by the user in the Express VI). A STOP button may be added to provide the user with a means to cancel data collection prematurely. 34. Go to the front panel and run the VI. Change the Units and observe the reading on the Thermometer. Heat and cool the Temperature Probe so that the reading goes above and below the threshold. EXTENSIONS 1. The threshold limit value is currently a numeric constant to compare against the Celsius reading, and a second constant to compare against the Fahrenheit reading. Modify the program so that there is only a single threshold value in degrees Celsius, and it is a front panel user control. Provide a front panel indicator that shows the threshold value in degrees Fahrenheit. 2. Add a lower limit threshold control and a lower limit message of Below Threshold. There will now be a total of three possible messages: Above Threshold, OK, and Below Threshold. 6-8 E Hands-On Introduction to NI LabVIEW with Vernier SensorDAQ