National Instruments NI-488.2 - Manuals
National Instruments NI-488.2 – Manual in PDF format online.
Manuals:
Manual National Instruments NI-488.2
Summary
Important Information Warranty The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defects in materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. Nati...
© National Instruments Corporation v NI-488.2 User Manual for Windows Contents About This Manual Using the NI-488.2 Documentation ............................................................................... xi Accessing the NI-488.2 Online Help........................................................
Contents © National Instruments Corporation ix NI-488.2 User Manual for Windows Appendix EWindows 2000/NT: Common Questions Appendix FTechnical Support Resources Glossary Index Figures Figure 1-1. Linear and Star System Configuration .................................................. 1-1 Figure 1-2....
About This Manual NI-488.2 User Manual for Windows xii www.natinst.com Conventions The following conventions appear in this manual: » The » symbol leads you through nested menu items and dialog box options to a final action. The sequence File»Page Setup»Options directs you to pull down the File menu...
© National Instruments Corporation 1-1 NI-488.2 User Manual for Windows 1 Introduction This chapter describes how to set up your GPIB system. Setting up and Configuring Your System Devices are usually connected with a cable assembly consisting of a shielded 24-conductor cable with both a plug and re...
Chapter 1 Introduction NI-488.2 User Manual for Windows 1-2 www.natinst.com Controlling More Than One Interface Figure 1-2 shows an example of a multiboard system configuration. gpib0 is the access interface for the voltmeter, and gpib1 is the access interface for the plotter and printer. The contro...
© National Instruments Corporation 2-1 NI-488.2 User Manual for Windows 2 Measurement & Automation Explorer This chapter describes Measurement & Automation Explorer, an interactive utility you can use with the NI-488.2 software. To start Measurement & Automation Explorer, select Start»Pr...
Chapter 2 Measurement & Automation Explorer NI-488.2 User Manual for Windows 2-2 www.natinst.com Starting Measurement & Automation Explorer To start Measurement & Automation Explorer, select Start»Programs»National Instruments NI-488.2»Explore GPIB. Figure 2-1 shows Measurement & Aut...
Chapter 2 Measurement & Automation Explorer NI-488.2 User Manual for Windows 2-4 www.natinst.com Troubleshoot NI-488.2 Problems To troubleshoot NI-488.2 problems, run the NI-488.2 Troubleshooting Wizard, as follows: 1. Select Start»Programs»National Instruments NI-488.2»Explore GPIB to start Mea...
Chapter 2 Measurement & Automation Explorer © National Instruments Corporation 2-5 NI-488.2 User Manual for Windows 5. Use either the Add GPIB Hardware Wizard or the NI-488.2 Configuration utility to add your interface. Delete a GPIB Interface Before you physically remove a GPIB interface from y...
Chapter 2 Measurement & Automation Explorer NI-488.2 User Manual for Windows 2-6 www.natinst.com Instruments Not Found If the Instruments not Found message appears in the right window pane, Measurement & Automation Explorer did not find any instruments. To solve this problem, make sure that ...
Chapter 2 Measurement & Automation Explorer © National Instruments Corporation 2-7 NI-488.2 User Manual for Windows 3. Expand the Devices and Interfaces directory by clicking on the + next to the folder. 4. Select your GPIB interface. Measurement & Automation Explorer displays the connected ...
Chapter 2 Measurement & Automation Explorer © National Instruments Corporation 2-9 NI-488.2 User Manual for Windows NI Spy records and displays all NI-488.2 calls, as shown in Figure 2-5. Figure 2-5. NI-488.2 Calls Recorded by NI Spy For more information about using NI Spy, select Help»Help Topi...
Chapter 2 Measurement & Automation Explorer © National Instruments Corporation 2-11 NI-488.2 User Manual for Windows The GPIB Configuration dialog box appears. Figure 2-7 shows the GPIB Configuration dialog box for an AT-GPIB/TNT (Plug and Play) interface in Windows NT. Figure 2-7. GPIB Configur...
Chapter 2 Measurement & Automation Explorer NI-488.2 User Manual for Windows 2-12 www.natinst.com instrument information that Measurement & Automation Explorer displays. Change GPIB Device Templates For older NI-488.2 applications, you might need to modify one of the device templates to find...
Chapter 2 Measurement & Automation Explorer NI-488.2 User Manual for Windows 2-14 www.natinst.com 3. Expand the Devices and Interfaces directory by clicking on the + next to the folder. 4. Click on your GPIB interface and select Tools»Settings»NI-488.2 from the Explorer menu. 5. Enable or disabl...
Chapter 2 Measurement & Automation Explorer © National Instruments Corporation 2-15 NI-488.2 User Manual for Windows 3. Right-click on your GPIB interface and select NI-488.2 Help from the drop-down menu that appears. National Instruments GPIB Web Site To access the National Instruments Web site...
Chapter 2 Measurement & Automation Explorer NI-488.2 User Manual for Windows 2-16 www.natinst.com 3. Expand the Devices and Interfaces directory by clicking on the + next to the folder. 4. Right-click on your GPIB-ENET interface and select Advanced IP Settings from the drop-down menu that appear...
© National Instruments Corporation 3-1 NI-488.2 User Manual for Windows 3 Developing Your NI-488.2 Application This chapter describes how to develop an NI-488.2 application using the NI-488.2 API. Simple Instrument Control To establish basic communication with your instrument, use the NI-488.2 Commu...
Chapter 3 Developing Your NI-488.2 Application NI-488.2 User Manual for Windows 3-2 www.natinst.com The NI-488.2 Communicator dialog box appears, as shown in Figure 3-1. Figure 3-1. NI-488.2 Communicator 6. Type a command in the Send String field and do one of the following: • To write a command to ...
Chapter 3 Developing Your NI-488.2 Application © National Instruments Corporation 3-3 NI-488.2 User Manual for Windows For advanced interactive communication with GPIB instruments, use the Interactive Control utility, as follows: 1. Select Start»Programs»National Instruments NI-488.2»Explore GPIB to...
Chapter 3 Developing Your NI-488.2 Application NI-488.2 User Manual for Windows 3-4 www.natinst.com Choosing How to Use the NI-488.2 API The NI-488.2 API has two subsets of calls to meet your application needs. Both of these sets, the traditional calls and the multi-device calls, are compatible acro...
Chapter 3 Developing Your NI-488.2 Application © National Instruments Corporation 3-5 NI-488.2 User Manual for Windows Board-level functions that an NI-488.2 application might use include the following— ibcmd , ibrd , ibwrt , and ibconfig . For a detailed list, refer to the NI-488.2 online help. For...
Chapter 3 Developing Your NI-488.2 Application © National Instruments Corporation 3-7 NI-488.2 User Manual for Windows The language header file defines each of the ibsta status bits. You can test for an ibsta status bit being set using the bitwise and operator ( & in C/C++). For example, the ibs...
Chapter 3 Developing Your NI-488.2 Application NI-488.2 User Manual for Windows 3-8 www.natinst.com Programming Models Applications That Communicate with a Single GPIB Device This section describes items you should include in your application and provides general program steps with an NI-488.2 examp...
Chapter 3 Developing Your NI-488.2 Application © National Instruments Corporation 3-9 NI-488.2 User Manual for Windows GPIB address of your GPIB device, as described in Step 2. Determine the GPIB Address of Your Device in the section Applications That Use Multiple Interfaces or Communicate with Mult...
Chapter 3 Developing Your NI-488.2 Application NI-488.2 User Manual for Windows 3-10 www.natinst.com Applications That Use Multiple Interfaces or Communicate with Multiple GPIB Devices This section describes items you should include in your application and provides general program steps with an NI-4...
Chapter 3 Developing Your NI-488.2 Application NI-488.2 User Manual for Windows 3-12 www.natinst.com Step 4a. Use SendList to send the "*IDN?" query command to multiple GPIB devices. The address is the list of GPIB devices to be queried. The buffer that you pass to SendList is the command me...
Chapter 3 Developing Your NI-488.2 Application © National Instruments Corporation 3-13 NI-488.2 User Manual for Windows Visual Basic (Version 4.0 or Later) With Visual Basic, you can access the traditional NI-488.2 calls as subroutines, using the BASIC keyword CALL followed by the traditional NI-488...
Chapter 3 Developing Your NI-488.2 Application NI-488.2 User Manual for Windows 3-14 www.natinst.com support 16-bit wide characters, use only the 8-bit ASCII versions, named ibbnaA , ibfindA , ibrdfA , and ibwrtfA . The Unicode versions are named ibbnaW , ibfindW , ibrdfW , and ibwrtfW . You can use...
Chapter 3 Developing Your NI-488.2 Application © National Instruments Corporation 3-17 NI-488.2 User Manual for Windows Running Existing NI-488.2 Applications Running Existing Win32 and Win16 NI-488.2 Applications The NI-488.2 software includes the necessary components to allow existing Win32 and Wi...
Chapter 3 Developing Your NI-488.2 Application NI-488.2 User Manual for Windows 3-18 www.natinst.com Running Existing DOS NI-488.2 Applications under Windows 2000/NT To run DOS NI-488.2 applications, you must enable NI-488.2 DOS support under Windows 2000/NT. To enable NI-488.2 DOS support in Window...
© National Instruments Corporation 4-1 NI-488.2 User Manual for Windows 4 Debugging Your Application This chapter describes several ways to debug your application. NI Spy The NI Spy utility monitors NI-488.2 API calls made by NI-488.2 applications. It records NI-488.2 API input and output values fro...
Chapter 4 Debugging Your Application NI-488.2 User Manual for Windows 4-2 www.natinst.com NI Spy records and displays all NI-488.2 calls, as shown in Figure 4-1. Figure 4-1. NI-488.2 Calls Recorded by NI Spy For more information about using NI Spy, select Help»Help Topics in NI Spy or refer to Chapt...
Chapter 4 Debugging Your Application © National Instruments Corporation 4-3 NI-488.2 User Manual for Windows Existing Applications If the application does not have built-in error detection handling, you can use NI Spy to determine which NI-488.2 call is failing. To start NI Spy, refer to the NI Spy ...
Chapter 4 Debugging Your Application NI-488.2 User Manual for Windows 4-4 www.natinst.com Timing Errors If your application fails, but the same calls issued interactively in the Interactive Control utility are successful, your program might be issuing the NI-488.2 calls too quickly for your device t...
Chapter 4 Debugging Your Application © National Instruments Corporation 4-5 NI-488.2 User Manual for Windows Communication Errors The following sections describe communication errors you might encounter in your application. Repeat Addressing Devices adhering to the IEEE 488.2 standard should remain ...
Chapter 5 NI Spy Utility NI-488.2 User Manual for Windows 5-2 www.natinst.com NI Spy records and displays all NI-488.2 calls, as shown in Figure 5-1. Figure 5-1. NI-488.2 Calls Recorded by NI Spy Using the NI Spy Online Help To view the built-in, context-sensitive online help for the NI Spy utility,...
Chapter 5 NI Spy Utility © National Instruments Corporation 5-3 NI-488.2 User Manual for Windows Exiting NI Spy When you exit NI Spy, its current configuration is saved and used to configure NI Spy when you start it again. Unless you save the data captured in NI Spy before you exit, that information...
© National Instruments Corporation 6-1 NI-488.2 User Manual for Windows 6 Interactive Control Utility This chapter introduces you to the Interactive Control utility, which lets you communicate with GPIB devices interactively. Overview With the Interactive Control utility, you communicate with the GP...
Chapter 6 Interactive Control Utility NI-488.2 User Manual for Windows 6-4 www.natinst.com The ibonl command properly closes the device handle and the ud0 prompt is no longer available. 9. To exit Interactive Control, type q . Interactive Control Syntax The following special rules apply to making ca...
Chapter 6 Interactive Control Utility © National Instruments Corporation 6-5 NI-488.2 User Manual for Windows Special symbols—Some instruments require special termination or end-of-string (EOS) characters that indicate to the device that a transmission has ended. The two most common EOS characters a...
Chapter 6 Interactive Control Utility NI-488.2 User Manual for Windows 6-10 www.natinst.com Status Word In the Interactive Control utility, all NI-488.2 calls (except ibfind and ibdev ) return the status word ibsta in two forms: a hex value in square brackets and a list of mnemonics in parentheses. ...
Chapter 6 Interactive Control Utility © National Instruments Corporation 6-11 NI-488.2 User Manual for Windows In this example, the addressing command bytes could not be transmitted to the device. This indicates that either the GPIB device is powered off or the GPIB cable is disconnected. For a deta...
© National Instruments Corporation 7-1 NI-488.2 User Manual for Windows 7 NI-488.2 Programming Techniques This chapter describes techniques for using some NI-488.2 calls in your application. For more information about each function, refer to the NI-488.2 online help. For instructions on accessing th...
Chapter 7 NI-488.2 Programming Techniques © National Instruments Corporation 7-3 NI-488.2 User Manual for Windows If you are using device-level calls, the NI-488.2 software automatically sends the HS488 configuration message to devices. If you enabled the HS488 protocol in the NI-488.2 Configuration...
Chapter 7 NI-488.2 Programming Techniques NI-488.2 User Manual for Windows 7-4 www.natinst.com Waiting for GPIB Conditions You can use the ibwait function to obtain the current ibsta value or to suspend your application until a specified condition occurs on the GPIB. If you use ibwait with a paramet...
Chapter 7 NI-488.2 Programming Techniques © National Instruments Corporation 7-5 NI-488.2 User Manual for Windows GPIB device to request service, you might choose to pass ibnotify a mask with RQS (for device-level) or SRQI (for board-level). The callback function that you register with the ibnotify ...
Chapter 7 NI-488.2 Programming Techniques © National Instruments Corporation 7-9 NI-488.2 User Manual for Windows return 0; } else { return RQS; } } } Writing Multithreaded Win32 NI-488.2 Applications If you are writing a multithreaded NI-488.2 application and you plan to make all of your NI-488.2 c...
Chapter 7 NI-488.2 Programming Techniques © National Instruments Corporation 7-11 NI-488.2 User Manual for Windows Device-Level Calls and Bus Management The device-level traditional NI-488.2 calls are designed to perform all of the GPIB management for your application. However, the NI-488.2 driver c...
Chapter 7 NI-488.2 Programming Techniques NI-488.2 User Manual for Windows 7-12 www.natinst.com the application could monitor the status bits TACS (Talker Active State) and LACS (Listener Active State) to determine when to send data to or receive data from the Controller. The application could also ...
Chapter 7 NI-488.2 Programming Techniques © National Instruments Corporation 7-13 NI-488.2 User Manual for Windows Automatic Serial Polling You can enable automatic serial polling if you want your application to conduct a serial poll automatically when the SRQ line is asserted. The autopolling proce...
Chapter 7 NI-488.2 Programming Techniques NI-488.2 User Manual for Windows 7-14 www.natinst.com Autopolling and Interrupts If autopolling and interrupts are both enabled, the NI-488.2 software can perform autopolling after any device-level NI-488.2 call provided that no GPIB I/O is currently in prog...
Chapter 7 NI-488.2 Programming Techniques NI-488.2 User Manual for Windows 7-16 www.natinst.com Example 1: Using FindRQS This example shows you how to use FindRQS to find the first device that is requesting service: void GetASerialPollResponse ( char *DevicePad, char *DeviceResponse ) { char SerialP...
Chapter 7 NI-488.2 Programming Techniques © National Instruments Corporation 7-17 NI-488.2 User Manual for Windows return; } Parallel Polling Although parallel polling is not widely used, it is a useful method for obtaining the status of more than one device at the same time. The advantage of parall...
© National Instruments Corporation A-1 NI-488.2 User Manual for Windows A GPIB Basics The ANSI/IEEE Standard 488.1-1987, also known as General Purpose Interface Bus (GPIB), describes a standard interface for communication between instruments and controllers from various vendors. It contains informat...
Appendix A GPIB Basics NI-488.2 User Manual for Windows A-2 www.natinst.com GPIB Addressing All GPIB devices and interfaces must be assigned a unique GPIB address. A GPIB address is made up of two parts: a primary address and an optional secondary address. The primary address is a number in the rang...
Appendix A GPIB Basics © National Instruments Corporation A-3 NI-488.2 User Manual for Windows Handshake Lines Three hardware handshake lines asynchronously control the transfer of message bytes between devices. This process is a three-wire interlocked handshake, and it guarantees that devices send ...
© National Instruments Corporation B-1 NI-488.2 User Manual for Windows B Status Word Conditions This appendix gives a detailed description of the conditions reported in the status word, ibsta . For information about how to use ibsta in your application program, refer to the NI-488.2 online help. Fo...
Appendix C Error Codes and Solutions NI-488.2 User Manual for Windows C-2 www.natinst.com EDVR (0) EDVR is returned when the interface or device name passed to ibfind , or the interface index passed to ibdev , cannot be accessed. The global variable ibcntl contains an error code. This error occurs w...
© National Instruments Corporation D-1 NI-488.2 User Manual for Windows D Windows 98/95: Troubleshooting and Common Questions This appendix describes how to troubleshoot problems and answers some common questions about the NI-488.2 software for Windows 98/95. Troubleshooting EDVR Error Conditions In...
Appendix D Windows 98/95: Troubleshooting and Common Questions © National Instruments Corporation D-3 NI-488.2 User Manual for Windows Troubleshooting Device Manager Problems If you are having trouble with your GPIB interface, use the Windows Device Manager to troubleshoot your problems. To do so, c...
Appendix D Windows 98/95: Troubleshooting and Common Questions NI-488.2 User Manual for Windows D-4 www.natinst.com Enabling Interrupts In Windows 98/95, you can use your GPIB interface without interrupts, but the NI-488.2 software performance is significantly slower without interrupts. For example,...
Appendix D Windows 98/95: Troubleshooting and Common Questions © National Instruments Corporation D-5 NI-488.2 User Manual for Windows 7. Click on the OK button to save your changes. On the Device Manager tab, the disabled device has a red X overlaid on it. The red X indicates that the device is dis...
© National Instruments Corporation F-1 NI-488.2 User Manual for Windows F Technical Support Resources This appendix describes the comprehensive resources available to you in the Technical Support section of the National Instruments Web site and provides technical support telephone numbers for you to...
Appendix F Technical Support Resources NI-488.2 User Manual for Windows F-2 www.natinst.com Software-Related Resources • Instrument Driver Network—A library with hundreds of instrument drivers for control of standalone instruments via GPIB, VXI, or serial interfaces. You also can submit a request fo...
© National Instruments Corporation I-1 NI-488.2 User Manual for Windows Index Numbers/Symbols ! (repeat previous function) function, Interactive Control utility, 6-9 $ filename (execute indirect file) function, Interactive Control utility, 6-10 + (turn ON display) function, Interactive Control utili...
National Instruments Manuals
-
National Instruments SCC-AI01
Manual
-
National Instruments USB-6008/6009
Manual
-
National Instruments 7334
Manual
-
National Instruments NI 9403E
Manual
-
National Instruments DIO 6533
Manual
-
National Instruments NI PCI-5114
Manual
-
National Instruments 1000DC
Manual
-
National Instruments 321518A-01
Manual
-
National Instruments NI 5672
Manual
-
National Instruments USB-9221
Manual
-
National Instruments PCI
Manual
-
National Instruments NI 9229
Manual
-
National Instruments 6211
Manual
-
National Instruments NI 9217
Manual
-
National Instruments NI USB-6009
Manual
-
National Instruments NI sbRIO-960x
Manual
-
National Instruments 6024E
Manual
-
National Instruments 3.x
Manual
-
National Instruments NI 784xR
Manual
-
National Instruments NI-Motion
Manual