LV-Link 3.0 Software Interface for LabVIEW

Similar documents
DT9838 Strain Measurement Module

DT9838. Strain- and Bridge-Based Measurement Module. Key Features: Bridge Configurations. Analog Input Features

Graphical Control Panel User Manual

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features

Measurement Studio NI-DAQmx.NET Examples

EKT 314/4 LABORATORIES SHEET

EKT 314/4 LABORATORIES SHEET

AWG414 4-GSPS 12-bit Dual-Channel Arbitrary Waveform Generator

A software solution for mechanical change measurement through virtual instrumentation

Signal Generation in LabVIEW

Technical Datasheet UltraScope USB

AWG801 8 GSPS 11-bit Arbitrary Waveform Generator

Multiple Instrument Station Module

Auntie Spark s Guide to creating a Data Collection VI

A software solution for displacement and angular speed measurement through virtual instrumentation

MSO Supplied with a full SDK including example programs Software compatible with Windows XP, Windows Vista and Windows 7 Free Technical Support

dspic30f Quadrature Encoder Interface Module

Correlation of Voltage and Temperature Measurement

Version Futek Instruments, LLC

DST501-1 High-Speed Modulated Arbitrary Chirping Module

USB-UT350(T) Portable Ultrasonic Pulser/Receiver and Analog to Digital Converter. User s Guide

DSM303-V4 3.0 GHz Arbitrary Frequency Chirping Module

LAB II. INTRODUCTION TO LABVIEW

CHAPTER 7 HARDWARE IMPLEMENTATION

X3M. Multi-Axis Absolute MEMS Inclinometer Page 1 of 13. Description. Software. Mechanical Drawing. Features

IVI STEP TYPES. Contents

Burst mode - This is incorporated to simulate simultaneous analog input. Compatible with a range of Application Development Environments

BNC-2121 Connector Accessory for 660X Devices

Agilent 81180A Arbitrary Waveform Generator

USB-TEMP and TC Series USB-Based Temperature Measurement Devices

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

How different FPGA firmware options enable digitizer platforms to address and facilitate multiple applications

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

CompuGen PCI Hardware Manual and Driver Installation Guide

MODELS 5251/ MS/s PXIBus / PCIBus Arbitrary Waveform / Function Generators

USER S MANUAL. Series IP483 Industrial I/O Pack Counter Timer Module

Microcontroller: Timers, ADC

ArbStudio Arbitrary Waveform Generators. Powerful, Versatile Waveform Creation

Exercise 2-1. PAM Signals EXERCISE OBJECTIVE DISCUSSION OUTLINE. Signal sampling DISCUSSION

crio Resolver Simulation crio RVDT Simulation Manual V3.0

Two Channels Signal Generator Designed as Virtual Instrument

LLRF4 Evaluation Board

ArbStudio Arbitrary Waveform Generators

DT 9818 Waveform-Generator. Hardware Trigger Version. Operating Manual. Version 2.0. May Page 1 of 21

DAQ. PCI/PXI User Manual. High-Speed Counter/Timer for PCI or PXI Bus Systems. PCI/PXI-6602 User Manual

USB-CTR08-OEM. High-Speed Counter/Timer. User's Guide

MODEL AND MODEL PULSE/PATTERN GENERATORS

TOSHIBA MACHINE CO., LTD.

Lab 12: Timing sequencer (Version 1.3)

MODELS WW5061/2. 50MS/s Single/Dual Channel Arbitrary Waveform Generators

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand

Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives:

ATS330. ATS MS/s 12-Bit PCI Digitizer

ELG3336 Design of Mechatronics System

DAQ. 6601/6602 User Manual. High-Speed Counter/Timer for PCI or PXI Bus Systems. 6601/6602 User Manual. January 1999 Edition Part Number B-01

Astronics Test Systems 3100M. Product Information

Universal Driver Software User Guide FP-GPIO96 FeaturePak 96-bit digital I/O module For Version and later

GENERATION OF SIGNALS USING LABVIEW FOR MAGNETIC COILS WITH POWER AMPLIFIERS

ATS850. ATS MS/s 8-Bit PCI Digitizer

Topics Introduction to Microprocessors

LC-10 Chipless TagReader v 2.0 August 2006

Microprocessor & Interfacing Lecture Programmable Interval Timer

AC : A STUDENT PROJECT: DEVELOPING LABVIEW DRIVERS FOR A MEASUREMENT BRIDGE

NI 6013/6014 Family Specifications

Application Note: Pulse and Direction for the Position and Velocity Commands

ni.com Sensor Measurement Fundamentals Series

NI 6731/6733 Specifications

PC-OSCILLOSCOPE PCS500. Analog and digital circuit sections. Description of the operation

USB Dynamic Signal Acquisition

USB Multifunction Arbitrary Waveform Generator AWG2300. User Guide

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

µchameleon 2 User s Manual

BitScope Micro - a mixed signal test & measurement system for Raspberry Pi

Data acquisition and instrumentation. Data acquisition

400 W up to 21,000 W 260 V up to 440 V 3 A up to 100 A. Electronic Load ZSAC

Enhancing Analog Signal Generation by Digital Channel Using Pulse-Width Modulation

Chapter 10 Counter modules

Additional Programs for the Electronics Module Part No

PC-based controller for Mechatronics System

Considerations for Analog Input and Output

Analog Arts SL987 SL957 SL937 SL917 Product Specifications [1]

9530/8530 Series Pulse Generator Operating Manual

AN4507 Application note

DAC A (VCO) Buffer (write) DAC B (AGC) Buffer (write) Pulse Code Buffer (write) Parameter Buffer (write) Figure A.1. Receiver Controller Registers

Time Varying Signals Chemistry 838

Digital Logic ircuits Circuits Fundamentals I Fundamentals I

About the DSR Dropout, Surge, Ripple Simulator and AC/DC Voltage Source

2 Oscilloscope Familiarization

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss

TAPR TICC Timestamping Counter Operation Manual. Introduction

Multi-Channel High Performance Data Acquisition System and Digital Servo Controller Module

Analog Arts SF990 SF880 SF830 Product Specifications

Product Family: 05, 06, 105, 205, 405, WinPLC, Number: AN-MISC-021 Terminator IO Subject: High speed input/output device

NI DAQPad -6020E Family Specifications

Time Matters How Power Meters Measure Fast Signals

Designing with STM32F3x

STELLARIS ERRATA. Stellaris LM3S8962 RevA2 Errata

Bohunt School (Wokingham) Internet of Things (IoT) and Node-RED

SonoLab Echo-I User Manual

Racal Instruments. Product Information

Transcription:

LV-Link 3.0 Software Interface for LabVIEW LV-Link Software Interface for LabVIEW LV-Link is a library of VIs (Virtual Instruments) that enable LabVIEW programmers to access the data acquisition features of DT-Open Layers-compliant devices. This library is consistent with the design and layout of the LabVIEW DAQmx VIs to speed development time and minimize learning curve issues. LV-Link provides the ability to measure and control analog I/O, digital I/O, quadrature decoders, and counter/timer signals, and stream data at full-speed. To get up and running quickly, numerous application examples are provided with the software. The source code for the examples is also included so you can easily modify them to speed your development time. Key Features: Create test and measurement applications for Data Translation DT-Open Layers compliant USB and PCI hardware using LabVIEW Integrate Data Translation and National Instruments hardware in the same application Measure and control analog I/O, digital I/O, quadrature decoders, counter/timer signals Stream data at full-speed Numerous example programs to aid application development Figure 1. DtAinContinuous.vi Block Diagram demonstrates how to access the power of Data Translation DT-Open Layers compliant devices using LabVIEW and LV-Link. A task in LabVIEW is a collection of one or more virtual channels with timing, triggering, and other properties. A task represents a measurement or output operation to be performed using a specific subsystem of a device. The following operation types, or tasks, are supported in LV-Link: Analog Input Analog Output Digital Input Digital Output Counter/Timer Quadrature Decoder LV-Link provides a number of example programs that demonstrate how to perform these tasks using the. Figure 2. DtAinContinuous.vi Front Panel demonstrates how to continuously acquire data from an analog input channel. Analog Input Tasks LV-Link supports the following types of analog input tasks: Single value - Acquires a single sample from a single analog input channel and returns the value immediately. Specify whether to return the data either as a voltage or a raw count. Single-value operations are the simplest to use but offer the least flexibility and efficiency.

Finite - Acquires a specified number of samples from one or more analog input channels one time, and then stops. Specify whether to return the data either in voltage or raw counts. Depending on your device, you can specify a sample clock to pace the operation, the number of samples to acquire, and a trigger to start the acquisition. Some devices also allow you to acquire the value of the digital input ports, counter/timers, and quadrature decoders using an analog input task. Continuous - Acquires multiple samples from one or more analog input channels continuously. Specify whether to return the data either in voltage or raw counts. Depending on your device, you can specify a sample clock to pace the acquisition of each sample, the number of buffers to use (and their sizes), and a trigger to start the acquisition. Some devices also allow you to continuously acquire the value of the digital input ports, counter/timers, and quadrature decoders using an analog input task. Analog Output Tasks LV-Link supports the following types of analog output tasks: Single value - Writes a single sample to a single analog output channel. Specify whether to output the data as a voltage or a raw count. Single-value operations are the simplest to use but offer the least flexibility and efficiency. Finite - Writes a specified number of samples to one or more analog output channels one time, and then stops. Specify whether to output the data in voltage or raw counts. Depending on your device, you can specify a sample clock to pace the operation, and/or a trigger to start the operation. Some devices also allow you to update the value of the digital output ports using an analog output task. Continuous - Writes a single buffer or multiple buffers to one or more analog output channels continuously. Specify whether to output the data in voltage or raw counts. Depending on your device, you can specify a sample clock to pace the operation, and/or a trigger to start the operation. Some devices also allow you to continuously update the value of the digital output ports using an analog output task. Waveform - Writes a waveform to a single analog output channel once or continuously. Digital I/O Tasks LV-Link supports the following types of digital I/O tasks: Single value digital input - Reads the value of a single digital input port once and returns the value immediately. The port is configured with the default resolution specified by the device. Single value digital output - Updates the value of a single digital output port immediately. The port is configured with the default resolution specified by the device. Counter/Timer Tasks LV-Link supports the following types of counter/timer tasks: Event counting - Counts digital pulses from an external signal, which is connected to the counter/timer s clock input source, when the counter/timer is enabled (determined by the counter/timer s gate input signal). Up/Down counting - Counts digital pulses from an external signal that is connected to the counter/timer s clock input source. If the gate input signal of the counter/ timer is high, the count is incremented. If the gate input signal of the counter/timer is low, the count is decremented. Frequency measurement - Measures the frequency, in khz, of an external digital signal that is connected to the counter/timer s clock input or gate input source. Note: Internally, the frequency of the signal is calculated using two consecutive rising edges on the specified input line. Therefore, to perform a frequency measurement task, your device must support edge-to-edge measurement mode. Period measurement - Measures the period, in milliseconds, of a signal pulse from an external digital signal that is connected to the counter/timer s clock input or gate input source. Note: Internally, the period of the signal is calculated using two consecutive rising edges on the specified input line. Therefore, to perform a period measurement task, your device must support edge-to-edge measurement mode. Edge-to-edge measurement - Measures the time, in milliseconds, between a specified start edge and stop edge of the counter/timer s clock or gate input signal, then stops. The start edge and the stop edge can occur on the rising edge of the gate input signal, the falling edge of the gate input signal, the rising edge of the clock input signal, or the falling edge of the clock input signal. Continuous edge-to-edge measurement - Measure the time, in milliseconds, between a specified start edge and stop edge of a counter/timer s clock or gate input signal, then automatically restart the next measurement. The start edge and the stop edge can occur on the rising edge of the gate input signal, the falling edge of the gate input signal, the rising edge of the clock input signal, or the falling edge of the clock input signal. One-shot - Outputs a single pulse for a specified duration (in milliseconds) the first time that the device detects a trigger (determined by the counter/timer s gate input signal). Repetitive one-shot - Outputs a single pulse for a specified duration (in milliseconds) each time that the device detects a trigger (determined by the counter/ timer s gate input signal). 2

Rate generation - Generates output pulses continuously at a specified frequency (in Hz) when the counter/timer is enabled (determined by the counter/timer s gate input signal). Quadrature Decoder Tasks Some devices support quadrature decoder operations. A quadrature decoder accepts signals (A, B, and Index) from a quadrature encoder as inputs and converts these signals into a clock output whose pulses are counted by the decoder. LV-Link provides VIs for developing data acquisition applications that work with DT-Open Layers-compliant PCI and USB devices. DtOLClock DtOLCloseTask DtOLConfig DtOLCreateTask DtOLGetBoard DtOLGetBoardNames DtOLGetChanList DtOLRead DtOLReStart DtOLSetChanGain DtOLSetChanOptions DtOLStart DtOLStop DtOLSubsystem DtOLTiming DtOLTrigger DtOLTriggerSource DtOLWaitUntilDone DtOLWaveformGenerate DtOLWrite Sets and returns information pertaining to the clock source of a device Stops the task and releases all associated resources Configures the specified task Creates virtual channels and configures the tasks with specified settings Returns information about device, including board name, driver name, driver revision, and device name Returns the name of all DT-Open Layerscompliant devices that are installed Returns information about the channel-gain list Reads samples from the virtual channels of a task you specify Restarts a task Sets the gain for a virtual analog channel Specifies the sensor gain and offset, and if IEPE inputs are supported, the excitation current source and input coupling type for a virtual analog channel Either starts a task explicitly or groups two tasks so that they can be started simultaneously. Stops a task and returns it to its original state Sets and returns information about the subsystem of the device Specifies the timing- or clock-related attributes of an analog input or analog output task Specifies trigger-related attributes of analog input or analog output task Sets and returns information pertaining to the trigger source of a device Waits for a specified task to complete or for the timeout interval to elapse before stopping Creates one cycle of a sine, triangle, square, or sawtooth wave with a specified number of samples, frequency, and amplitude per cycle Outputs samples to the virtual channels of a task you specify 3

Utility VIs Utility VIs are used to perform specific operations when used with other VIs in LV-Link. DtInitDACBuffers DtOLCheckStatus DtOLErrorParser DtOLWriteTwoChannelSingle Examples Initializes the values in the buffers used by analog output tasks Calls LV-Link to determine whether an error has occurred Converts error codes from DT-Open Layers into LV-Link error codes for use with LabVIEW's error handler Vis Outputs a single sample, formatted as a 64-bit floating-point number, to two virtual channels of a task you specify LV-Link includes a number of example programs that illustrate how to perform data acquisition operations on DT-Open Layers-complaint devices. You can easily modify these examples to speed your development time. DtAinAoutContinuous DtAinAoutSimultaneous DtAinContinuous DtAinGainPerChAn DtAinRawContinuous DtSetChanOptions DtAinSingle DtAinTrig DtAoutRawSingle DtAoutSingle DtAoutTwoSingle DtAoutWaveform DtCtrEvents DtCtrFreq DtCtrOneShot DtCtrOneShotRepeat DtCtrPeriod DtCtrRate DtCtrTwoEdgeTiming DtCtrUpDown DtDinSingle DtDoutSingle Quadrature Examples from an analog input channel and continuously output the data to an analog output channel Demonstrates how to start an analog input and analog output operation at the same time from an analog input channel Demonstrates how to set up different gains and acquire data from multiple analog input channels Demonstrates how to continuously acquire raw counts from analog input channels Demonstrates how to set up analog input options, including the sensor gain and offset, and, if IEPE inputs are supported, the current excitation source and the input coupling type for a specified analog input channel Demonstrates how to acquire a single value from an analog input channel repetitively in a loop when an analog trigger threshold is detected Demonstrates how to write a single raw count to an analog output channel repetitively in a loop Demonstrates how to write a single voltage value to an analog output channel repetitively in a loop Demonstrates how to write a single voltage value to two analog output channels repetitively in a loop Demonstrates how to output a waveform from an analog output channel repetitively in a loop Demonstrates how to count digital pulses from an external signal Demonstrates how to measure the frequency of an external digital signal Demonstrates how to generate a single output pulse for a specified duration Demonstrates how to output a single pulse for a specified duration each time a trigger is detected Demonstrates how to measure the period of an external digital signal Demonstrates how to generate an output pulse at a specified frequency when the C/T is enabled Demonstrates how to measure the time between a specified start and stop edge Demonstrates how to count digital pulses from an external decremented signal that is connected to the C/T input source. If the gate input signal of the C/T is high, the counter is the gate input signal of the C/T is low, the count is incremented. Demonstrates how to read a single value from a digital input port repetitively in a loop Demonstrates how to write a single value from a digital output port repetitively in a loop. Demonstrates how to read the value of a quadrature decode, repetitively in a loop 4

Building and Distributing an Executable If you want to create a stand-alone executable of a VI that you have created, you need LabVIEW s Application Builder. The Application Builder is included as part of the LabVIEW Professional Development System and is also available as a separate option that you can purchase from National Instruments. The Application Builder creates executables from user-specified files (such as VIs, libraries, documentation, data files, and so on) and saves individual build settings as part of the project file. Porting Code from LV-Link 2.0 to LV-Link 3.0 Where LV-Link 2.0 is based on the DT-Open Layers for.net Class Library, LV-Link 3.0 is based on the DT-Open Layers Data Acq SDK. If you have a LabVIEW application that was written using LV-Link 2.0 and you want to port that application to use LV-Link 3.0, keep the following information in mind: All of the top-level VIs in LV-Link 3.0 have been renamed. Some terminals and data types have been changed for the top-level Vis in LV-Link; application modifications will be required to appropriately deal with these changes. New VIs have been added to LV-Link 3.0 to replace the.net interface. These low-level VIs call directly into the entry points of the DLL of the Data Acq SDK and are used by the higher level VIs. To access the Data Acq SDK directly, use the new Vis in your application. Some LV-Link 2 VIs have been removed and no longer exist. LV-LINK 3.0: Ordering Information All Data Translation hardware products are covered by a 1-year warranty. For pricing information, please visit our website or contact your local reseller. SP0811-CD LV-Link, is available for download on our web site at www.datatranslation.com. SYSTEM REQUIREMENTS: Before using LV-Link, ensure that you have installed the following: LabVIEW 8.5.1 or greater for 32-bit support, or LabVIEW 2009 or higher for 64-bit or 32-bit support. Refer to your LabVIEW documentation for details LV-Link 3 One or more DT-Open Layers-compliant devices, including the software for the devices Documentation A comprehensive help file is included with LV-Link. Technical Support Application engineers are available by phone and email during normal business hours to discuss your application requirements. Extensive product information, including drivers, example code, pinouts, a searchable Knowledge Base, and much more, is available 24 hours a day on our web site at www.datatranslation.com. For more information about LV-Link please visit: http://www.datatranslation.com/info/lv-link/ Copyright 2011 Data Translation, Inc. All rights reserved. All trademarks are the property of their respective holders. Prices, availability, and specifications are subject to change without notice.