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

Similar documents
Data Acquisition HANS-PETTER HALVORSEN,

NI Vision System HANS- PETTER HALVORSEN,

Virtual Instruments with LabVIEW

Wireless DAQ using ZigBee

Datalogging in LabVIEW

Control and Simulation in. LabVIEW

Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics.

NI USB-TC01 Thermocouple Measurement Device

DAQ in MATLAB HANS-PETTER HALVORSEN,

Solutions. Discretization HANS-PETTER HALVORSEN,

State Estimation with Observers

Faculty of Technology, Department of Electrical Engineering, Information Technology and Cybernetics. SCADA System

Wireless DAQ System. In this project you are going to create a Wireless DAQ System, see Figure 1-1. Figure 1-1: Wireless DAQ system

Laboratory System. 1 Introduction

University College of Southeast Norway. LM-900 Level Tank. Hans-Petter Halvorsen,

Weather System. In this project you are going to create a Weather System, see Figure 1-1. Figure 1-1: Weather system

Data Acquisition in LabVIEW

Exercise 5: Basic LabVIEW Programming

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

Simulation in LabVIEW. Hans-Petter Halvorsen, M.Sc.

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

Lab Exercise 2: Data Acquisition with NI LabVIEW

Additional products and features

Hardware: Acquiring Data and Communicating with Instruments

Homework Assignment 9 LabVIEW tutorial

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

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

LabVIEW MathScript Quick Reference

1. Learn about LabView software and its different components

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

Determination of Drag Coefficient

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

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

Exercise 11: Discretization

Introduction to LabVIEW

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

EE 100 DMM and DC Power Supply LabVIEW Experiment Guide

Lab Exercise 4: Analog & Digital I/O Signals

Teaching Computer-Based Data Acquisition and Analysis Research Skills Using LabVIEW

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

UNIVERSITY OF CALIFORNIA BERKELEY Department of Electrical Engineering and Computer Sciences. B. E. BOSER Oscilloscopes EECS 100

NI Technical Symposium ni.com

ENGR 1000, Introduction to Engineering Design

Introduction to Labview and Temperature Measurement

The mystem Project Board Quick Start

NI-DAQmx Basic Course NITS John Shannon

LABVIEW LAB SKILLS ACTIVITY 1 PROGRAMING ENVIRONMENT

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

Where to Start with NI ELVIS

The data acquisition components, and their relationship to each other, are shown below.

PHYS 5061 Lab 6 Programmable Instruments

INTRODUCTION TO LABVIEW

AMPLICON ADIO32. LabVIEW DRIVER SOFTWARE

Strain and Force Measurement

PCIE-1752/1754/1756 PCIE-1730 Sales Training

Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics. MathScript

LabVIEW programming I

Vernier SensorDAQ User s Manual

Visual Studio Team Services

PHY 351/651 LABORATORY 1 Introduction to LabVIEW

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

ME 224: EXPERIMENTAL ENGINEERING. Lecture 2

LabWindows /CVI Using the Latest ANSI C Tools for High-Performance Automated Test

Wireless Data Acquisition in. LabVIEW

Introduction to LabVIEW and NI Hardware Platform

Industrial IT Laboratory Work Hans-Petter Halvorsen

TECH 3821 Lab #2 Relay Driver with Computer Control

Computer Interfacing Using LabView

Introduction to National Instruments LabVIEW and Data Acquisition (DAQ)

University College of Southeast Norway. Web Services. with Examples. Hans-Petter Halvorsen,

Lab #4 The Data Acquisition (DAQ) Card. Read Before Coming to Lab: The Data Acquisition (DAQ) Card (from Appendix A)

Data Acquisition Laboratory

Hands-On Introduction to. LabVIEW. for Scientists and Engineers. Second Edition. John Essick. Reed College OXFORD UNIVERSITY PRESS

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

Signal Connections CHAPTER

Sensors and Actuators with Arduino. Hans-Petter Halvorsen, M.Sc.

PRODUCT FLYER CONTENTS. VirtualBench All-in-One Instrument

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

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

Figure 3.174: Illustration of the code of the event f USB that plots an USB camera frame if the typed frame is under the acceptable limits (case 0)

CALIBRATION PROCEDURE NI PXIe Channel, Isolated Voltage/Current Analog Output Module

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

Low-Cost Multifunction DAQ for USB

Small rectangles (and sometimes squares like this

Using LabVIEW. with. BiPOM Boards. Quick Start Guide. Document Revision: Date: 18 September, 2009

QuickStart Guide. LabVIEW QuickStart Guide. January 1998 Edition Part Number B-01

MATLAB Examples. Simulink. Hans-Petter Halvorsen, M.Sc.

Introduction to ERwin

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

Section 1 Establishing an Instrument Connection

Developing Measurement and Control Applications with the LabVIEW FPGA Pioneer System

PDA Data Acquisition and Control System User Manual

A variety of ECONseries modules provide economical yet flexible solutions. Waveform Generation

Contents. Software. CALIBRATION PROCEDURE NI 9216/ Channel, 24-Bit, 100 Ω/1000 Ω RTD Analog Input Module

BTH-1208LS Wireless Multifunction DAQ Device

Labview Lab 2. Vern Lindberg. April 16, 2012

CompactDAQ Chassis PRODUCT FLYER CONTENTS. Цены и срок поставки уточняйте на сайте по телефону: или

Electron Paramagnetic Resonance PH425 System outline Michael Kabatek & Jessica Lovewell Version 1.1

Virtual Instrumentation With LabVIEW

Introduction to LabVIEW 6-Hour Hands-On

Transcription:

Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics NI mydaq HANS-PETTER HALVORSEN, 2012.01.20 Faculty of Technology, Postboks 203, Kjølnes ring 56, N-3901 Porsgrunn, Norway. Tel: +47 35 57 50 00 Fax: +47 35 57 54 01

Table of Contents Table of Contents...ii 1 Introduction to mydaq... 1 2 System Description... 3 3 Installation and Configuration... 4 4 Using mydaq as a Multimeter... 5 5 Using mydaq as a Scope... 7 6 Using mydaq as a Function Generator... 8 7 Using mydaq in LabVIEW... 9 7.1 NI-DAQmx... 9 7.1.1 DAQ Assistant... 9 7.1.2 Using DAQmx functions... 16 7.2 NI-ELVISmx... 17 ii

1 Introduction to mydaq NI mydaq is a simple and intuitive DAQ device from National Instruments. NI mydaq have Analog Inputs (AI), Analog Outputs (AO), Digital Inputs (DI) and Digital Outputs (DO). In addition to traditional I/O, the mydaq have a built-in Digital Multimeter. The mydaq can also be used as a Power Supply. Using the built-in software the mydaq can also be used as an Oscilloscope and Function Generator. When you plug in the device in the USB connection on your PC, the following will pop-up automatically (NI ELVISmx Instrument Launcher): Note! You need to install the NI ELVISmx driver software first If not, you find it in the National Instruments folder: 1

2 Introduction to mydaq If you click on the DMM button, the built-in Digital Multimeter will appear: If you want to use the mydaq inside LabVIEW for Data Acquisition, you either use the traditional NI-DAQmx features or you may use NI-ELVISmx features. Both will be shown in this Tutorial. Lab Equipment: NI mydaq

2 System Description Below we see an overview of the NI mydaq device: Specifications: Two Differential Analog Input and Analog Output Channels (200 ks/s, 16 bit, +/- 10 Volts) Eight Digital Input and Digital Output Lines (3.3 Volt TTL-Compatible) +5, +15, and -15 Volt Power Supply Outputs (up to 500m Watts of Power) 60 Volt Digital Multimeter (DMM) for Measuring Voltage, Current, and Resistance The following are included in the package: 3

3 Installation and Configuration You need to install the NI-ELVISmx software that comes with the device. The NI-ELVISmx software installs the DAQmx driver software as well as the Measurement and Automation Explorer. You use MAX (Measurement and Automation Explorer) for configuration. Perform a Self-Test to make sure everything works as expected: 4

4 Using mydaq as a Multimeter When you plug in the device in the USB connection on your PC, the following will pop-up automatically (NI ELVISmx Instrument Launcher): If you click on the DMM button, the built-in Digital Multimeter will appear: 5

6 Using mydaq as a Multimeter Make sure to connect the applied digital multimeter probes: Lab Equipment: NI mydaq

5 Using mydaq as a Scope When you plug in the device in the USB connection on your PC, the following will pop-up automatically (NI ELVISmx Instrument Launcher): If you click on the Scope button, the built-in Scope will appear: 7

6 Using mydaq as a Function Generator When you plug in the device in the USB connection on your PC, the following will pop-up automatically (NI ELVISmx Instrument Launcher): If you click on the FGEN button, the built-in Function Generator will appear: 8

7 Using mydaq in LabVIEW If you want to use the mydaq inside LabVIEW for Data Acquisition, you either use the traditional NI-DAQmx features or you may use NI-ELVISmx features. Both will be explained in detail below. 7.1 NI-DAQmx In order to use the mydaq device in LabVIEW you need to use the DAQmx functions. Below we see the DAQmx palette in LabVIEW (Measurement I/O NI-DAQmx) 7.1.1 DAQ Assistant We will create a very simple example with 2 VIs, one VI for writing (Analog Out) and one for reading (Analog In). Analog Out: In this simple example we will use AO0 (Analog Out, Channel 0). We use the DAQ Assistant (DAQ Assist) which we find in the DAQmx palette. 9

10 Using mydaq in LabVIEW When dragging this VI to the Block Diagram, the following Wizard appears: We shall write data, so we need to select Generate Signals. Since we are going to write data to AO0, we select Analog Output and Voltage : Lab Equipment: NI mydaq

11 Using mydaq in LabVIEW Next we select AO0: Finally we set properties for Min and Max values, Timing Settings, etc.: In our case we set 1 Sample (On Demand). Lab Equipment: NI mydaq

12 Using mydaq in LabVIEW Next, we need to finish our LabVIEW application as follows: In addition to the DAQ Assistant we a While Loop, a Wait (ms) function. On the Front Panel we need Numeric Control and a Stop Button: Analog In: In this simple example we will use AI0 (Analog In, Channel 0). We use the DAQ Assistant (DAQ Assist) which we find in the DAQmx palette. Lab Equipment: NI mydaq

13 Using mydaq in LabVIEW When dragging this VI to the Block Diagram, the following Wizard appears: We shall read data, so we need to select Acquire Signals. Since we are going to read data from AI0, we select Analog Input and Voltage : Lab Equipment: NI mydaq

14 Using mydaq in LabVIEW Next we select AI0: Finally we set properties for Min and Max values, Timing Settings, etc.: In our case we set 1 Sample (On Demand). Lab Equipment: NI mydaq

15 Using mydaq in LabVIEW Next, we need to finish our LabVIEW application as follows: In addition to the DAQ Assistant we a While Loop, a Wait (ms) function. On the Front Panel we need Numeric Indicator and a Stop Button: In order to test the applications, we can wire AO0 and AI0 together (a so-called Loopback text). If we write 3V in the Write Analog Out.vi, we should be able to read 3V in the Read Analog In.vi. Lab Equipment: NI mydaq

16 Using mydaq in LabVIEW 7.1.2 Using DAQmx functions Another approach is to put the DAQ Assistant outside the loop for better performance. Analog Out: In this example we have used the DAQmx functions DAQmx Start Task.vi, DAQmx Write.vi and DAQ Clear Task.vi from the DAQmx palette. Analog In: In this example we have used the DAQmx functions DAQmx Start Task.vi, DAQmx Read.vi and DAQ Clear Task.vi from the DAQmx palette. The applications will work exactly the same as in the previous example, but the performance will be slightly better, especially for larger applications. Lab Equipment: NI mydaq

17 Using mydaq in LabVIEW 7.2 NI-ELVISmx Below we see the NI ELVISmx palette in LabVIEW (Measurement I/O NI ELVISmx) The NI ELVISmx palette consists of different Express Vis. Digital Multimeter: Oscilloscope: Function Generator: Lab Equipment: NI mydaq

Telemark University College Faculty of Technology Kjølnes Ring 56 N-3918 Porsgrunn, Norway www.hit.no Hans-Petter Halvorsen, M.Sc. Telemark University College Faculty of Technology Department of Electrical Engineering, Information Technology and Cybernetics E-mail: hans.p.halvorsen@hit.no Blog: http://home.hit.no/~hansha/