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

Similar documents
Lab Exercise 2: Data Acquisition with NI LabVIEW

Getting Started with LabVIEW Virtual Instruments

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

Linear Control Systems LABORATORY

Homework Assignment 9 LabVIEW tutorial

Hardware: Acquiring Data and Communicating with Instruments

Table 1. Inputs and Outputs

Introduction to LabVIEW

Small rectangles (and sometimes squares like this

OpenStax-CNX module: m Thermometer VI * National Instruments

LabVIEW Express VI Development Toolkit User Guide

Introduction to Labview and Temperature Measurement

Strain and Force Measurement

Basic Data Acquisition with LabVIEW

2 Lab 2: LabVIEW and Control System Building Blocks

Determination of Drag Coefficient

ENGR 1000, Introduction to Engineering Design

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW

Computer Interfacing Using LabView

PHY 351/651 LABORATORY 1 Introduction to LabVIEW

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

1. Learn about LabView software and its different components

Read Temperature Data

Getting Started with the LabVIEW Datalogging and Supervisory Control Module

Measurement & Automation Explorer (MAX) View and control your devices and software

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

CISE 318: Computer Control Systems Laboratory Exercises

Introduction to National Instruments LabVIEW and Data Acquisition (DAQ)

National Instruments Corporation 1 Introduction to LabVIEW Hands-On

Tutorial: Getting Started with the LabVIEW Simulation Module

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

Lab 4 - Data Acquisition

Lab Exercise 4: Analog & Digital I/O Signals

Experiment 1: Introduction to Labview 8.0 (tbc 1/7/2007, 1/13/2009,1/13/2011)

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

National Instruments Corporation 1 Introduction to LabVIEW Hands-On

Virtual Instrumentation With LabVIEW

Lesson 4 Implementing a VI

Getting Started with the LabVIEW Datalogging and Supervisory Control Module

Virtual Instrumentation With LabVIEW

Lab 2: Introduction to LabVIEW 8.5

Data Acquisition Laboratory

Installation Guide: Quanser Rapid Control Prototyping Toolkit 2016 for NI myrio

Above Threshold Warning of Temperature Data

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

LabVIEW. Getting Started with LabVIEW. Getting Started with LabVIEW

Getting Started with the LabVIEW Real-Time Module

LABVIEW HANDOUT 3 CHAPTER 3: THE MATHSCRIPT NODE AND XY GRAPH

LabVIEW programming I

Introduction to LabVIEW 6-Hour Hands-On

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

LabVIEW programming I

LabVIEW Real-Time Module for Mac OS X User Manual Addendum

A Practical Exercise for the ADC

Getting Started with the LabVIEW Real-Time Module

NI-DAQmx Basic Course NITS John Shannon

LABVIEW LAB SKILLS ACTIVITY 1 PROGRAMING ENVIRONMENT

Using P-SPICE Models for Vishay Siliconix Power MOSFETs

LabVIEW PDA Module Release Notes

Module 2, Add on lesson Introduction to the NXT and Mindstorms software. Student. 45 minutes

Getting Results with CompactRIO and LabVIEW

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

LabVIEW TM Basics I Introduction Course Manual

Introduction to LabVIEW

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

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

LabVIEW Real-Time Module Release and Upgrade Notes

ECE 463 Lab 1: Introduction to LabVIEW

Part 1. Creating an Array of Controls or Indicators

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

LabVIEW DSP Module Release and Upgrade Notes

TECH 3821 Lab #2 Relay Driver with Computer Control

Introduction to LabVIEW Exercise-1

Module 2, Add on lesson Introduction to the NXT and Mindstorms software. Teacher. 45 minutes

LabVIEW Core 1. What You Need To Get Started. File Locations. The course installer places the course files in the following location: ni.

A. Front Panel Design Lesson 4 Implementing a VI

Lab - Task Manager in Windows 7 and Vista

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

Experiment 1: Introduction to Labview 2010 (tbc 1/7/2007, 1/13/2009,1/9/2012, 1/10/2012)

Additional products and features

PHYC 500: Introduction to LabView. Exercise 8 (v 1.3) M.P. Hasselbeck, University of New Mexico. Arrays, XY Graphs, Disk I/O

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

Controller Area Network (CAN) Tutorial

Exercise 4a: Creating and Editing XY Plots

LabVIEW TM Core 1 Course Manual

Exercise 5: Basic LabVIEW Programming

The LabVIEW Programming Environment and Basic Operations

LabVIEW DataFinder Toolkit

LabVIEW VI Analyzer Toolkit

S-PLUS INSTRUCTIONS FOR CASE STUDIES IN THE STATISTICAL SLEUTH

Lab 1: Getting familiar with LabVIEW: Part I

INTRODUCTION TO LABVIEW

ME 224: EXPERIMENTAL ENGINEERING. Lecture 2

Hands-on Lab. Open-Loop Response: System Identification

PDA Data Acquisition and Control System User Manual

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

One possible window configuration preferences for debug cycles

ni.com/training Quizzes LabVIEW Core 1 ni.com/training Courses Skills learned: LabVIEW environment Certifications Skills tested: LabVIEW environment

DSP First Lab 02: Introduction to Complex Exponentials

Recipes4Success. Draw and Animate a Rocket Ship. Frames 5 - Drawing Tools

Transcription:

Step-by-Step Data Acquisition Part II Exercise 2: Generating an Analog Output Waveform In this exercise, you will use the DAQ Assistant to build a LabVIEW VI that generates and outputs an analog waveform. Note: This exercise uses simulated hardware. You will not be able to verify that the data you output since you have no physical way to connect the output to an input. However, this exercise will show you the process for developing a waveform generation application using NI data acquisition hardware and NI LabVIEW. 1. Visit http://ni.com/trylabview and click on the Try LabVIEW Online link to access the LabVIEW Online Evaluation. Once your browser has been tested, click Continue and you will be directed to the remote desktop. 2. If you have just logged on to the LabVIEW Online Evaluation, you will first need to configure your measurement system. Refer to Part I, Exercise 1 Configuring a DAQ System in Measurement & Automation Explorer (MAX). 3. Launch LabVIEW from the desktop. 4. Click New to start a new program. At the next splash screen, select Blank VI and click OK. 5. Press <Ctrl-E> to switch to the LabVIEW Block Diagram. 6. Right-click on the white space to bring up the Functions palette. Browse to the Input subpalette and click the Simulate Signal Express VI as shown below. Place the VI on the Block Diagram. 7. In the Timing section of the window, set the Samples per second (Hz) to 10,000. Click OK. National Instruments Corporation 1

8. Bring up the Functions palette again, and browse to the DAQ Assistant VI on the Output subpalette of the Functions palette. Place the VI on the Block Diagram. 9. In the Create New window, select Analog Output as the Measurement Type. In the next window, select Voltage. In the next window, click the + sign next to SCC1Mod17 (SCC-FT01), select ao0, and click the Finish button. 10. In the DAQ Assistant configuration window, select Generate Continuously from the Task Timing tab in the lower part of the window. Uncheck Use timing from waveform data, and set the Rate (Hz) to 10,000. Click the OK button. 2 ni.com

11. On the Block Diagram, move the DAQ Assistant Express VI to the right side of the Simulate Signal Express VI. Wire the Sine output of the Simulate Signal VI to the data input of the DAQ Assistant VI. To create a wire, move your cursor over the blue arrow on the Sine output terminal of the Simulate Signal VI and left-click to start the wire. Move your cursor to the data input terminal of the DAQ Assistant VI and left-click again to attach the wire. National Instruments Corporation 3

Your Block Diagram should resemble the following figure. 12. To make the VI run continuously, create a While Loop. A While Loop causes all parts of the program inside the loop to run continuously until a Stop button is clicked. To create the While Loop, browse to the Exec Ctrl subpalette of the Functions palette and select a While Loop. 4 ni.com

13. Draw the While Loop around your entire Block Diagram. Your Block Diagram should resemble the following figure. 14. Create a knob to control the frequency of your sine wave. To create a knob, press <Ctrl-E> to switch to the LabVIEW Front Panel. Right-click on the empty gray space to pull up the Controls palette. Select a Knob from the Numeric Controls subpalette of the Controls palette. Place the knob on the Front Panel. 15. Right-click the knob and select Properties. On the Appearance tab, change the label to Frequency. On the Scale tab, change the Scale Range so Minimum equals 0.00 and Maximum equals 1000.00. Click OK to close the Properties window. 16. Press <Ctrl-E> to switch to the Block Diagram. Notice the orange Frequency knob control terminal. Move the control inside the While Loop to the left side of the Simulate Signal Express VI. Wire the knob control to the Frequency input terminal of the Simulate Signal Express VI (the second orange arrow on the left side of the Simulate Signal Express VI). Note: Make sure that you wire the knob control to the correct input terminal of the Simulate Signal Express VI. If you make a bad wire connection, double-click the wire to select it and press <Delete>. Your Block Diagram should resemble the following figure. National Instruments Corporation 5

17. Run the VI. It will now use the frequency knob on the LabVIEW Front Panel to generate a sine wave at the specified frequency. This sine wave is then generated on analog output channel 0 by the DAQ Assistant Express VI. End of Part II, Exercise 2 6 ni.com