National Instruments GPIB-232CV-A User Manual

Ieee 488 rs-232 converter
Table of Contents

Advertisement

Quick Links

GPIB
GPIB-232CV-A
User Manual
IEEE 488
RS-232 Converter
GPIB-232CV-A User Manual
November 1999 Edition
Part Number 370905A-01

Advertisement

Table of Contents
loading

Summary of Contents for National Instruments GPIB-232CV-A

  • Page 1 GPIB GPIB-232CV-A User Manual IEEE 488 RS-232 Converter GPIB-232CV-A User Manual November 1999 Edition Part Number 370905A-01...
  • Page 2 Switzerland 056 200 51 51, Taiwan 02 2377 1200, United Kingdom 01635 523545 For further support information, see the Technical Support Resources appendix. To comment on the documentation, send e-mail to techpubs@ni.com © Copyright 1992, 1999 National Instruments Corporation. All rights reserved.
  • Page 3 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.
  • Page 4 Classification requirements are the same for the Federal Communications Commission (FCC) and the Canadian Department of Communications (DOC). Changes or modifications not expressly approved by National Instruments could void the user’s authority to operate the equipment under the FCC Rules.
  • Page 5 interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: • Reorient or relocate the receiving antenna. •...
  • Page 6: Table Of Contents

    Step 1. Shut Down Your System..............2-6 Step 2. Verify That You Have a Null-Modem Serial Cable......2-7 Step 3. Connect the Cables................2-7 Step 4. Power on Your System and Switch on Your GPIB-232CV-A ...2-8 Chapter 3 Operation of the GPIB-232CV-A Choosing Between D Mode and C Mode Configuration..........3-1 When to Use D Mode ..................3-1...
  • Page 7 Conditions That Cause SRQ to be Asserted ........3-5 Maximizing Performance with SRQ ..........3-5 GPIB-232CV-A Serial Poll Responses............3-6 GPIB-232CV-A Operation in Listen-Only Mode........... 3-6 C Mode Overview ......................3-7 Data Transfers in C Mode ................3-7 Modes of Operation Within C Mode .............. 3-8 Timeout Termination Mode..............
  • Page 8 Table 2-6. National Instruments Null-Modem Serial Cables .........2-7 Table B-1. RS-232 Serial Port Signal Configuration ..........B-2 Table B-2. Cable Wiring Scheme for GPIB-232CV-A DTE to Serial Device DCE ................B-3 Table B-3. Cable Wiring Scheme for GPIB-232CV-A DTE to Serial Device DTE.................B-6 ©...
  • Page 9: About This Manual

    About This Manual The GPIB-232CV-A User Manual describes the features, functions, and operation of the GPIB-232CV-A. This manual assumes that you have a general knowledge of RS-232 serial communications and the General Purpose Interface Bus (GPIB). Conventions The following conventions appear in this manual: This icon denotes a caution, which advises you of precautions to take to avoid injury, data loss, or a system crash.
  • Page 10: Related Documentation

    ANSI/EIA-232-C, Interface Between Data Terminal Equipment and Data Circuit-Terminating Equipment Employing Serial Binary Data Interchange • ANSI/IEEE Standard 488.1-1987, IEEE Standard Digital Interface for Programmable Instrumentation • ANSI/IEEE Standard 488.2-1992, IEEE Standard Codes, Formats, Protocols, and Common Commands GPIB-232CV-A User Manual www.ni.com...
  • Page 11: Introduction

    256 KB RAM buffer to isolate the slower device from the faster port. You can use the GPIB-232CV-A to interface either a GPIB Controller or a GPIB device to a computer or instrument with a RS-232 port.
  • Page 12: What You Need To Get Started

    GPIB cable. If you operate this equipment with a non-shielded cable, it may interfere with radio and television reception. Optional Equipment You can order a 9-pin, 2 m RS-232 shielded cable (GPIB-232CV-A to IBM PC) from National Instruments. GPIB-232CV-A User Manual...
  • Page 13: Inspection

    The following sections describe the panels of the GPIB-232CV-A. AC Front Panel The power switch, fuse holder, and power cord receptacle are located on the GPIB-232CV-A front panel, on the AC version only. Figure 1-1 shows the front panel of the AC version. FUSE Figure 1-1.
  • Page 14: Top Panel

    Figure 1-2 shows the top panel. GPIB-232CV-A RS-232 IEEE 488 Converter Figure 1-2. GPIB-232CV-A Top Panel The LEDs show the current status of the GPIB-232CV-A. Table 1-1 describes each LED. Table 1-1. LED Descriptions Indication POWER Indicates that power has been applied to the unit and the ON/OFF switch is in the ON position.
  • Page 15: Rear Panel

    Rear Panel The configuration switches are located on the rear panel of the GPIB-232CV-A. The power switch of the DC version is also located on the rear panel. Figure 1-3 shows the rear panel of the GPIB-232CV-A.
  • Page 16: Side Panels

    Figure 1-4 shows the location of the RS-232 and GPIB connectors and the DC power jack. DC Power Jack (DC version only) GPIB-232CV-A RS-232 IEEE 488 Controller RS-232 Connector GPIB Connector Figure 1-4. Location of the Connectors and the DC Power Jack GPIB-232CV-A User Manual www.ni.com...
  • Page 17: Figure 1-5. Rs-232 Connector And Signal Designations

    Chapter 1 Introduction RS-232 Connector The RS-232 port on the GPIB-232CV-A is configured as a DTE (Data Terminal Equipment) and uses a standard 9-pin shielded D-Subminiature male connector with screwlock assemblies. The RS-232 connector accepts standard 9-pin D-Subminiature female connectors. Figure 1-5 shows a diagram of the serial connector and the signals supported.
  • Page 18: Gpib Connector

    GND (Twisted Pair with NRFD*) NDAC* GND (Twisted Pair with NDAC*) IFC* GND (Twisted Pair with IFC*) SRQ* GND (Twisted Pair with SRQ*) ATN* GND (Twisted Pair with ATN*) SHIELD SIGNAL GROUND Figure 1-6. GPIB Connector and Signal Designations GPIB-232CV-A User Manual www.ni.com...
  • Page 19: Configure And Install Your Hardware

    This chapter describes how to configure and install your GPIB-232CV-A. Configure Your Hardware Before you configure your GPIB-232CV-A, verify that the voltage marked on the GPIB-232CV-A or on the power supply matches the voltage that is supplied in your area. Caution Do not operate your GPIB-232CV-A at any voltage other than the one marked on your GPIB-232CV-A.
  • Page 20: Configure The Gpib-232Cv-A Parameters

    Chapter 2 Configure and Install Your Hardware If you are already using the GPIB-232CV-A and decide to change its operating characteristics, you must first shut down your system and then continue with the following steps. Configure the GPIB-232CV-A Parameters You can use the DIP switches on the rear panel (see Figure 1-1,...
  • Page 21: Table 2-1. Configuration Parameters For Sw1 Switches 1 Through 5

    GPIB Primary Address 20 GPIB Primary Address 21 GPIB Primary Address 22 GPIB Primary Address 23 GPIB Primary Address 24 GPIB Primary Address 25 GPIB Primary Address 26 GPIB Primary Address 27 GPIB Primary Address 28 © National Instruments Corporation GPIB-232CV-A User Manual...
  • Page 22: Table 2-2. Configuration Parameters For Sw1 Switches 6 And 7

    SRQ Disabled and LF Termination Large Serial Buffer SRQ Enabled and No Swapping Large Serial Buffer Table 2-3. Configuration Parameters for SW1 Switch 8 Switch 8 Position Indication GPIB-232CV-A Operates in D Mode GPIB-232CV-A Operates in C Mode GPIB-232CV-A User Manual www.ni.com...
  • Page 23: Configure The Serial Port Parameters

    OFF, which indicates that parity is disabled. Switch 6 is OFF, which indicates 1 stop bit per character. Switch 7 is OFF, indicating that the GPIB-232CV-A is using 7 bits/character for its serial data transfers. Switch 8 is OFF, indicating that XON/XOFF software handshaking is disabled.
  • Page 24: Install Your Hardware

    XON/XOFF protocol disabled XON/XOFF protocol enabled Install Your Hardware After configuring the switch settings on your GPIB-232CV-A, complete the following steps to install the GPIB-232CV-A. Step 1. Shut Down Your System Before you connect the cables, complete the following steps: Shut down your system.
  • Page 25: Step 2. Verify That You Have A Null-Modem Serial Cable

    AC outlet of the correct voltage. If you have a DC version, connect the DC power plug of the DC power supply to the power jack on the serial end of the GPIB-232CV-A, then plug the supply into an AC outlet of the correct voltage.
  • Page 26: Step 4. Power On Your System And Switch On Your Gpib-232Cv-A

    If you have an AC version, use the front panel rocker switch to power on your GPIB-232CV-A. If you have a DC version, use the power switch on the rear panel to power on your GPIB-232CV-A.
  • Page 27: Operation Of The Gpib-232Cv-A

    (C mode). When to Use D Mode The GPIB-232CV-A should be set to operate in D mode if you want to connect a serial device to a GPIB system that has a GPIB Controller responsible for addressing the GPIB-232CV-A to talk or listen. An...
  • Page 28: When To Use C Mode

    Figure 3-1. Example of D Mode System Setup When to Use C Mode The GPIB-232CV-A should be set to operate in C mode when transferring data between a GPIB device that has no Controller capabilities and a serial device. An example of a system requiring C mode includes a GPIB device, such as a digital multimeter, connected to an IBM PC serial port through a GPIB-232CV-A as shown in Figure 3-2.
  • Page 29: D Mode Overview

    Serial Device Figure 3-3. D Mode System Layout In D mode, the GPIB-232CV-A can act only as a GPIB Talker or Listener. Do not pass control to the GPIB-232CV-A when using D mode. If you do, the GPIB circuitry in the GPIB-232CV-A accepts control and immediately asserts the ATN* signal, a system error condition that you should avoid.
  • Page 30: Choosing A Serial Port Buffer Size

    Operation of the GPIB-232CV-A Choosing a Serial Port Buffer Size All data that is sent to the GPIB-232CV-A is buffered and then passed along to the destination port. Thus, any serial data received is buffered and then passed along to the GPIB port whenever the GPIB-232CV-A is addressed to talk.
  • Page 31: Conditions That Cause Srq To Be Asserted

    SRQ* signal is asserted. This alerts the GPIB Controller that the GPIB-232CV-A has data to send to a GPIB Listener. The Controller can then address the GPIB-232CV-A to talk so that the data can be read out of the GPIB-232CV-A serial buffer. When the serial buffer is empty, the Controller can unaddress the GPIB-232CV-A to talk and address other devices to transfer data on the bus.
  • Page 32: Gpib-232Cv-A Serial Poll Responses

    • If the GPIB input buffer is not empty, bit 0 is set to 0. In all cases, bit 6 is set to 1 if the GPIB-232CV-A is requesting service; otherwise it is set to 0. GPIB-232CV-A Operation in Listen-Only Mode In listen-only mode, no addressing is required to make the GPIB-232CV-A a GPIB Listener and it cannot be unaddressed to listen.
  • Page 33: C Mode Overview

    Chapter 3 Operation of the GPIB-232CV-A C Mode Overview In C mode, the GPIB-232CV-A and a serial device together act as the GPIB System Controller. Figure 3-5 shows the C mode system layout. GPIB Controller GPIB Serial Device Device FUSE GPIB-232CV-A Figure 3-5.
  • Page 34: Modes Of Operation Within C Mode

    The four modes of operation define the point at which the GPIB device is unaddressed to listen and addressed to talk so that data can be sent from the device to the GPIB-232CV-A. You can select these modes using SW1 switches 6 and 7.
  • Page 35: Cr> Or Termination Mode

    GPIB-232CV-A assumes that since no more serial data is being sent, the device might have data that it needs to send back to the GPIB-232CV-A. It then readdresses the device to talk and passes any characters read from the GPIB port along to the serial port.
  • Page 36: No-Swap Mode

    PRINT quotation mark, BASIC automatically sends a <CR> after the last character in the ASCII string is sent. If the GPIB-232CV-A is set up for <CR> termination, the GPIB-232CV-A then readdresses the plotter to talk so that its status can be output.
  • Page 37: Data Buffering And Handshaking Schemes

    The hardware handshake function is always active during RS-232 transfers and uses the Request to Send (RTS) and Clear to Send (CTS) signal lines. When the GPIB-232CV-A is ready to accept serial data, it asserts the RTS line. This signal remains asserted until the data buffer of the GPIB-232CV-A is almost full.
  • Page 38: Xon/Xoff Software Handshaking

    XON character. If you are transmitting binary data, do not configure the GPIB-232CV-A to use XON/XOFF software handshaking. Because the binary data could contain any binary sequence, including decimal 19 (<Ctrl-S>) or decimal 17 (<Ctrl-Q>), the GPIB-232CV-A would not be able to...
  • Page 39: Appendix A Specifications

    Specifications This appendix lists the electrical, environmental, and physical characteristics of the GPIB-232CV-A . Electrical Characteristics AC Version Power supply unit 100–120 VAC ±10% ...... 50–60 Hz 220–240 VAC ±10% ...... 50–60 Hz Current requirement 100–120 VAC ......... 55 mA 220–240 VAC .........
  • Page 40 Case material ..........All metal enclosure Weight ............340 g (12 oz) DC Version Case size ..........118.1 by 76.2 by 28.2 mm (4.65 by 3.0 by 1.11 in.) Case material ..........All metal enclosure Weight ............198 g (7 oz) GPIB-232CV-A User Manual www.ni.com...
  • Page 41: Interfacing To A Serial Device

    Interfacing to a Serial Device This appendix describes the RS-232 serial port on the GPIB-232CV-A and explains how to interface a DCE or DTE serial device to the RS-232 serial port. The GPIB-232CV-A transfers serial data using the electrical signals, mechanical connections, data format, and control protocols defined in the RS-232C standard.
  • Page 42: Table B-1. Rs-232 Serial Port Signal Configuration

    Interfacing Serial Devices to the RS-232 Serial Port To interface other serial devices to the RS-232 serial port on the GPIB-232CV-A, first refer to the manual that came with your serial device to determine if the device is configured as a DTE or DCE. Also, determine from the manual how the control lines are used and whether they must be driven for the serial port to operate.
  • Page 43: Table B-2. Cable Wiring Scheme For Gpib-232Cv-A Dte To Serial Device Dce

    A correctly configured DTE-to-DCE interface is wired straight across: GPIB-232CV-A TXD to DCE TXD, GPIB-232CV-A RXD to DCE RXD, and so on as shown in Table B-2. Table B-2. Cable Wiring Scheme for GPIB-232CV-A DTE to Serial Device DCE Standard Standard...
  • Page 44: Figure B-2. Cable Configuration For 9-Pin Dte To 9-Pin Dce With Handshaking

    Figure B-3. Cable Configuration for 9-pin DTE to 25-pin DCE with Handshaking Interfacing the GPIB-232CV-A to a DCE without Handshaking If your serial device does not require or use the hardware handshaking protocol used by the GPIB-232CV-A, you have two options: • Use a minimum configuration cable which does not support hardware handshaking and use XON/XOFF software handshaking (if necessary).
  • Page 45: Figure B-4. Minimum Configuration For 9-Pin Dte To 9-Pin Dce

    Appendix B Interfacing to a Serial Device • Wire a custom cable that properly interfaces the GPIB-232CV-A hardware handshaking protocol to the handshaking protocol of your serial device. Minimum Configuration Cable The minimum configuration cable assumes that the DCE does not require external hardware handshaking.
  • Page 46: Table B-3. Cable Wiring Scheme For Gpib-232Cv-A Dte To Serial Device Dte

    For serial devices set up as DTEs, you must wire a DTE-to-DTE interface cable, commonly known as a null modem cable. The cable allows the GPIB-232CV-A to act as though it is communicating with a DCE, but it swaps the appropriate pins to achieve a DTE pinout. This wiring configuration is shown in Table B-3.
  • Page 47: Figure B-6. Cable Configuration For 9-Pin Dte To 9-Pin Dte With Handshaking

    Interfacing the GPIB-232CV-A to a DTE without Handshaking If your serial device does not require or use the same hardware handshaking protocol used by the GPIB-232CV-A, you have two options: • Use a minimum configuration null modem cable which does not support the hardware handshake lines and use XON/XOFF software handshaking (if necessary).
  • Page 48: Figure B-8. Minimum Configuration For 9-Pin Dte To 9-Pin Dte

    Appendix B Interfacing to a Serial Device • Wire a custom cable that properly interfaces the GPIB-232CV-A hardware handshaking protocol to the handshaking protocol of your serial device. Minimum Configuration Cable The minimum cable configuration assumes that the serial device does not require external hardware handshaking.
  • Page 49 ANSI/EIA-232-C standard is a good reference, provided your device conforms to the RS-232 protocol. Caution Although handshaking might not be required, it is best to use some form of handshaking to prevent loss of data. © National Instruments Corporation GPIB-232CV-A User Manual...
  • Page 50: Appendix C Application Examples

    625 kbytes/s. Therefore, the transfer rate is limited only by the rate at which the GPIB Talker can write data. This example shows you how to connect and use your GPIB-232CV-A as a high-speed print spooler which returns control to you quickly, so that you do not have to wait for the PC to finish printing or plotting a file.
  • Page 51: Figure C-1. Example Of Print Spooler Setup

    Connect the GPIB cable from the PC to the GPIB-232CV-A, and connect the serial cable from the GPIB-232CV-A to the printer or plotter. The system should resemble the diagram in Figure C-1.
  • Page 52 After the program is compiled and linked, you can run it just like the DOS print routine. Then, as long as you are not sending an amount of data greater than the buffer size of the GPIB-232CV-A, the data transfer should complete in a few seconds.
  • Page 53 Power on the plotter, then power on the GPIB-232CV-A. When the GPIB-232CV-A is powered on, it addresses the GPIB plotter. Any data sent to the serial port by AUTOCAD is received by the GPIB-232CV-A and stored in its internal buffer. The GPIB-232CV-A transfers the data to the plotter over the GPIB connection as fast as the plotter can receive it.
  • Page 54: Technical Support Resources

    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 use if you have trouble connecting to our Web site or if you do not have internet access.
  • Page 55: Germany 089 741 31 30, Greece 30 1 42 96 427, Hong Kong 2645 3186, India

    If you have trouble connecting to our Web site, please contact your local National Instruments office or the source from which you purchased your National Instruments product(s) to obtain support. For telephone support in the United States, dial 512 795 8248. For...
  • Page 56: Glossary

    American Standards Code for Information Interchange Attention Celsius Controller-In-Charge carriage return Canadian Standards Association Clear to Send Data Valid direct current Data Circuit-terminating Equipment digital input/output dual inline package direct memory access Data Terminal Equipment Data Terminal Ready © National Instruments Corporation GPIB-232CV-A User Manual...
  • Page 57 Institute of Electrical and Electronic Engineers Interface Clear inches kilobytes of memory light-emitting diode linefeed large scale integration meters ounces personal computer random-access memory Remote Enable read-only memory Request to Send Receive Data seconds Service Request GPIB-232CV-A User Manual www.ni.com...
  • Page 58 Glossary Transmit Data UART Universal Asynchronous Receiver Transmitter Underwriters Laboratories volts volts alternating current volts direct current © National Instruments Corporation GPIB-232CV-A User Manual...
  • Page 59: Index

    HP7475 GPIB plotter to PC Listen-only mode setting (figure), 3-6 serial port, C-3 to C-4 parameters for SW1 switch 8 using GPIB-232CV-A as high-speed print (table), 2-4 spooler, C-1 to C-3 parameters for SW1 switches ATN* signal, assertion in D mode, 3-3...
  • Page 60 Go To Local (GTL) command, 3-3 related documentation, xii GPIB connector DTE (Data Terminal Equipment) overview, 1-8 interfacing with handshaking, B-6 to B-7 signals supported (figure), 1-8 cable configuration for 9-pin DTE to 9-pin DTE (figure), B-7 GPIB-232CV-A User Manual www.ni.com...
  • Page 61 GTL (Go To Local) command, 3-3 manual. See documentation. handshaking DCE (Data Communications Equipment) interfacing with handshaking, B-3 to B-4 National Instruments Web support, D-1 to D-2 interfacing without handshaking, no-swap mode, C mode B-4 to B-6 configuration, 3-10 to 3-11 DTE (Data Terminal Equipment)
  • Page 62 (example), C-3 to C-4 POWER LED (table), 1-4 print spooler, high speed, using SDC (Selected Device Clear) command, 3-3 GPIB-232CV-A as (example), C-1 to C-3 serial cable, null-modem, 2-7 problem-solving and diagnostic resources, serial poll response of GPIB-232CV-A, 3-6 online, D-1 serial port.
  • Page 63 Index timeout termination mode, C mode configuration, 3-8 to 3-9 Web support from National Instruments, top panel, 1-4 to 1-5 D-1 to D-2 illustration, 1-4 online problem-solving and diagnostic LED descriptions (table), 1-4 to 1-5 resources, D-1 Trigger (GET) command, 3-3...

Table of Contents