Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 2 out of 5     Rate this Document

Using the VISA Interactive Control to Communicate with VXI\VME Devices

Primary Software: Driver Software>>NI-VXI/VISA
Primary Software Version: 3.3.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
How can I interactively communicate with my VXI\VME device?

Solution:
National Instruments VXI/VME controllers ship with two interfaces for communicating with VXI/VME devices: NI-VXI and NI-VISA. Both NI-VISA and NI-VXI ship with tools that allow you to interactively communicate with your VXI/VME devices. These tools provide a valuable debugging environment and are also useful for learning more about the NI-VISA and NI-VXI function calls used to communicate with your instruments.

VISA Interactive Control (VISAIC) is the easiest and best troubleshooting tool to use for most users. VISAIC is a utility that uses VISA function calls to communicate with your VXI/VME instruments. NI-VISA routes these calls to the lower level NI-VXI driver, which then communicates to your instruments. VISAIC requires that you have you installed both NI-VXI and NI-VISA correctly in order to function properly.

VISAIC is installed with VISA on platforms that support the LabWindows/CVI Run-Time Engine. This utility provides access to all of VISA’s functionality, in an easy-to-use graphical environment. It is a convenient starting point for program development and to learn about VISA. When VISAIC starts, it automatically finds all of the available resources in the system and lists the instrument descriptors for each resource in the starting screen. An example is shown in Figure 1 below.


Figure 1: VISA Interactive Control

VISAIC uses the Resource Manager output table to see what VXI resources are available in the system. VISAIC also tries to read a configuration register for each instrument to verify that the Resman table is correct. If one configuration register read fails, VISAIC provides a warning indicating that a resource is not present. Such a warning generally indicates that the Resource manager output table is out of date, and that you need to rerun the Resource Manager. The Soft Front Panels tab of the main VISAIC panel provides the option of launching the soft front panels of any VXIplug&play instrument drivers installed on the system. The NI I/O tab provides the option to launch the NI-VXI interactive utility VIC or the NI-488 interactive utility IBIC. This offers convenient links into the interactive utilities for the lower level drivers called by NI-VISA.

Double-clicking on any instrument descriptor shown in the VISAIC starting window opens a session to that instrument. Opening a session to an instrument produces a window with a series of tabs for interactively running VISA commands. The exact appearance of these tabs depends on which compatibility mode VISAIC is in. To access the compatibility mode and other VISAIC preferences, select Edit»Preferences to bring up the window shown below in Figure 2.


Figure 2: VISAIC Preferences

The VISA implementations are slightly different in LabVIEW and LabWindows/CVI—these differences are reflected in the operation tabs shown when a session to a resource is opened. By default, the compatibility mode is set to LabWindows/CVI. You should change this setting to LabVIEW if you are using LabVIEW to program your VXI/VME instruments. After you change the preferences, the new preferences take effect for any session opened later. Figure 3 below illustrates an example of a session to a device at VXI logical address 1. Note that the instrument resource descriptor is included in the title bar of the session window.


Figure 3: VISAIC Session Window

Three main tabs appear in the resource interaction window. The Template tab contains all operations dealing with events, attributes, and locks. The Basic I/O tab contains the basic operations for Message-Based communication, while the Register I/O tab contains the basic operations for Register-Based communication. VISAIC is able to detect whether you are using a message based or register based device and will not display a Basic I/O tab for purely register based devices.

VIC and VICtext are useful for debugging NI-VXI function calls. VICtext is the only tool that is available on all platforms supported by NI-VXI. For more information about using VIC and VICtext see the manuals linked below.



Related Links:
Product Reference: NI-VXI Graphical Utilities Reference Manual (VIC)
Product Reference: NI-VXI Graphical Utilities Reference Manual (VICtext)


Attachments:


vxi_interactive_image39.gifvxi_interactive_image40.gifvxi_interactive_image41.gif


Report Date: 08/03/2006
Last Updated: 08/18/2006
Document ID: 402EK3GH

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit