ULx for NI LabVIEW Software Quick Start

Similar documents
Quick Start Using DASYLab with your Measurement Computing USB device

Testing PCI/ISA & PCMCIA Serial Cards

Getting Started with the LabVIEW Mobile Module

Getting Started with the LabVIEW Mobile Module Version 2009

Ash Capture Control User Guide

JTAGjet. series SIGNUM SYSTEMS CORPORATION. USB 2.0 Driver for JTAGjet and ADM51. Installation Instructions

USB-5100 Series. USB Data Loggers for Windows and Mac. Software Help

Dell Statistica Statistica Enterprise Installation Instructions

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

EET 310 Programming Tools

Data Acquisition Using NI-DAQmx

TTL to RS232 Adapter User Guide

Lab 3: Introduction to Data Acquisition Cards

Printer Driver Installation Manual

Job Scheduler User Guide IGSS Version 11.0

Data Analysis Software

UFR II Driver Guide. UFR II Driver Ver ENG

Power Log PC Application Software

NortechCommander Software Operating Manual MAN R6

CS SoftDent Practice Management Software Installation Guide for Client/Server Configurations

ChipScope Pro Tutorial

LabelWriter. Print Server. User Guide

MetaMorph Microscopy Automation & Image Analysis Software Super-Resolution Module

Wireless Keyboard & Optical Mouse. User Manual

How To Set Up Total Recall Web On A Microsoft Memorybook (For A Microtron)

Wireless Client Configuration Guide. for third-party wireless Ethernet adapters

Spotlight Management Pack for SCOM

Installing Sage ACT! 2013 for New Users

Quick Start Guide

VM-4 USB Desktop Audio Device Installation Guide

ScanShell.Net Install Guide

HP LaserJet MFP Analog Fax Accessory 300 Send Fax Driver Guide

VM-8 USB Desktop Audio Device Installation Guide

Lifecycle Service Tool. Operator's manual

Bluetooth Pairing. User Guide

Adobe Acrobat 9 Deployment on Microsoft Windows Group Policy and the Active Directory service

For Active Directory Installation Guide

Lepide Event Log Manager: Installation Guide. Installation Guide. Lepide Event Log Manager. Lepide Software Private Limited

Appendix C I/O Hardware Installation

Spotlight Management Pack for SCOM

Fleet Manager II. Operator Manual

USB2VGA. Instruction Manual. USB to VGA Adapter. USB 2.0 to VGA External Multi Monitor Video Adapter

SATA150 TX2PLUS, TX4 QUICK START GUIDE. Version 1.2

4.0. Offline Folder Wizard. User Guide

Add-On Module Advanced Recurring Charges

JEROME COMMUNICATIONS SOFTWARE (JCS) INSTALLATION and OPERATION MANUAL V1.02 for Windows XP

hp digital home networking wireless USB network adapter hn210w quick start guide

Universal Management Service 2015

SSL-Manager (SNMP-SSL Management Software)

LabVIEW Report Generation Toolkit for Microsoft Office

User Document. Adobe Acrobat 7.0 for Microsoft Windows Group Policy Objects and Active Directory

Professional USB to Serial Adapter Hub with COM Retention

Title Page. Installation Guide. PowerChute plus Version for Windows 95

Dell Statistica Document Management System (SDMS) Installation Instructions

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

Microsoft Dynamics GP. Engineering Data Management Integration Administrator s Guide

CS SoftDent Practice Management Software Installation Guide for Client/Server Configurations

e-dpp May 2013 Quick Installation Guide Microsoft Windows 2003 Server, XP, Vista, 7 Access Database

USB-TC. Thermocouple Measurement. User's Guide

How To Run Qqripper On A Cd Or Mp3 Player (For Pc)

Creating IBM Cognos Controller Databases using Microsoft SQL Server

QUICK GUIDE FOR. Installing Nokia Connectivity Cable Drivers

USB INTERFACE BELL202 MODEM MODEL: COP-HU DRIVER INSTALLATION MANUAL

Crestron VMK-WIN TouchPoint Virtual Mouse & Keyboard Software for Windows Installation Guide

COM Port Stress Test

MultiOne. Getting started

CAE-Link Corporation. Building Design and Engineering Services. Dwg Manager. April AutoCAD 2000i through , CAE-Link Corporation

Network Installation Guide. Artisan 810 Series

Dell Recovery Manager for Active Directory 8.6. Quick Start Guide

Front-Office Server 2.7

Citrix Systems, Inc.

Digipass Plug-In for IAS. IAS Plug-In IAS. Microsoft's Internet Authentication Service. Installation Guide

Studio Visual Steps. A Short Guide to Windows Internet Explorer 9

Installing Service Pack Updater Archive for CodeWarrior Tools (Windows and Linux) Quick Start

Employee Time Clock User Manual

Installation and User Guide. RotatIR Automated Rotating Sample Stage Accessory

Kokii BatteryDAQ. BMS Software Manual. Battery Analyzer Battery DAS

Installing Act! for New Users

FORD MOTOR COMPANY OF AUSTRALIA LTD

MEDIA SHARE Set Up Guide for PCs with Windows XP

DCOM Configuration for Windows NT4, Windows 2000, Windows XP, and Windows XP Service Pack 2

USB to RS-422/485 Serial Adapter (ID-SC0911-S1/SC0A11-S1) User s Manual

TestFlight FAQ Apple Inc.

Microsoft Dynamics GP. Field Service - Preventive Maintenance

GX-2009 Data Logger Management Program Operator s Manual

GPS 35 USB. installation and quick start guide

Symantec Backup Exec System Recovery Exchange Retrieve Option User's Guide

User's Guide. Integrating Sound Level Datalogger. Model Introduction

2-Bay Raid Sub-System Smart Removable 3.5" SATA Multiple Bay Data Storage Device User's Manual

Aquadyne TechTip TITLE: TROUBLESHOOTING PC COM PORT AND MODEM PRODUCTS AFFECTED SYMPTOMS POSSIBLE CAUSES

Modbus RTU (RS-485) TCP/IP (Ethernet)

Dell One Identity Cloud Access Manager How to Configure vworkspace Integration

NCD ThinPATH Load Balancing Startup Guide

Setup procedure of Firewall

HUAWEI HG256s. Home Gateway Quick Start

XTEND 900 MHZ WIRELESS MODEM For use with VEEDER-ROOT EMR³ DATALINK INSTALLATION INSTRUCTIONS Manual , Rev. B

CMG 7.5. Quick Guide InConference. Makes your extension a conference room. Rev A4

Quick 1.3MP WebCam with Night Vision

Install USB drivers on Windows

New Features and Enhancements

Transcription:

ULx for NI LabVIEW Software Quick Start June 2016. Rev 3 Measurement Computing Corporation

Your new Measurement Computing product comes with a fantastic extra Management committed to your satisfaction! Thank you for choosing a Measurement Computing product and congratulations! You own the finest, and you can now enjoy the protection of the most comprehensive warranties and unmatched phone tech support. It s the embodiment of our mission: To provide data acquisition hardware and software that will save time and save money. Simple installations minimize the time between setting up your system and actually making measurements. We offer quick and simple access to outstanding live FREE technical support to help integrate MCC products into a DAQ system. Limited Lifetime Warranty: Most MCC products are covered by a limited lifetime warranty against defects in materials or workmanship for the life of the product, to the original purchaser, unless otherwise noted. Any products found to be defective in material or workmanship will be repaired, replaced with same or similar device, or refunded at MCC s discretion. For specific information, please refer to the terms and conditions of sale. Harsh Environment Program: Any Measurement Computing product that is damaged due to misuse, or any reason, may be eligible for replacement with the same or similar device for 50% of the current list price. I/O boards face some harsh environments, some harsher than the boards are designed to withstand. Contact MCC to determine your product s eligibility for this program. 30 Day Money-Back Guarantee: Any Measurement Computing Corporation product may be returned within 30 days of purchase for a full refund of the price paid for the product being returned. If you are not satisfied, or chose the wrong product by mistake, you do not have to keep it. These warranties are in lieu of all other warranties, expressed or implied, including any implied warranty of merchantability or fitness for a particular application. The remedies provided herein are the buyer s sole and exclusive remedies. Neither Measurement Computing Corporation, nor its employees shall be liable for any direct or indirect, special, incidental or consequential damage arising from the use of its products, even if Measurement Computing Corporation has been notified in advance of the possibility of such damages. Trademark and Copyright Information Measurement Computing Corporation, InstaCal, Universal Library, and the Measurement Computing logo are either trademarks or registered trademarks of Measurement Computing Corporation. Refer to the Copyrights & Trademarks section on mccdaq.com/legal for more information about Measurement Computing trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. 2016 Measurement Computing Corporation. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form by any means, electronic, mechanical, by photocopying, recording, or otherwise without the prior written permission of Measurement Computing Corporation. Notice Measurement Computing Corporation does not authorize any Measurement Computing Corporation product for use in life support systems and/or devices without prior written consent from Measurement Computing Corporation. Life support devices/systems are devices or systems that, a) are intended for surgical implantation into the body, or b) support or sustain life and whose failure to perform can be reasonably expected to result in injury. Measurement Computing Corporation products are not designed with the components required, and are not subject to the testing required to ensure a level of reliability suitable for the treatment and diagnosis of people. QS ULx for NI LabVIEW

Table of Contents ULx for NI LabVIEW Software Quick Start... 4 Hardware and Software Requirements... 4 Hardware... 4 Software... 4 Operating systems... 4 Install InstaCal and the ULx for NI LabVIEW software... 4 Install and configure the hardware with InstaCal... 4 Build the NI LabVIEW program... 5 Create an analog input voltage channel... 5 Add a sample clock... 5 Specify when to start the acquisition... 5 Acquire data... 6 Display the data... 6 Write the data to a file... 6 Clear the task... 7 Add error notification... 7 Wire the VIs together... 7 Run the VI... 7 View logged data... 8 Help File... 8 3

Software Quick Start MCC ULx for NI LabVIEW is a library of virtual instruments (VIs) used with Measurement Computing Corporation (MCC) hardware to develop instrumentation, acquisition, and control applications in National Instruments LabVIEW. The ULx syntax is consistent with NI LabVIEW DAQmx VIs. This Quick Start shows you how to create a LabVIEW application that graphs and logs data acquired from a MCC device. The procedures in this document assume that you are familiar with creating applications with NI LabVIEW. Hardware and Software Requirements Hardware Most Measurement Computing Bluetooth, Ethernet/WEB, USB, PCI/PCIe, and Wireless devices are supported. Refer to our website for the software supported by each device. Software NI LabVIEW 10.0 or later MCC InstaCal installation, configuration, and test utility InstaCal is included with the MCC DAQ software bundle that ships with most Measurement Computing hardware. Operating systems Windows 10/8/7/Vista /XP 32/64-bit Install InstaCal and the ULx for NI LabVIEW software Install InstaCal and the ULx for NI LabVIEW software from the MCC DAQ CD, or download the software from our website at www.mccdaq.com/software.aspx. ULx VIs are installed by default into C:\Program Files\National Instruments\LabVIEW <version>\vi.lib\ulx, where <version> is the LabVIEW version that is installed. Install and configure the hardware with InstaCal You must configure MCC hardware with InstaCal before LabVIEW can recognize the device. Note that Measurement and Automation Explorer (MAX) is not used to configure MCC hardware for use in LabVIEW. Complete the following steps to install and configure your hardware: 1. Exit LabVIEW if it is running. 2. Install the MCC hardware that you want to use in LabVIEW. 3. Run InstaCal. A Plug and Play Board Detection dialog box displays the device(s) detected on the system. Select the device to use in LabVIEW and click OK. The device is added to the InstaCal configuration file, and appears with a board number on the main InstaCal window. Use this number to select the hardware in LabVIEW. This procedure acquires data from the device installed as "Board# 0" in InstaCal. 4. Click the device and select Install»Configure to display the Board Configuration dialog box. Configure the hardware and click OK to close the dialog box and write device settings to the configuration file. 5. Connect a signal source to the MCC device so that it acquires signals from analog input channel 0. Refer to the connector pinout in your hardware user's guide for the connector pinout. LabVIEW reads the InstaCal configuration file. If you need to change any device settings, make sure to close LabVIEW before configuring the device. 4

User's Guide Build the NI LabVIEW program Build the NI LabVIEW program This procedure shows you how to create a program that acquires data from an MCC device, displays the data in a waveform, and saves the data to a file. The MCC USB-1608GX-2AO device was used for this exercise. Complete the following steps to create the source code for the program: 1. Start LabVIEW and open a blank VI or empty project. 2. Display the block diagram window if it is not open. 3. Select View»Functions Palette to display the Functions palette. 4. Select User Libraries»ULx for NI LabVIEW to display the MCC ULx VIs. 5. Click the pin icon to keep the ULx for NI LabVIEW palette visible while you select your VIs. Create an analog input voltage channel 1. Select the Create Channel icon and place the ULx Create Virtual Channel VI on the block diagram. Tip: To show a text label on the block diagram, right-click on the VI and select Visible Items»Label from the shortcut menu. 2. Right-click the physical channels terminal and select Create»Control. 3. Add a control to the minimal value terminal. 4. Add a control to the maximum value terminal. Add a sample clock 1. Select the Timing icon and place the ULx Timing VI on the block diagram. 2. Add a control to the sample mode terminal. 3. Add a control to the samples per channel terminal. 4. Add a control to the rate terminal. Specify when to start the acquisition Select thestart icon and place the ULx Start VI on the block diagram. 5

User's Guide Build the NI LabVIEW program Acquire data 1. Select the Read icon and place the ULx Read VI on the block diagram. 2. Click the down arrow and use the Use the polymorphic VI selector to choose the Analog Wfm 1Chan NSamp instance. This VI instance reads multiple samples from one channel. The icon updates with the name of the VI selected. Display the data From the front panel, select Express»Graph Indicators»Graph and place a Waveform Graph on the block diagram. Write the data to a file Select Functions»Programming»File I/O»Write Meas File to add a Write to Measurement File Express VI on the block diagram. The Configure Write to Measurement File dialog box opens: 6

User's Guide Run the VI Configure the following options on the dialog box: 1. In the File Name text box, enter a path to save the data, or browse to the destination path. 2. Select the One header only option button in the Segment Headers area; this option saves the data in a table with one header. When you run the program, the data is saved to a LabVIEW measurement data file (*.lvm). An *.lvm file is a tab-delimited ASCII text file that you can open with a spreadsheet application or text editor. Clear the task Select ULx for NI LabVIEW»Clear and place the VI on the block diagram. This VI releases resources that are reserved for the task. Add error notification Select Functions»Programming»Dialog & User Interface»Simple Error and place the VI on the block diagram. Wire the VIs together 1. Connect a wire between the task out terminal on one VI to the task in terminal on the adjacent VI. 2. Connect a wire between the error out terminal on one VI to the error in terminal on the adjacent VI. 3. Connect a wire between the Waveform Graph to the data terminal on the ULx Read.vi. 4. Connect a wire between the signals terminal on the Write to Measurement File VI to the data terminal on the ULx Read VI. The completed block diagram is shown here: Run the VI After creating the source code for the program, display the front panel and configure the user interface. Complete the following steps: 1. Click the physical channels arrow and select Dev0/Ai0 to acquire data from channel 0 on device 0. The device number is associated with the device installed in InstaCal as "Board# 0". 2. Set the voltage range, sample mode, samples per channel, and rate to values supported by your hardware. The front panel shown below is configured with values supported by the USB-1608GX-2AO. 3. Click the Run button on the toolbar to run the VI. 7

User's Guide View logged data Waveform data displays on the front panel, and the data is written to the file specified in the Write the data to a file procedure on page 6. Data acquired from the USB-1608 is shown below. View logged data You can use a spreadsheet application such as Microsoft Excel or a text editor to open the data file. The following image shows the data file opened and charted in Excel: Help File To learn more about MCC ULx VIs, select ULx for NI LabVIEW Help from the LabVIEW Help menu. 8

Measurement Computing Corporation 10 Commerce Way Norton, Massachusetts 02766 (508) 946-5100 Fax: (508) 946-9500 E-mail: info@mccdaq.com www.mccdaq.com NI Hungary Kft H-4031 Debrecen, Hátar út 1/A, Hungary Phone: +36 (52) 515400 Fax: +36 (52) 515414 http://hungary.ni.com/debrecen