Data Acquisition Using NI-DAQmx



Similar documents
FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Lab 3: Introduction to Data Acquisition Cards

Cell Phone Vibration Experiment

Lab 4 - Data Acquisition

Quanser NI-ELVIS Trainer (QNET) Series: QNET HVAC. Heating, Ventilation, and Air Conditioning (HVAC) User Manual. User Manual

EET 310 Programming Tools

Hands-On: Introduction to Object-Oriented Programming in LabVIEW

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

A Design of a PID Self-Tuning Controller Using LabVIEW

LabVIEW Lesson 5 Clusters

QNET Experiment #06: HVAC Proportional- Integral (PI) Temperature Control Heating, Ventilation, and Air Conditioning Trainer (HVACT)

LABVIEW DSP TEST TOOLKIT FOR TI DSP

Dash 18X / Dash 18 Data Acquisition Recorder

LabVIEW DSP Test Integration Toolkit for TI DSP

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Dash 8Xe / Dash 8X Data Acquisition Recorder

Getting Started with the LabVIEW Mobile Module

DSP Laboratory: Analog to Digital and Digital to Analog Conversion

Getting Started with the LabVIEW Mobile Module Version 2009

Experiment 5. Lasers and laser mode structure

Lab 5 Getting started with analog-digital conversion

Lab View with crio Tutorial. Control System Design Feb. 14, 2006

Lab #9: AC Steady State Analysis

First Bytes Programming Lab 2

Annex: VISIR Remote Laboratory

GPIB Instrument Control

RLC Series Resonance

Exercise 10: Basic LabVIEW Programming

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

DEVELOPMENT OF DEVICES AND METHODS FOR PHASE AND AC LINEARITY MEASUREMENTS IN DIGITIZERS

Three Levels of Data-Logging Software from National Instruments

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

LabVIEW Day 6: Saving Files and Making Sub vis

BLE Series. Data setting software MEXE02 OPERATING MANUAL. Tabel of contents 1 Synchronization with the driver Monitor function...

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

Lab 1: Introduction to PSpice

Transmitter Interface Program

USB Security Key Instructions

CHAPTER 11: Flip Flops

Lab 2 Sensor Modeling Introduction to the Wiimote and the Wiimote LABVIEW Interface

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

Installing S500 Power Monitor Software and LabVIEW Run-time Engine

Data Acquisition in LabVIEW

GETTING STARTED WITH LABVIEW POINT-BY-POINT VIS

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

Using LabVIEW to Measure Temperature with a Thermistor

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

OPTOFORCE DATA VISUALIZATION 3D

SignalExpress. Getting Started with SignalExpress. Getting Started with SignalExpress. August 2004 Edition Part Number A-01

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

OrCAD Capture with PSpice and Allegro DE CIS with AMS Simulator. Describes how to create a PSpice Archive File with Capture

Creative Inquiry Electronics Project Lab Manual. NI mydaq

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

DAC Digital To Analog Converter

Computer-based instruments for a remotely-operated laboratory

Introduction to LabVIEW for Control Design & Simulation Ricardo Dunia (NI), Eric Dean (NI), and Dr. Thomas Edgar (UT)

6703/6704 ANALOG OUTPUT DEVICE CALIBRATION PROCEDURE

Lab 1 Diode Characteristics

Computer Controlled Generating Stations Control and Regulation Simulator, with SCADA SCE

How To Use First Robot With Labview

Inductors in AC Circuits

LAN extensions for Instrumentation

Technical Training Module ( 30 Days)

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

Virtual Instrumentation With LabVIEW

Fundamentals of Signature Analysis

Abstract. Cycle Domain Simulator for Phase-Locked Loops

Beam Loss Monitor Software Guide

Free 15-day trial. Signata Waveform Viewer Datasheet

DAQ in MATLAB HANS-PETTER HALVORSEN,

Accurate Measurement of the Mains Electricity Frequency

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

Numerical Parameters Analysis of Boonton 4540 Peak Power Meter

Electrical Resonance

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

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

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

RC Circuits and The Oscilloscope Physics Lab X

4.1 DESCRIPTION OF CONTROLS cont.

User s Guide DDS-3X25 USB ARBITRARY FUNCTION GENERATOR

Corsair Link v2.4 Manual. Initial Set-up. Placing devices within the chassis

PCM Encoding and Decoding:

ADINSTRUMENTS. making science easier. LabChart 7. Student Quick Reference Guide

Experiment 2 Diode Applications: Rectifiers

CALIBRATION PROCEDURE NI Contents. Software Requirements. ni.com/manuals

NEW. EVEN MORE data acquisition and test stand automation

Features, Benefits, and Operation

DAQ Getting Started Guide

Computer Integrated Experimentation in Electrical Engineering Education over Distance

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

Eight Ways to Increase GPIB System Performance

28 What s New in IGSS V9. Speaker Notes INSIGHT AND OVERVIEW

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 3, May 2013

LabVIEW Advanced Programming Techniques

Evaluation copy. Blood Pressure. Project PROJECT DESIGN REQUIREMENTS

Creating a Project with PSoC Designer

DATA ACQUISITION FROM IN VITRO TESTING OF AN OCCLUDING MEDICAL DEVICE

Operating instructions Diffuse reflection sensor. OJ50xx / / 2004

Experiment 3: Magnetic Fields of a Bar Magnet and Helmholtz Coil

Transcription:

Instructor s Portion Data Acquisition Using NI-DAQmx Wei Lin Department of Biomedical Engineering Stony Brook University Summary This experiment requires the student to use NI-DAQmx to acquire voltage signals. Students should be familiar with the following LabVIEW programming technique 1. NI-DAQmx 2. LabVIEW application for data acquisition 3. LabVIEW graph and chart 4. LabVIEW write LabVIEW measurement file express VI Uses This lecture applies to all courses of virtual instrumentation. Equipment List Computers LabVIEW 8.6 References NI-ELVIS benchtop workstation LabVIEW 8, Student Version Lecture Slides of Data Acquisition Student s Portion Introduction The students should learn the basic LabVIEW programming techniques for the data acquisition using NI-DAQmx. They will create two VIs, one 1

for finite samples and the other for continuous samples. Students will use graph and chart indicator to display acquired signals on the screen and save the data in files for future analysis. Objectives NI-DAQmx Functions Data acquisition programming using NI-DAQmx LabVIEW graph and chart Theory NI-DAQmx is the next generation drivers for the data acquisition hardware from National Instruments. It is easy to use and has many new features such as improved ease of use, faster development time, multithreaded measurements and increased accuracy of measurements. The data acquisition application in LabVIEW and NI-DAQmx is quite straightforward. The following are the steps for creating such an application. 1. Create a virtual channel and task using the NI-DAQmx Create Virtual Channel VI. 2. Set the sampling frequency and sampling mode, continuous or finite samples using NI-DAQmx Timing VI. 3. Set the trigger using NI-DAQmx Trigger VI. This step is optional. 4. Start the data acquisition process using NI-DAQmx Start VI. 5. Read the acquired data using NI-DAQmx Read VI. 6. Stop data acquisition task. 7. Clear the data acquisition task using the NI-DAQmx Clear VI. All the NI-DAQmx VIs are linked through task in and task out terminal and the error cluster chain. For continuous samples mode, the NI-DAQmx Read VI should be placed within a while loop. Lab Procedure Experiment 1, Create a LabVIEW data acquisition application of finite samples: 1. Launch LabVIEW. Create a blank VI. 2. Add the following to the front panel: a. Controls: NI-DAQmx physical channel, minimum value, maximum value, sample frequency, number of samples. Change the representation of number of samples control to I32. 2

b. Indicator: Waveform graph 3. Drop the following functions to the block diagram. a. NI-DAQmx Create Virtual Channel VI and choose AI voltage. b. NI-DAQmx timing VI and choose Sample clock. c. NI-DAQmx Start Task VI d. NI-DAQmx read VI and select analog 1D Wfm NCha NSamp e. NI-DAQmx Stop Task VI f. NI-DAQmx Clear VI g. Simple Error Handler VI h. Align the VIs using alignment tool. 4. For NI-DAQmx Create Virtual Channel VI, Connect the controls of minimum value, maximum value and physical channel to the respective terminals. Right click the input terminal configuration terminal and choose create constant. Select RSE to configure the input as referenced single ended terminal. 5. For NI-DAQmx timing VI Connect controls of sampling frequency and the number of samples to the respective terminals. Right click the sample mode terminal and choose create constant. Select the constant as finite samples. This configures the finite sample mood.. 6. For NI-DAQmx read VI, connect the control of the number of samples to the terminal number of samples per channel. Connect the output from the terminal data of NI-DAQmx read VI to the waveform indicator. 7. Connect the NI-DAQmx VIs through task in and task out terminals and error cluster input and output terminals. connect the error output of NI-DAQmx Clear VI to the input of Simple Error Handler VI 8. Drop a Write LabVIEW Measurement File express VI to the block diagram and choose Ask user to choose file, Ask each iteration, Overwrite file and one column only in X value column. Connect the acquired data to its input. 9. Save the VI on your H drive. 10. Keep the ELVIS unit off. Connect the output of function generator FUNC OUT to ACH0 using connection wire on the prototype board. 11. Turn ELVIS unit on including the prototype board. 12. Launch ELVIS application and choose function generator. Select the frequency, waveform type and amplitude of the function generator and turn it on. 13. Enter the parameters for the controls of the LabVIEW data acquisition controls, run the VI and save acquired signal for lab report. 3

Experiment 2, Create a LabVIEW data acquisition application of continuous samples: 1. Modify the LabVIEW code of previous experiment by changing the sample mode constant for NI-DAQmx timing VI to continuous for continuous sampling. Remove the wire connecting the number of samples control to this VI. Remove the Write LabVIEW Measurement File express VI. 2. Replace the waveform indicator to chart indicator and add a STOP button on the front panel. 3. Change the X axis scale of the chart by right clicking the chart and choosing properties, scales. Disable auto scale of X axis. Set the minimum as 0 and maximum as 5 4. Using WHILE loop to enclose the NI-DAQmx read VI in the block diagram. Move the STOP button terminal into the WHILE loop and connect it to the WHILE loop conditional terminal. Save the VI to your H drive. 5. Set the frequency of ELVIS function generator to 5Hz. Run the application as described in the previous experiment. Lab Report The lab report should contain the following: 1. The experiment objective 2. Explain how to write a data acquisition application using LabVIEW. Please also describe the physical channel, virtual channel, task and their relationship. 3. Data (collected signal) 4. LabVIEW VIs with documentation Lab report due on 10/17/2009 Appendix 1. VI for finite data acquisition 4

2. VI for continuous data acquisition 5