Installing PXI-GPIB and PXI-8232 Controllers

Note PRINT THIS SECTION! Your computer needs to be off while you install your interface.
Caution Electrostatic discharge can damage several components on your GPIB board. To avoid electrostatic damage when you handle the board, touch the antistatic plastic package to a metal part of your system chassis before removing the board from the package.

Complete the following steps to install your PXI module:

  1. Make sure that your PXI or CompactPCI chassis is powered off. Keep the PXI or CompactPCI chassis plugged in so that it remains grounded while you install your PXI module .
  2. Choose an unused PXI or CompactPCI 5 V peripheral slot. For maximum performance, your PXI module has an onboard DMA controller that can be used only if the module is installed in a slot that supports bus arbitration, or bus master cards. NI recommends installing your PXI module in such a slot. If you install the module in a non-master slot, you must disable your PXI module's onboard DMA controller using the board-level called ibdma. Refer to the NI-488.2 Help for a complete description of ibdma.
  3. Remove the filler panel for the peripheral slot you have chosen.
  4. Touch a metal part on your chassis to discharge any static electricity that might be on your clothes or body.
  5. Insert your PXI module into the selected 5 V slot. Use the injector/ejector handle to fully inject the device into place. Figure 1 shows how to install your PXI module in a PXI or CompactPCI chassis.

Figure 1. PXI Installation

  1. Screw the front panel of the PXI module to the front panel mounting rail of the PXI or CompactPCI chassis.
  2. Power on your PXI or CompactPCI chassis.
  3. The PXI module installation is now complete.

GPIB Configuration

Use the following video tutorials or the document below to assist you in completing this task:

Configuration in Windows

Configuration in Linux

Configuration in Mac OS X

The Measurement & Automation Explorer (MAX) utility comes with the NI-488 driver for your GPIB controller. MAX makes GPIB instrument detection and control easy by providing tools to help you search for connecting instruments, and communicate with your device.

Open MAX by clicking on the icon on your desktop or by going to Start>>Programs>>National Instruments>>Measurement & Automation.

Figure 2. MAX Main Menu

To confirm that your GPIB device is connected properly, expand the Devices and Interfaces subdirectory below My System. This tutorial uses a USB-GPIB-HS controller. If you are using a PCI, serial, or Ethernet controller/converter, the name may be slightly different. Click on Scan for Instruments.

Figure 3. Scanning for Instruments in MAX

If your GPIB device is SCPI-compliant, the name and address appear in the lower main window once the instrument scan is complete.

Figure 4. GPIB Device Found

If your device did not appear, refer to GPIB Installation/Configuration Troubleshooter. Also refer to KnowledgeBase 1UO68A5P: Scan for Instruments Fails in Measurement & Automation Explorer.

MAX creates the necessary resources for VISA communication with your GPIB instrument. By double-clicking on the identified instrument (in the lower main window of Figure 4), you can access the instrument VISA Properties to change the VISA Resource Name of the device and communicate with it by clicking on Communicate with Instrument (SCPI commands), or Open VISA Test Panel (non-SCPI commands).

Figure 5. Opening VISA Properties Tab

For this example, you entered TDS2024 as your VISA Alias. It is important to choose an alias that you can immediately identify with the intended instrument. This is especially important for large systems featuring many instruments.

Using the VISA Interactive Control to Confirm Communication and More

The VISA Interactive Control (VISAIC) is a standard software utility included with NI GPIB controller products. Using your computer, you take advantage of this powerful development and debugging tool to interactively communicate (read, write, serial poll, and so on) with your GPIB instruments. With the VISAIC utility, you can speed up application development by learning how to automate measurements with your instruments, uncover GPIB problems, and avoid headaches by identifying malfunctioning instruments. For Windows platforms, the VISAIC utility comes with online help that describes the applicable NI-488 functions and NI-488.2 routines, syntax, error codes, and status variables that offer the debugging information you need to solve problems.

For a detailed discussion on how to use the VISAIC utility and the functions in the examples, refer to the VISA help file and NI-488.2 help file, respectively, that came with your GPIB controller. The following sections assume a basic knowledge of the VISAIC utility and GPIB.

To launch VISAIC, click on Tools»NI-VISA»VISA Interactive Control (see Figure 6).

Figure 6. Launch VISAIC

Quickly Determining GPIB Addresses

When VISAIC initially runs, it automatically finds all of the available resources in the system and lists the instrument descriptors for each resource under the appropriate resource type. Figure 7 shows the VISAIC opening window.

Figure 7. VISA Interactive Control

Instruments must be powered on and connected to the GPIB controller to be recognized. If you have two or more instruments on the bus, you can disconnect all instruments except one to determine its address. By isolating each instrument on the bus and repeatedly refreshing (View»Refresh), you can quickly determine the address of each instrument. You also can use the Resource to Find field to query each instrument for an identification (ID) string. ID querying is discussed in the next section .

Establishing Communication With Your Instruments

Once you have determined the GPIB address of your instruments, it is easy to establish communications to verify that you can send and receive data to and from the instrument. Because most instruments are compliant with 488.2, you can query the instrument for its identification by sending it the *IDN? command. Instruments typically respond with the manufacturer's name, model name, and various alphanumeric characters that the manufacturer uses to track firmware revisions. To communicate with our instrument at Address 4, follow these instructions:

First, double-click the instrument in the VISAIC that you want to communicate with—in this case, GPIB0 ::4::INSTR.

This opens a VISA Test Panel for your instrument. With this test panel, you can set properties for your instrument communication as well as read and write to the instrument.

Figure 8. VISA Test Panel Basic I/O (Write)

From the Basic I/O tab, select the *IDN?\n command, which is the 488.2 instrument identification command *IDN? followed by the termination character \n. Next, press the Write button to send this command to the instrument. Finally, press the Read button to read back the response from the instrument. Your instrument should return an identification string that appears in the window. You also can perform both a write and a read automatically by pressing the Query button.

Now from the viRead tab, we select a count of 100, the length of our expected response, and then click Execute. Our instrument should return an identification string.

We have just confirmed communication with our instrument. We can repeat this process to confirm communication with all of our connected instruments.

Figure 9. VISA Test Panel Basic I/O (Read)

An Easy Way to Troubleshoot Instrument, Cable, and Power Problems

Many times, systems are powered down and cables are disconnected from instruments for maintenance or system configuration changes. Unfortunately, engineers sometimes forget to reconnect all the cables and power up all the instruments. Alternatively, system power may be disrupted for a variety of reasons or the actual instrument may begin to malfunction. VISAIC is also convenient for verifying that your instruments are still "alive" on the bus. Simply use the refresh (View»Refresh) to check if a particular instrument is listening at its assigned GPIB address. If it is not, then you know to check cables, confirm power, and verify that the instrument is working properly.

If there is a problem, you no longer see your device. This indicates that you should check for loose or disconnected cables, power disruption, or a malfunctioning instrument.

The basic functions and concepts described above may seem simple; however, they can be invaluable in troubleshooting and getting your GPIB system up and running. These productivity tools help you focus on developing your test applications instead of trying to track down obscure problems or establishing communications with your instruments.

Once you have completed these steps, you need a fast way to progress from interactive mode to programming mode so you can immediately begin writing your tests without a tedious transition process. The best way to achieve this is by using instrument drivers.

Prev Install Software
Install Instrument Drivers Next