Using MCC GPIB Products with LabVIEW



Similar documents
VIRTUAL INSTRUMENTATION

PRAGMA ENGINEERING Srl. Next-Generation ATS (Sistemi ATE di Nuova Generazione)

Getting Started with the LabVIEW Mobile Module

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

Installing S500 Power Monitor Software and LabVIEW Run-time Engine

Getting Started with the LabVIEW Mobile Module Version 2009

Introduction to Simulink & Stateflow. Coorous Mohtadi

Development Hints and Best Practices for Using Instrument Drivers

Development Hints and Best Practices for Using Instrument Drivers

LabVIEW Advanced Programming Techniques

Eight Ways to Increase GPIB System Performance

Siemens and National Instruments Deliver Integrated Automation and Measurement Solutions

Agilent Intuilink Software Installation

Select Correct USB Driver

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

Transmitter Interface Program

Midland BT Updater BTUpdater Program Program file (x86) ), Midland

Application Note. Example of user log on Magelis HMI with XB5S5B2L2 biometric switch. Advanced Technical Support - Brazil. Version: 1.

How To Use An Nio V (Ios) With A Simioni V2 (V2.3) And V2

How to Use Rohde & Schwarz Instruments in MATLAB Application Note

Check current version of Remote Desktop Connection for Mac.. Page 2. Remove Old Version Remote Desktop Connection..Page 8

Remote control of the ROHDE&SCHWARZ Vector Network Analyzer

Quick Start Using DASYLab with your Measurement Computing USB device

USB PC Adapter V4 Configuration

LAN extensions for Instrumentation

Getting Started Guide

Data Acquisition in LabVIEW

Building Hybrid Test Systems, Part 1

INTRODUCTION... 3 WHAT IS LXI?... 3 NETWORK BASICS... 4 LXI VS. GPIB... 5 LXI CORE FEATURES... 6 INTERCHANGEABLE VIRTUAL INSTRUMENT (IVI) DRIVERS...

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

ScanWin Installation and Windows 7-64 bit operating system

Plotting Spectrum Analyzer Data without a Plotter

EET 310 Programming Tools

Status Monitoring. Using Drivers by Seagull to Display Printer Status Information WHITE PAPER

User Manual Gigabit Ethernet Vision Quick Start Guide

Iridium Extreme TM Satellite Phone. Data Services Manual

PROCESS AUTOMATION PLANNING AND INTEGRATION INFORMATION LB8106* Integration in Siemens SIMATIC PCS 7

Introduction to the NI Real-Time Hypervisor

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

Real Time Monitor. A Real-Time Windows Operator Interface. DDE Compliant. (for remote data display)

QuickPanel Control DeviceNet Master Communications Card (IC754DVNM01) Quick Start Guide. Thursday September 20, 2007

Comparing performance of L7x vs L6x using Logix5000 Task Monitor tool

DSP Laboratory: Analog to Digital and Digital to Analog Conversion

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

Programming Guide. (With Remote Operation and File Downloads) Agilent Technologies Signal Generators

Network DK2 DESkey Installation Guide

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

Setting up a Local Interconnect Network (LIN) using dspace MicroAutoBox 1401/1501 Simulink Blocks

Tablets in Data Acquisition

Beckhoff TwinCAT. Configuring the TwinCAT I/O System

Best Practices for Deploying, Replicating, and Managing Real-Time and FPGA Applications. ni.com

IMPORTANT PRODUCT INFORMATION

How to use the VMware Workstation / Player to create an ISaGRAF (Ver. 3.55) development environment?

Installing the TAPI Support Software

Getting Started Guide

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

Tutorial: Configuring GOOSE in MiCOM S1 Studio 1. Requirements

DUKANE Intelligent Assembly Solutions

Centurion PLUS CPC4 Download Guide

Programming Guide. Agilent Technologies PSG Signal Generators. Manufacturing Part Number: E Printed in USA December 2003

DeviceNet Bus Software Help for Programming an Allen Bradley Control System

QUERY DATA FROM ACTIVE DIRECTORY

Measurement Studio. Contents RELEASE NOTES

Getting Started with IVI-COM and Python for the Lambda Genesys Power Supply

User's Guide. DK2 Overview 1.0.5

iridium for Weinzierl KNX IP BAOS

The Use of Hardware Abstraction Layers in Automated Calibration Software

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

GETTING STARTED. Please turn to the correct section for your operating system

USB Plus+ RFID Reader Setup Guide

Deploying the DisplayLink Software using the MSI files

Creating Datalogging Applications in Microsoft Excel

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

File Management Utility. T u t o r i a l

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

ebus Player Quick Start Guide

A Methodology for Enhancing Legacy TPS/ATS Sustainability via Employing Synthetic Instrumentation Technology

TWAIN/WIA Driver. Operation Guide

Lab 3: Introduction to Data Acquisition Cards

Machine Edition USB Hardware License Key did not get recognize inside Virtual Machine

INF-USB2 and SI-USB Quick Start Guide

Remote Deposit Capture Installation Guide

Transferring Scans from your Dolphin into Destiny

FC Manager Instructions

Installation Guide. N5101A Baseband Studio PCI Card. Overview

Config software for D2 systems USER S MANUAL

Getting Started with IVI Drivers

Network/Floating License Installation Instructions

PM1122 INT DIGITAL INTERFACE REMOTE

OS X LION SET UP THE SYSTEM

ACP ThinManager Tech Notes. Terminal Services Display Clients

Using the NI 17xx Smart Camera Direct Drive Lighting Controller

OmniServer UA Interface Tutorial. A Guide to Configuring the OmniServer OPC UA Server Settings

Installation Instructions

DSO138 oscilloscope program upgrade method

October 21 November 5 November 14 December 12. Washington DC Boston Chicago San Jose. ni.com

Setting up your laptop to print to the student lounge printer

ACTIVE DIRECTORY WEB SERVICE USER GUIDE LAST UPDATED: January 4, 2013

Transcription:

Using Products with LabVIEW * This application note applies to PCI-GPIB-1M, PCI-GPIB-300K, PCM-GPIB, as well as to ISA- and PC104- boards How NI Compatibility Works National Instruments (NI) provides the NI-488.2 GPIB package for use only with NI hardware. NI-488.2 contains a library of functions such as ibfind, ibrd, and ibwrt that are used to control the device. NI- 488.2 provides an interface between the programmer and NI s GPIB hardware driver. To use hardware, install the instead of NI-488.2. The contains similar functions as those found in NI-488.2. The, however, provides a link to hardware rather than to NI GPIB hardware. This relationship is illustrated below. MCC Hardware Driver Board Application NI NI-488.2 NI Hardware Driver NI GPIB Board Figure 1. How an application communicates with GPIB hardware NI-488.2 and the use some files with identical names, and cannot be installed on the system at the same time; therefore, NI and hardware cannot co-exist on the same machine. If the NI 488.2 package is installed, hardware does not function, and if the package is installed, NI GPIB hardware does not function. LabVIEW GPIB VIs The GPIB VIs found on the LabVIEW Function Palette under All Functions Instrument I/O GPIB and All Functions Instrument I/O GPIB 488.2 are used to access the NI-488.2 driver and communicate with NI GPIB hardware. In order to use hardware, NI-VISA should be used as the I/O interface. NI-VISA and Hardware VISA stands for Virtual Instrument Software Architecture. Its main component is a file called visa32.dll that contains a list of functions used to communicate with instruments through various interfaces, including GPIB, VXI, PXI, Serial, Ethernet, and USB. The VISA functions are not intended for a specific interface; but provide a way for applications to communicate with instruments regardless of the interface used. Each instrument attached to the computer is assigned a VISA identifier which describes its interface type, bus address, device address, and function. For example, a GPIB oscilloscope might be described as GPIB0::5::INSTR, meaning the instrument on GPIB bus 0 at device address 5. 1 Products and LabVIEW.doc Revision 1

Using Products with LabVIEW When VISA functions communicate with GPIB devices, they use the same basic GPIB functions described earlier. This means that VISA functions can communicate with hardware through the as shown below. VXI... GPIB Hardware NI-VISA (visa32.dll) Serial...... Figure 2. How NI-VISA communicates with Hardware With NI-VISA, National Instruments includes a utility called VISA Interactive Control that detects and tests any instruments connected to your computer. This utility is available from the Windows Start menu under Programs National Instruments VISA. To view and test instruments connected to hardware with this utility, perform the steps below. 1. Make sure that you have a valid development or deployment license for NI-VISA. For more information on obtaining such a license, check the National Instruments website at www.ni.com/visa. 2. Install the software and controller board. 3. Connect at least one GPIB instrument to the controller board. 4. Configure the MCC controller board in the MCC CBCONF32 utility in accordance with the GPIB Programming User's Guide (www.mccdaq.com/pdfmanuals/gpibsoftware.pdf). 5. While you are configuring the controller board, change the Disable Auto Serial Polling setting to NO. 6. Configure each instrument attached to the GPIB board in CBCONF32. Make sure that the primary (and secondary, if applicable) GPIB address for the instrument is configured correctly. Save the settings and exit CBCONF32. 7. Start NI s VISA Interactive Control utility. The GPIB controller board and instrument are listed under the GPIB heading on the VISA I/O tab. 2

Using Products with LabVIEW Figure 3. VISA Interactive Control 8. To test communication, double click on the instrument address to bring up the instrument session window. You can send commands and receive data from the device under the Basic I/O Read and Basic I/O Write tabs. IMPORTANT: Make sure that the Async checkbox on these tabs is unchecked. The driver does not support asynchronous communication. Figure 4. Testing I/O in VISA Interactive Control 3

Using Products with LabVIEW LabVIEW VISA VIs The LabVIEW VISA VIs available on the LabVIEW Function Palette under All Functions Instrument I/O VISA use the visa32.dll to communicate with and control connected instruments. The VISA VIs can be used to communicate with hardware as shown below. LabVIEW VISA VIs NI-VISA (visa32.dll) Hardware Figure 5. How LabVIEW VISA VIs communicate with hardware The VISA Locking.vi example included with LabVIEW shows how to use the VISA VIs with GPIB hardware. It is available from the LabVIEW Example Finder under Hardware Input and Output VISA in the task list. Hardware and the Measurement and Automation Explorer The NI Measurement and Automation Explorer (MAX) configures and tests NI s GPIB hardware. It provides essentially the same functionality that MCC s CBCONF32, CBTEST32, and CBIC programs do. MAX cannot detect or configure hardware. Likewise, CBCONF32 cannot detect or configure NI GPIB hardware. Hardware and IVI-based Instrument Drivers IVI stands for Interchangeable Virtual Instruments. It is an industry-standard originally developed by National Instruments for writing instrument drivers. An instrument driver is a collection of higher-level functions that can communicate with a specific instrument The higher-level functions shield the user from having to know the library of commands for each specific device. IVI enables programmers to write an application generically for a type of instrument and use the code interchangeably with any device of that type. An IVI-compliant instrument driver consists of two parts: a class driver and an instrument-specific driver. The class driver contains a standard list of functions for a particular device class. The IVI-standard driver defines eight different instrument classes: digital multimeter, oscilloscope, DC power supply, switch, power meter, spectrum analyzer, function generator, and RF signal generator. The instrument-specific driver provides implementation for functions associated with a specific device and also provides an interface between the class driver and lower-level functions. IVI drivers communicate with instruments through VISA. Since this is the case, some compatibility between IVI drivers and hardware is expected. However, the drivers are not developed or tested by MCC, so compatibility is not guaranteed. The IVI control path is shown below. 4

Using Products with LabVIEW Application IVI Class Driver IVI-Specific Driver NI-VISA (visa32.dll) Hardware Instrument Figure 6. How IVI communicates with instruments through hardware IVI devices can be configured with logical names through MAX that can be used to refer to the device in LabVIEW applications. To configure an instrument connected to a board for use with an IVI driver, perform the following steps: 1. Follow the steps outlined above under NI-VISA and Hardware for configuring the board for use with VISA. 2. Ensure that the latest version of NI s IVI Compliance Package is installed 3. Download and install the IVI compliant instrument driver for your instrument from NI s website (http://sine.ni.com/apps/we/niid_web_display.drv_search). 4. Start the Measurement and Automation Explorer and open the IVI Drivers node under My System. 5. Right click on Logical Names and click Create new (case sensitive). Type the logical name you want to use for your instrument, for example Fluke Multimeter. 6. In the Driver Session drop-down box on the General tab in the right pane, choose the instrument driver you downloaded in step 3. Then click the Go To button. 5

Using Products with LabVIEW Figure 7. MAX IVI Logical Name configuration 7. On the General tab, in the Simulate With drop-down box, choose Don t Simulate. 8. On the Hardware tab, click <<Create New and type the name you used in Step 5. Press Enter to enable the other two text boxes on this tab. 6

Using Products with LabVIEW 9. In the Resource Descriptor text box, type the VISA descriptor for the device. You can retrieve this information from the VISA Interactive Control utility. It should look something like GPIB0::5::INSTR Figure 8. IVI Hardware configuration 10. Click the Save button at the top of the pane and exit MAX. You should now be able to use the logical name you entered to access the instrument. Try one of the examples in the LabVIEW Example Finder under Hardware Input and Output Instrument Drivers & IVI General to test it. Make sure you choose an example for your instrument s class. 7