NI GPIB-SCSI-A Getting Started

For the sun sparcstation and ni-488.2m
Table of Contents

Advertisement

Quick Links

Getting Started with Your
GPIB-SCSI-A and the NI-488.2M
Software for the Sun SPARCstation
June 1994 Edition
Part Number 320422-01
© Copyright 1991, 1994 National Instruments Corporation.
All Rights Reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for NI GPIB-SCSI-A

  • Page 1 Getting Started with Your ™ GPIB-SCSI-A and the NI-488.2M Software for the Sun SPARCstation June 1994 Edition Part Number 320422-01 © Copyright 1991, 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, Germany 089/741 31 30, Italy 02/48301892, Japan (03) 3788-1921, Netherlands 03480-33466, Norway 32-848400, Spain (91) 640 0085, Sweden 08-730 49 70, Switzerland 056/20 51 51, U.K.
  • Page 3 Limited Warranty The GPIB-SCSI-A is warranted against defects in materials and workmanship for a period of two years from the date of shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace equipment that proves to be defective during the warranty period.
  • Page 4 National Instruments Corporation. Trademarks ™ NI-488.2M is a trademark of National Instruments Corporation. Product and company names listed are trademarks or trade names of their respective companies.
  • 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 involving medical or clinical treatment can create a potential for accidental injury caused by product failure, or by errors on the part of the user or application designer.
  • 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 There is no guarantee that interference will not occur in a particular installation. However, the chances of interference are much less if the equipment is installed and used according to this instruction manual. If the equipment does cause interference to radio or television reception, which can be determined by turning the equipment on and off, one or more of the following suggestions may reduce or eliminate the problem.
  • Page 8: Table Of Contents

    Using SCSI Terminating Resistors ....2-7 Connecting the Hardware ............2-9 Step 1. Shut Down the System ........2-10 Step 2. Connect the Cables ........2-10 Step 3. Switch On Your GPIB-SCSI-A and Power On Your System..........2-10 Chapter 3 Software Installation and Configuration ........3-1...
  • Page 9 Build a New SunOS 4.1.2 UNIX Kernel ..........3-5 Step 3. Configure the Software with ibconf......3-8 Step 4. Verify the Software Installation ........3-9 Using the NI-488.2M Software with Your Application Program ..................3-10 Appendix A Hardware Specifications ..............A-1...
  • Page 10: About This Manual

    National Instruments GPIB-SCSI-A and NI-488.2M multitasking software for use with the Sun SPARCstation running under SunOS 4.1 or higher operating system. This manual is meant to be used with the NI-488.2M Software Reference Manual . This manual assumes that you have a general knowledge of the Sun SPARCstation running SunOS and the General Purpose Interface Bus (GPIB).
  • Page 11: Conventions Used In This Manual

    Angle brackets enclose the name of a key on the keyboard–for example, <Delete>. A hyphen between two or more key names enclosed in angle brackets denotes that you should simultaneously press the named keys. For example, <Control-Alt-Delete>. <Enter> Key names are capitalized. GPIB-SCSI-A for SPARCstation © National Instruments Corp.
  • Page 12: Related Documentation

    Related Documentation The following documents contain information that you may find helpful as you read this manual: • GPIB-SCSI-A User Manual, National Instruments Corporation • ANSI X3.131-1986, Small Computer System Interface (SCSI) • ANSI/IEEE Standard 488.1-1987, IEEE Standard Digital Interface for Programmable Instrumentation •...
  • Page 13: Chapter 1 Introduction

    Chapter 1 Introduction This chapter lists what you need to get started and optional equipment you can order, gives instructions for inspecting your GPIB-SCSI-A, and briefly describes the hardware and the NI-488.2M software. What You Need to Get Started One of the following boxes:...
  • Page 14: Optional Equipment

    GPIB cable may cause interference to radio and television reception in commercial areas. Inspection Before you install the GPIB-SCSI-A, inspect the shipping container and its contents for damage. Retain the packaging material for possible inspection or for reshipment.
  • Page 15: Software Description

    Chapter 1 Introduction The GPIB-SCSI-A has all the software and logic required to implement the physical and electrical characteristics of the ANSI/IEEE Standard 488.2-1987 and the ANSI Standard X3T9.2. It is able to interpret and execute commands that you send to it over the GPIB or SCSI ports and perform all necessary GPIB-to-SCSI protocol conversions.
  • Page 16: Hardware Configuration And Installation

    Chapter 2 Hardware Configuration and Installation This chapter describes how to configure the GPIB-SCSI-A and how to connect the GPIB-SCSI-A to the Sun SPARCstation. Figure 2-1 shows the rear panel of the GPIB-SCSI-A. SCSI 1 2 3 4 5 6 7 8...
  • Page 17: Step 1. Verify The Voltage Requirement

    Chapter 2 Step 1. Verify the Voltage Requirement The GPIB-SCSI-A is shipped from the factory with either a 100 to 120 V or a 220 to 240 V power supply. Verify that the voltage on the power supply matches the voltage that is supplied in your area.
  • Page 18: Configuration Switch Settings For Sw1

    In Figure 2-2 switches 1 through 3 are ON, OFF, ON, respectively, selecting the SCSI ID of 5. Switches 4 through 8 are OFF, indicating that the GPIB primary address of the GPIB-SCSI-A is 0. © National Instruments Corp. GPIB-SCSI-A for SPARCstation...
  • Page 19: Table 2-1. Configuration Parameters For Sw1 Switches

    Indication SCSI ID of 0 SCSI ID of 1 SCSI ID of 2 SCSI ID of 3 SCSI ID of 4 SCSI ID of 5 SCSI ID of 6 SCSI ID of 7 GPIB-SCSI-A for SPARCstation © National Instruments Corp.
  • Page 20 GPIB Primary address 24 OFF OFF GPIB Primary address 25 GPIB Primary address 26 GPIB Primary address 27 OFF OFF GPIB Primary address 28 GPIB Primary address 29 GPIB Primary address 30 GPIB Primary address 0 © National Instruments Corp. GPIB-SCSI-A for SPARCstation...
  • Page 21: Configuration Switch Settings For Sw2

    OPEN Figure 2-3. SW2 Default Mode Switch Settings Switch 8 is OFF, indicating that the GPIB-SCSI-A is be operating in S mode. Switch 7 is ON, indicating that the GPIB-SCSI-A will neither notice nor report SCSI parity errors. Switch 6 is ON, indicating that the GPIB-SCSI-A will buffer data during data transfer commands.
  • Page 22: Using Scsi Terminating Resistors

    If your GPIB-SCSI-A is located at the end of a SCSI bus, you can prevent echoes by leaving the terminating resistor pack installed on one of the ports on the rear panel of the GPIB-SCSI-A.
  • Page 23: Figure 2-4. Location Of Terminating Resistors For Gpib-Scsi-A At End Of Scsi Bus

    Figure 2-4. Location of Terminating Resistors for GPIB-SCSI-A at End of SCSI Bus If your GPIB-SCSI-A is not located at the end of the SCSI bus, remove the terminating resistor pack from the rear panel of the GPIB-SCSI-A. Also ensure that all other devices in the middle of the bus (for example, the SCSI disk drive in Figure 2-5) do not have terminating resistors installed.
  • Page 24: Connecting The Hardware

    SPARCstation for specific instructions and warnings. There are two methods for connecting the GPIB-SCSI-A to the Sun SPARCstation. One method is connecting the GPIB-SCSI-A directly to the SPARCstation system unit by using a cable with the proper connectors at each end.
  • Page 25: Step 1. Shut Down The System

    Complete the following steps to switch on your GPIB-SCSI-A and power on your system: Switch on your GPIB-SCSI-A by using the rocker switch on the rear panel. The POWER LED should come on immediately and the READY LED indicator on the front panel should come on after the...
  • Page 26 Appendix C, Customer Communication, before you contact National Instruments for support. Plug the power cords of the SPARCstation and any other SCSI equipment into a power outlet and power on all devices. © National Instruments Corp. 2-11 GPIB-SCSI-A for SPARCstation...
  • Page 27: Software Installation And Configuration

    The NI-488.2M Distribution Streaming Tape for GPIB-SCSI-A Sun SPARCstation SunOS 4.1.2 Driver and C Interface is in TAR format. Note: The disk and streaming tape are referred to as the NI-488.2M distribution media throughout the remainder of this manual. © National Instruments Corp.
  • Page 28: Step 2. Install The Ni-488.2M Software

    Software Installation and Configuration Chapter 3 Review the files contained on the NI-488.2M distribution media. The files are as follows: NI-488.2M driver for GPIB-SCSI-A gpib.o C language library cib.c Include file for user programs ugpib.h Installation test part A ibtsta...
  • Page 29: Install The Driver

    Target ID number for the NI -488.2M software. You must select the Target ID number that you set using switches 1, 2, and 3 of the GPIB-SCSI-A DIP switch SW1 (refer to Configuring the Hardware in Chapter 2). Set these switches before you start instgpib.
  • Page 30: Install The C Library

    Alternatively, you can add cib.o to an existing library or include cib.o during the link phase of each compile operation. Install the Driver into the System To build a new kernel with the NI-488.2M driver, use the following three configuration files. Filenames for the Sun SPARCstation 630MP series are in parentheses.
  • Page 31: Build A New Sunos 4.1.2 Unix Kernel

    The file ib.h is created automatically by the system in step 6. It will contain the following single line: #define NIB 1 where 1 is the number of GPIB-SCSI-A boxes configured in the UNIX kernel. At the end of the character device table cdevsw in conf.c, type in...
  • Page 32 Chapter 3 Each device in the system has a unique major device number. To determine the major device number of the GPIB-SCSI-A, choose the number after the largest device number currently in your system. The GPIB-SCSI-A and its attached devices use the same major device number.
  • Page 33 Chapter 3 Software Installation and Configuration • If you are using one GPIB-SCSI-A, type in the following line after the line scsibus0 at esp #declare first scsi bus. device ib0 at scsibus0 target X lun 0 #GPIB-SCSI-A device driver Replace X with the Target ID set in the GPIB-SCSI-A hardware configuration.
  • Page 34: Step 3. Configure The Software With Ibconf

    Software Installation and Configuration Chapter 3 b /vmunix • If you are using one GPIB-SCSI-A, the following message about the GPIB-SCSI-A appears on your screen if the software and the hardware are installed correctly. ib0: <N.I. GPIB-SCSI-A> at esp0 target X lun 0...
  • Page 35: Step 4. Verify The Software Installation

    For more information on using ibconf, refer to Chapter 2, Installation and Configuration of NI-488.2M Software in the NI-488.2M Software Reference Manual. The command to access ibconf is as follows: ibconf [ unix_kernel ] where unix_kernel can be any UNIX kernel with the NI-488.2M driver...
  • Page 36: Using The Ni-488.2M Software With Your Application Program

    If the UNIX kernel booted has a name different from /vmunix, enter the full pathname when prompted. If ibtsta completes with no errors and a bus analyzer is available, connect the bus analyzer to the GPIB-SCSI-A Controller, and then run ibtstb by entering the following command. ibtstb If an error occurs in ibtsta or ibtstb, refer to Appendix B, Troubleshooting.
  • Page 37 National Instruments products, except for the functions ibdma and ibsgnl . • The best way to learn the NI-488.2M functions and the device-specific commands of your instruments is to use the interactive control program ibic. By using ibic, you can control instruments from the keyboard one step at a time.
  • Page 38: Hardware Specifications

    Appendix A Hardware Specifications This appendix lists the electrical, environmental, and physical characteristics of the GPIB-SCSI-A and the recommended operating conditions. Table A-1. Electrical Characteristics Characteristic Specification 100 to 120 VAC ± 10%, 50 to 60 Hz or Power Supply Unit 220 to 240 VAC ±...
  • Page 39: Table A-3. Physical Characteristics

    2.934 in. by 7.489 in. by 9.88 in. (74.5 mm by 190.2 mm by 250.9 mm) Case Material All metal enclosure Rack Mounting Single or dual kits available Weight 4 lb (1.81 kg) GPIB-SCSI-A for SPARCstation © National Instruments Corp.
  • Page 40: Appendix B Troubleshooting

    • The GPIB-SCSI-A Controller must be securely connected to the SCSI cable. If the GPIB-SCSI-A is the last device on the SCSI bus, make sure that you have placed the terminating resistor pack on one of the SCSI ports on the rear panel of the GPIB-SCSI-A to terminate the SCSI bus.
  • Page 41 The major device number chosen in the previous step must be the one used for creating the node for gpib0. • The Target ID number used in the configuration file GPIB must be unique, and match the GPIB-SCSI-A hardware switch setting. GPIB-SCSI-A for SPARCstation © National Instruments Corp.
  • Page 42: Customer Communication

    (03) 3788-1923 Netherlands 03480-33466 03480-30673 Norway 32-848400 32-848600 Spain (91) 640 0085 (91) 640 0533 Sweden 08-730 49 70 08-730 43 70 Switzerland 056/20 51 51 056/27 00 25 U.K. 0635 523545 0635 523154 © National Instruments Corp. GPIB-SCSI-A for SPARCstation...
  • Page 43 Technical Support Form Photocopy this form and update it each time you make changes to your software or hardware, and use the completed copy of this form as a reference for your current configuration. Completing this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions more efficiently.
  • Page 44 National Instruments software product Version Configuration The problem is List any error messages The following steps will reproduce the problem...
  • Page 45 GPIB-SCSI-A Hardware and Software Configuration Form Record the settings and revisions of your hardware and software on the line to the right of each item. Update this form each time you revise your software or hardware configuration, and use this form as a reference for your current configuration.
  • Page 46 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 GPIB-SCSI-A and the NI-488.2M ™ Software for the Sun SPARCstation Edition Date:...
  • Page 47 If you find errors in the manual, please record the page numbers and describe the errors. 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...
  • Page 48: Glossary

    International Electrotechnical Commission IEEE Institute of Electrical and Electronic Engineers inches pounds light-emitting diode meters megabytes of memory random-access memory SCSI Small Computer System Interface (bus) Underwriters Laboratories volts volts alternating current volts direct current © National Instruments Corp. GPIB-SCSI-A for SPARCstation...

Table of Contents