National Instruments AT-GPIB Getting Started

National Instruments AT-GPIB Getting Started

Ni-488m software for at&t unix system v
Hide thumbs Also See for AT-GPIB:
Table of Contents

Advertisement

Quick Links

Getting Started with Your AT-GPIB
and the NI-488M
Software for
AT&T UNIX System V
August 1994 Edition
Part Number 320463-01
© Copyright 1992, 1994 National Instruments Corporation.
All Rights Reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AT-GPIB and is the answer not in the manual?

Questions and answers

Summary of Contents for National Instruments AT-GPIB

  • Page 1 Getting Started with Your AT-GPIB ™ and the NI-488M Software for AT&T UNIX System V August 1994 Edition Part Number 320463-01 © Copyright 1992, 1994 National Instruments Corporation. All Rights Reserved.
  • Page 2 National Instruments Corporate Headquarters 6504 Bridge Point Parkway Austin, TX 78730-5039 (512) 794-0100 Technical support fax: (800) 328-2203 (512) 794-5678 Branch Offices: Australia (03) 879 9422, Austria (0662) 435986, Belgium 02/757.00.20, Canada (Ontario) (519) 622-9310, Canada (Québec) (514) 694-8521, Denmark 45 76 26 00, Finland (90) 527 2321, France (1) 48 14 24 24,...
  • Page 3 The reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it.
  • Page 4 Any action against National Instruments must be brought within one year after the cause of action accrues. National Instruments shall not be liable for any delay in performance due to causes beyond its reasonable control. The warranty...
  • Page 5 Warning Regarding Medical and Clinical Use of National Instruments Products National Instruments products are not designed with components and testing intended to ensure a level of reliability suitable for use in treatment and diagnosis of humans. Applications of National Instruments products...
  • Page 6 FCC/DOC Radio Frequency Interference Compliance This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the instructions in this manual, may cause interference to radio and television reception. This equipment has been tested and found to comply with the following two regulatory agencies: Federal Communications Commission This device complies with Part 15 of the Federal Communications...
  • Page 7 Interference Problems. This booklet is available from the U.S. Government Printing Office, Washington, DC 20402, Stock Number 004-000-00345-4. Bescheinigung des Herstellers/Importeurs Hiermit wird bescheinigt, daß die AT-GPIB in Übereinstimmung mit den Bestimmungen der Vfg. 1046/1984 funk-entstört ist. Der Detusche Bundespost wurde das Inverkehrbringen dieses Gerätes angezeigt und die Berechtigung zur Überprüfung der Serie auf...
  • Page 8 NI-488M Software Reference Manual. Appendix B, Hardware Specifications, contains a description of the physical and electrical characteristics of the AT-GPIB interface board and the conditions under which it should be used. Appendix C, Changing Hardware Configuration Settings, contains instructions for changing the configuration settings of your AT-GPIB interface board.
  • Page 9 Preface Appendix D, Customer Communication, contains forms you can use to request help from National Instruments or to comment on our products and manuals. Conventions Used in This Manual The following conventions are used throughout this manual. italic Italic text denotes emphasis, a cross reference, or an introduction to a key concept.
  • Page 10 General Purpose Interface (IEEE-488) bus IEEE Institute of Electrical and Electronic Engineers input/output end or identify volts direct current Note: References in this manual to IEEE-488 are referring to the ANSI/IEEE Standard 488.1-1987, which defines the GPIB. © National Instruments Corp. AT-GPIB/NI-488M/AT&T UNIX...
  • Page 11 Programmable Instrumentation Customer Communication National Instruments wants to receive your comments on our products and manuals. We are interested in the applications you develop with our products, and we want to help if you have problems with them. To make it easy for you to contact us, this manual contains comment and configuration forms for you to complete.
  • Page 12: Table Of Contents

    Contents Chapter 1 Introduction ..................1-1 What Your Kit Should Contain ..........1-1 Optional Equipment..............1-2 Software Description ..............1-2 Unpacking Your AT-GPIB............1-2 Chapter 2 Hardware Installation ..............2-1 Chapter 3 Software Installation and Configuration ........3-1 Step 1. Preparation ..............3-1 Step 2. Installation ..............3-2 A.
  • Page 13 Appendix D Customer Communication ............D-1 Figures Figure C-1. AT-GPIB Parts Locator Diagram ........C-1 Figure C-2. Base I/O Address Switch Settings........C-4 Figure C-3. Interrupt Jumper Settings ............ C-6 Figure C-4. DMA Channel Jumper Setting ..........C-9 Figure C-5. DMA Jumper Setting for No DMA Channel ...... C-10 Figure C-6.
  • Page 14: Chapter 1 Introduction

    This chapter lists the contents of your NI-488M kit and optional equipment, and briefly describes the NI-488M software. The AT-GPIB is a full-function, high-performance IEEE-488 interface for use on a PC AT compatible computer with 386 or higher processor (herein referred to as the PC AT) that is equipped with 16-bit plug-in slots.
  • Page 15: Optional Equipment

    The NI-488M kit also includes a C language interface and an interactive control program. Unpacking Your AT-GPIB If you have not already unpacked your AT-GPIB interface board, follow these steps to unpack your board. Do not remove the board from its plastic bag at this point.
  • Page 16: Hardware Installation

    Appendix C to change these settings. Otherwise, proceed to the next paragraph. The AT-GPIB can be installed in any unused expansion slot in your computer. After you change the settings (if needed), verify the switches and...
  • Page 17 Hardware Installation Chapter 2 Insert the AT-GPIB in an unused 16-bit slot (you may have to remove a blank expansion slot cover bracket) with the IEEE-488 receptacle sticking out of the opening on the back panel. It may be a tight fit, but do not force the board into place.
  • Page 18: Software Installation And Configuration

    Install the Link Kit now if you have not already done so. • The instructions in this chapter assume that your AT-GPIB board is already installed If you have not installed your GPIB board, install it now. Refer to Chapter 2, Hardware Installation , for instructions on how to install your hardware.
  • Page 19: Step 2. Installation

    Copy the files from the NI-488M distribution diskette to this directory using the tar command shown in Step 3a or 3b according to the size of your distribution diskette. AT-GPIB/NI-488M/AT&T UNIX © National Instruments Corp.
  • Page 20: Install The Utility Files

    Compile and convert the file cib.c to a C library file. This procedure is necessary because the NI-488M Software Reference Manual assumes that a library has already been created for the C language interface. © National Instruments Corp. AT-GPIB/NI-488M/AT&T UNIX...
  • Page 21: Ensure The Software And Hardware Settings Match

    D. Ensure the Software and Hardware Settings Match Compare your AT-GPIB hardware settings with the default software settings. If you configured your hardware with a setting other than the settings shown in Table 3-1, you must also configure the software to match your new setting(s).
  • Page 22: Base I/O Address And Interrupt Vector Number

    If you installed only one AT-GPIB board, change only the first line of information. The last field contains the DMA channel used by the GPIB. The default is channel 5. To disable DMA, change the setting to -1. To select another DMA channel, enter the number of that DMA channel.
  • Page 23: Install The Ni-488M Driver

    If the installation fails, ibinstall displays the error encountered during the installation. If the error indicates a conflict between an AT-GPIB setting and another device setting, you may have to change the setting. Refer to Appendix C, Changing Hardware Configuration Settings, for information on changing the hardware settings.
  • Page 24: Run Ibconf

    However, if you made any changes to the configuration settings, restart the system to run on the new kernel by entering the following commands: cd / shutdown -y -g0 -i6 © National Instruments Corp. AT-GPIB/NI-488M/AT&T UNIX...
  • Page 25: Step 4. Installation Verification

    Software Reference Manual . To use these functions, you must either compile cib.c and include the resulting object file during the link phase of each application compile operation or link the GPIB library libgpib.a at compiling time as shown in the following examples: AT-GPIB/NI-488M/AT&T UNIX © National Instruments Corp.
  • Page 26: Steps For Removing The Ni-488M Software

    Answer y to all the questions. ibremove uses ibrmnod to delete the GPIB device nodes and expects ibrmnod to be present in the current directory. Restart the system by entering the following commands: cd / shutdown -y -g0 -i6 © National Instruments Corp. AT-GPIB/NI-488M/AT&T UNIX...
  • Page 27: Steps For Changing Configuration After A Successful Installation

    Appendix C , Changing Hardware Configuration Settings, for more information. Note: If you change any jumper or switch settings, record the settings on the AT-GPIB Hardware and Software Configuration Form located in Appendix D. Remove the NI-488M driver with the old configuration by entering the following command: ./ibremove...
  • Page 28 Chapter 3 Software Installation and Configuration Run ibconf by entering the following command: ibconf Refer to Step 3. Software Configuration in this chapter for more information. © National Instruments Corp. 3-11 AT-GPIB/NI-488M/AT&T UNIX...
  • Page 29: Appendix A New Ni-488M Functions

    Appendix A New NI-488M Functions This appendix describes three new NI-488M functions included in the NI-488M software. These functions are not described in the NI-488M Software Reference Manual . © National Instruments Corp. AT-GPIB/NI-488M/AT&T UNIX...
  • Page 30 Be sure to return the device descriptor to the pool of available devices by calling ibonl with v=0 when you are finished using the device. If you do not, that device will not be available for the next ibdev call. AT-GPIB/NI-488M/AT&T UNIX © National Instruments Corp.
  • Page 31: Ibdev(3

    (iberr == EDVR) { /* Bad boardindex or no devices * available. else if (iberr == EARG) { /* The call succeeded, but at least one * pad, sad, tmo, eos, or eot is incorrect. © National Instruments Corp. AT-GPIB/NI-488M/AT&T UNIX...
  • Page 32: Iblines(3

    If the bit is clear (0), the control line is unasserted. For iblines to return valid data, a well-behaved IEEE-488 bus must exist. A well-behaved IEEE-488 bus is a bus in which all attached devices are following the IEEE-488 specification. AT-GPIB/NI-488M/AT&T UNIX © National Instruments Corp.
  • Page 33 ((ibsta = iblines (brd0 , &clines)) & ERR) error(); if ( !(clines & 0x10)) { printf("GPIB board cannot monitor REN!"); exit(); if (clines & 0x1000) { printf("REN is asserted."); exit(); printf("REN is not asserted."); © National Instruments Corp. AT-GPIB/NI-488M/AT&T UNIX...
  • Page 34: Ibln(3

    NO_SAD = 0 ALL_SAD = -1 If ud specifies a device, ibln tests for a Listener on the board associated with the given device. Refer also to IBFIND in the NI-488M Software Reference Manual. AT-GPIB/NI-488M/AT&T UNIX © National Instruments Corp.
  • Page 35 New NI-488M Functions IBLN(3) (continued) IBLN(3) Example Test for a GPIB Listener at pad 2 and sad 0x60 . ibln (ud, 2, 0x60, &listen); if (!listen) { /* No Listener found at this address */ © National Instruments Corp. AT-GPIB/NI-488M/AT&T UNIX...
  • Page 36: Appendix B Hardware Specifications

    Appendix B Hardware Specifications This appendix contains a description of the physical and electrical characteristics of the AT-GPIB interface board and the conditions under which it should be used. IEEE 488 Bus Turbo488 Clock 20.0 MHz NAT4882 Interface Controller Clock 20.0 MHz...
  • Page 37 Appendix B EMI Certification FCC Class B Operating Environment Component Temperature 0° to 70° C Relative Humidity 5% to 90%, noncondensing Storage Environment Temperature -55° to 150° C Relative Humidity 5% to 90%, noncondensing AT-GPIB/NI-488M/AT&T UNIX © National Instruments Corp.
  • Page 38: Changing Hardware Configuration Settings

    Changing Hardware Configuration Settings This appendix contains instructions for changing the configuration settings of your AT-GPIB interface board. You need to change the configuration settings only if the default settings conflict with another board in your system. Figure C-1 shows the location of the AT-GPIB configuration jumpers and switches.
  • Page 39: Switch And Jumper Settings

    The base I/O address is determined by the switches at position U25. The switches are set at the factory for the base I/O address 2C0 hex. The AT-GPIB uses the I/O address space 2C0 through 2DF hex with this setting. If you install more than one AT-GPIB interface board in your computer, each board must be configured to use a unique base I/O address.
  • Page 40: Table C-2. Software Default At-Gpib Base I/O Addresses

    (2) corresponds to address line A8, and so on. The five least significant bits of the address (A4 through A0) are used by the AT-GPIB to select the appropriate GPIB adapter register and cannot be changed; therefore, bits A4 through A0 are always 00000 (binary) when determining the base I/O address.
  • Page 41: Figure C-2. Base I/O Address Switch Settings

    Default Setting for gpib0 (Base I/O Address 2C0 hex) ADDRESS Binary b. Switch Set to Match Software Default Setting for gpib1 (Base I/O Address 240 hex) Figure C-2. Base I/O Address Switch Settings AT-GPIB/NI-488M/AT&T UNIX C- 4 © National Instruments Corp.
  • Page 42: Interrupt Selection

    The interrupt lines that the AT-GPIB hardware can use are IRQ3, 4, 5, 6, 7, 9, 10, 11, 12, 14, and 15. If you install more than one AT-GPIB interface board in your computer, each board must be configured to use a unique interrupt request line.
  • Page 43: Figure C-3. Interrupt Jumper Settings

    Jumper Set to Interrupt Level 5 Figure C-3. Interrupt Jumper Settings To change to another interrupt line, remove the jumper from its stored position and place it on the new posts. AT-GPIB/NI-488M/AT&T UNIX C- 6 © National Instruments Corp.
  • Page 44: Dma Channel Selection

    Changing Hardware Configuration Settings DMA Channel Selection The AT-GPIB hardware is set at the factory to use DMA channel 5 (see Figure C-1 for the DMA channel location). The DMA channels that the AT-GPIB can use are channels 5, 6, 7, and no DMA channel. If you install more than one AT-GPIB interface board in your computer, each board must be configured to use a unique DMA channel.
  • Page 45: Table C-5. Dma Channels For The At-Gpib

    Changing Hardware Configuration Settings Appendix C Table C-5. DMA Channels for the AT-GPIB Signal Lines Channel Acknowledge Request DACK5 DRQ5 DACK6 DRQ6 DACK7 DRQ7 You must position two jumpers to select a DMA channel. One jumper selects the DMA Request line, and the other selects the DMA Acknowledge line.
  • Page 46: Figure C-4. Dma Channel Jumper Setting

    (DMA Channel 6) Figure C-4. DMA Channel Jumper Setting If you do not want to use DMA for GPIB transfers (the AT-GPIB alternatively can use programmed I/O GPIB transfers), you can logically disconnect the AT-GPIB from the DMA lines by selecting NONE for the DMA channel of the AT-GPIB when you run ibconf (refer to Chapter 3 for information on running ibconf).
  • Page 47: Figure C-5. Dma Jumper Setting For No Dma Channel

    DMA for GPIB transfers. The jumpers can be stored on the board in the positions shown in Figure C-5. Removing the jumpers disables the ability of the AT-GPIB to assert a DRQ line on the PC AT I/O channel. Make sure that you make a corresponding change to the software DMA channel setting during the software installation discussed in Chapter 3.
  • Page 48: Shield Ground Configuration

    Changing Hardware Configuration Settings Shield Ground Configuration The AT-GPIB is set at the factory with the jumper in place to connect the logic ground of the AT-GPIB to its shield ground. This configuration minimizes the EMI emitted from a PC AT equipped with an AT-GPIB.
  • Page 49: Appendix D Customer Communication

    Filling out a copy of the Technical Support Form before contacting National Instruments helps us help you better and faster. National Instruments provides comprehensive technical assistance around the world.
  • Page 50 National Instruments for technical support helps our applications engineers answer your questions more efficiently. If you are using any National Instruments hardware or software products related to this problem, include the configuration forms from their user manuals. Include additional pages if necessary.
  • Page 51 National Instruments software product Version Configuration The problem is List any error messages The following steps will reproduce the problem...
  • Page 52 Completing this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions more efficiently. National Instruments Products Hardware •...
  • Page 53 Other Products • Pr ogramming Language and Version: • AT&T UNIX System V Version: • Computer Make and Model: • Microprocessor: • Clock Frequency: • Type of Video Board Installed: • Type of other boards installed and their respective hardware settings: Base I/O Interrupt Board Type...
  • Page 54 National Instruments encourages you to comment on the documentation supplied with our products. This information helps us provide quality products to meet your needs. ™ Title: Getting Started with Your AT-GPIB and the NI -488M Software for AT&T UNIX System V Edition Date: August 1994 Part Number:...
  • Page 55 Thank you for your help. Name Title Company Address Phone Mail to: Technical Publications National Instruments Corporation 6504 Bridge Point Parkway, MS 53-02 Austin, TX 78730-5039 Fax to: Technical Publications National Instruments Corporation MS 53-02 (512) 794-5678...

This manual is also suitable for:

181060-01

Table of Contents