National Instruments GPIB-232CT-A Getting Started

National Instruments GPIB-232CT-A Getting Started

Ni-488.2 software for ms-dos/windows
Hide thumbs Also See for GPIB-232CT-A:
Table of Contents

Advertisement

Quick Links

Getting Started with Your
GPIB-232CT-A and the
NI-488.2
Software
for MS-DOS/Windows
March 1995 Edition
Part Number 320555B-01
© Copyright 1992, 1995 National Instruments Corporation.
All Rights Reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

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

  • Page 1 Getting Started with Your GPIB-232CT-A and the ™ NI-488.2 Software for MS-DOS/Windows March 1995 Edition Part Number 320555B-01 © Copyright 1992, 1995 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 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 provided herein does not cover damages, defects, malfunctions, or service failures caused by owner's failure to follow the National Instruments installation, operation, or maintenance instructions;...
  • Page 5 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 6 National Instruments could void the user’s authority to operate the equipment under the FCC Rules. If necessary, consult National Instruments or an experienced radio/television technician for additional suggestions. The following booklet prepared by the FCC may also be helpful: How to Identify and Resolve Radio-TV Interference Problems.
  • Page 7: Table Of Contents

    Conventions Used in This Manual ..........xiv Related Documentation ..............xvi Customer Communication ............xvi Chapter 1 Introduction ..................1-1 GPIB-232CT-A Overview............1-1 What You Need to Get Started........... 1-2 Optional Equipment..............1-3 Inspection ................... 1-3 Hardware Description..............1-3 Software Description ..............1-4...
  • Page 8 Exit..............5-6 Lower Level Device/Board Characteristics ....5-7 Change Characteristics........5-8 Change Board or Device........5-8 Help ..............5-8 Reset Value ............ 5-8 Return to Map ..........5-8 Default Configurations ............... 5-9 Default Values..............5-9 GPIB-232CT-A for MS-DOS/Windows viii © National Instruments Corp.
  • Page 9 Stop Bits (Board Characteristic Only)* ....... 5-15 Data Bits (Board Characteristic Only)* ....... 5-15 Exiting IBCONF................. 5-15 Appendix A Hardware Configuration ............... A-1 Configure the RS-232 Serial Port..........A-1 Appendix B Hardware Specifications ..............B-1 © National Instruments Corp. GPIB-232CT-A for MS-DOS/Windows...
  • Page 10 ............E-1 The RS-232C Standard............... E-1 Description of the RS-232 Port........... E-1 Interfacing Serial Devices to the RS-232 Serial Port ....E-3 Interfacing the GPIB-232CT-A to a DCE with Handshaking..............E-3 Interfacing the GPIB-232CT-A to a DCE without Handshaking..............E-5 Minimum Configuration Cable......
  • Page 11 Cable Configuration for 9-pin DTE to 25-pin DTE with Handshaking ............E-8 Figure E-8. Minimum Configuration for 9-pin DTE to 9-pin DCE ... E-9 Figure E-9. Minimum Configuration for 9-pin DTE to 25-pin DCE ..............E-10 © National Instruments Corp. GPIB-232CT-A for MS-DOS/Windows...
  • Page 12 Direct Entry NI-488 Style Functions....... D-7 Table E-1. RS-232 Serial Port Signal Configuration......E-2 Table E-2. Cable Wiring Scheme for GPIB-232CT-A DTE to Serial Device DCE............E-4 Table E-3. Cable Wiring Scheme for GPIB-232CT-A DTE to Serial Device DTE............E-7 GPIB-232CT-A for MS-DOS/Windows ©...
  • Page 13: About This Manual

    Organization of This Manual This manual is organized as follows: • Chapter 1, Introduction, contains a description of the GPIB-232CT-A, lists what you need to get started and optional equipment you can order, contains instructions for inspecting your GPIB-232CT-A, and gives hardware and software descriptions.
  • Page 14: Conventions Used In This Manual

    • Appendix E, Interfacing to a Serial Device, describes the RS-232 serial port on the GPIB-232CT-A and explains how to interface a DCE or DTE serial device to the RS-232 serial port. • Appendix F, Customer Communication, contains forms you can use to request help from National Instruments or to comment on our products and manuals.
  • Page 15 ANSI/IEEE Standard 488.1-1987 and the ANSI/IEEE Standard 488.2-1987, respectively, which define the GPIB. RS-232 RS-232 refers to the ANSI/EIA-232-C standard. Abbreviations, acronyms, metric prefixes, mnemonics, symbols, and terms are listed in the Glossary. © National Instruments Corp. GPIB-232CT-A for MS-DOS/Windows...
  • Page 16: Related Documentation

    Microsoft Windows User’s Guide, Microsoft Corporation 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 17: Chapter 1 Introduction

    Chapter 1 Introduction This chapter contains a description of the GPIB-232CT-A, lists what you need to get started and optional equipment you can order, contains instructions for inspecting your GPIB-232CT-A, and gives hardware and software descriptions. GPIB-232CT-A Overview The GPIB-232CT-A is a high-performance serial-to-GPIB interface. It provides a computer with an RS-232 port, a means of controlling, talking, and listening on the GPIB.
  • Page 18: What You Need To Get Started

    What You Need to Get Started One of the following boxes: GPIB-232CT-A (100-120 VAC) GPIB-232CT-A (220-240 VAC) GPIB-232CT-A (DC) If you have the GPIB-232CT-A AC version, you need one of the following power cords: U.S.A. standard power cord Switzerland power cord Australian power cord...
  • Page 19: Optional Equipment

    Inspection Before you operate the GPIB-232CT-A, inspect the shipping container and its contents for damage. Keep the packaging material for possible inspection and/or reshipment. If the equipment appears to be damaged, do not attempt to operate it.
  • Page 20: Software Description

    GPIB -232CT-A is also capable of interfacing RS-232 instruments and peripherals to the GPIB. Software Description NI-488.2 software is part of your GPIB-232CT-A kit. It is a comprehensive set of programs and drivers for transforming the PC into a GPIB Controller with complete communications and bus management capability. The NI -488.2 software also includes the Microsoft C, Microsoft BASIC,...
  • Page 21: Install Your Hardware

    100-120 V or 220-240 V, wall-mount or desktop power supply. Verify that the voltage marked on the GPIB-232CT-A or on the power supply matches the voltage that is supplied in your area. Caution: Operating the GPIB-232CT-A at any voltage other than the one specified could damage the unit.
  • Page 22: Step 3. Connect The Cables

    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-232CT-A, then plug the supply into an AC outlet of the correct voltage.
  • Page 23: Install The Ni-488.2 Software For Ms-Dos

    The applications monitor can halt program execution (trap) on return from GPIB software calls, so that you can inspect function arguments, buffers, return values, GPIB global status variables, and other pertinent data. The applications monitor performs automatic error detection. © National Instruments Corp. 3-1 GPIB-232CT-A for MS-DOS/Windows...
  • Page 24: Additional Programs And Files

    BASICA application programs. • DCSAMP.C, DMBSAMP.BAS, DQBSAMP.BAS, DBSAMP.BAS and DIBSAMP are example programs for device calls in C, Professional BASIC, QuickBASIC, BASICA, and IBIC, respectively. BCSAMP.C, BMBSAMP.BAS, BQBSAMP.BAS, BBSAMP.BAS and BIBSAMP are GPIB-232CT-A for MS-DOS/Windows 3-2 © National Instruments Corp.
  • Page 25: Terminology

    If your boot drive is not C:, or you do not want the default destination directory to be created, you must install the NI-488.2 software interactively. Refer to the following section, Interactive Installation, for more information. © National Instruments Corp. 3-3 GPIB-232CT-A for MS-DOS/Windows...
  • Page 26: Interactive Installation

    NI-488.2 software is installed. Next, you are prompted to give your boot drive and the name of a new directory into which the files can be copied. The INSTALL program creates GPIB-232CT-A for MS-DOS/Windows 3-4 © National Instruments Corp.
  • Page 27: Step 2. Configure The Software

    IBCONF. You must run IBCONF if you have made any changes to the GPIB-232CT-A hardware switches or you need to change any of the default software configuration options. If you have not changed the hardware in any way and the default software configuration is acceptable, there is no need to run IBCONF .
  • Page 28: Step 3. Verify The Software Installation

    GPIB devices. If an error occurs, check the following: • Is the GPIB-232CT-A connected to a GPIB device? IBTEST requires that the GPIB-232CT-A not be connected to any GPIB devices. • Is the GPIB-232CT-A box powered on? •...
  • Page 29: Step 4. Developing Your Application Program

    NI -488.2 software. By default, dir is c:\GPIB-CT. IBIC You are now ready to begin developing applications. Refer to Chapter 6, IBIC, of the NI -488.2 Software Reference Manual for MS-DOS to get started. © National Instruments Corp. 3-7 GPIB-232CT-A for MS-DOS/Windows...
  • Page 30: Applications Monitor

    When you decide to write your application program, be sure to refer to the appropriate language reference manuals and the NI-488.2 Software Reference Manual for MS-DOS for the proper syntax of the functions. Use APPMON.EXE and IBIC.EXE to help you develop your application. GPIB-232CT-A for MS-DOS/Windows 3-8 © National Instruments Corp.
  • Page 31: Install The Ni-488.2 Software For Windows

    GPIB.INI is the private profile file which is used by GPIB.DLL to determine the software configuration parameters for each GPIB board and device in the system. You can modify GPIB.INI by using either the WIBCONF.EXE file or a text editor. © National Instruments Corp. 4-1 GPIB-232CT-A for MS-DOS/Windows...
  • Page 32: Ni-488.2 Files For The Development Of Windows Applications

    NI-488.2 routines, and useful constants that you may want to use in your NI-488.2 application for Windows. You must include it at the beginning of any file that makes NI-488 function calls. GPIB-232CT-A for MS-DOS/Windows 4-2 © National Instruments Corp.
  • Page 33: Step 1. Run Install

    If Windows is not in its default directory or you do not want the default destination directory to be created, you must install the NI-488.2 software for Windows interactively. Refer to the following section, Interactive Installation. © National Instruments Corp. 4-3 GPIB-232CT-A for MS-DOS/Windows...
  • Page 34: Interactive Installation

    Windows is stored and the name of a new directory into which the files can be copied. The INSTALL program creates the specified destination directory and copies the NI-488.2 files to the appropriate directories. GPIB-232CT-A for MS-DOS/Windows 4-4 © National Instruments Corp.
  • Page 35: Step 2. Set Up The Windows Applications

    Disconnect any GPIB cables from the GPIB -232CT -A before running the program. If an error occurs, check the following: • Is the GPIB-232CT-A connected to a GPIB device? WIBTEST requires that the GPIB-232CT-A not be connected to any GPIB devices. © National Instruments Corp. 4-5 GPIB-232CT-A for MS-DOS/Windows...
  • Page 36: Using Wibic

    Install the NI-488.2 Software for Windows Chapter 4 • Is the GPIB-232CT-A powered on? • Did you change any of the hardware configurations on the GPIB-232CT -A? If so, check the current software configuration of the software by running WIBCONF. Make sure that the hardware settings match.
  • Page 37: Writing Windows Programs That Use The Gpib

    The remainder of this chapter describes the WINSAMP sample program that illustrates how GPIB calls can be made from a simple Microsoft C Windows application using the National Instruments Microsoft C language interface. It also lists a general set of rules to follow when using the DLL in your own Windows application.
  • Page 38: General Rules For Using Gpib.lib With Windows

    Windows is installed or in the DOS search path when the application is run. Unlike the GPIB.LIB file, GPIB.DLL files are unique for each National Instruments GPIB box or interface board. • Ensure that GPIB.INI is in the directory in which Windows is installed when the application is run so that it can be used to properly initialize the GPIB.DLL file.
  • Page 39: Configure Your Software With Ibconf

    Note: Throughout this chapter and IBCONF, the terms interface board , access board, and board are used to refer the GPIB-232CT-A. Overview of IBCONF IBCONF is a screen-oriented, interactive program that is used to modify the configuration parameters for your GPIB-232CT-A and the GPIB devices connected to it.
  • Page 40: Table 5-1. Ibconf Options

    IBCONF configures the given driver file driver instead of following one of the search rules listed above. Monochrome mode. This option causes IBCONF to run in monochrome mode even though you have a color monitor. GPIB-232CT-A for MS-DOS/Windows 5-2 © National Instruments Corp.
  • Page 41: Upper And Lower Levels Of Ibconf

    GPIB x , where x is 0 for your first board, 1 for your second board, and so on. You can move around the map by using the cursor control keys. If you have a Microsoft compatible mouse, you can also use it to move around the map. © National Instruments Corp. 5-3 GPIB-232CT-A for MS-DOS/Windows...
  • Page 42: Device Maps Of The Boards

    Press <F4> and enter the new name of the device. The device name may contain up to eight characters and uses the same rules as MS-DOS for naming files, except that suffixes ( .xxx) are not allowed. GPIB-232CT-A for MS-DOS/Windows 5-4 © National Instruments Corp.
  • Page 43 GPIB board or device. Move to the GPIB board or device that you want to edit using the cursor control keys and press <F8>. This step puts you in the lower level of IBCONF and lists the characteristics for the particular GPIB © National Instruments Corp. 5-5 GPIB-232CT-A for MS-DOS/Windows...
  • Page 44 Type a y (yes) to save changes, n (no) to lose changes, or c (cancel) and remain in IBCONF. For more information on exiting IBCONF, refer to the Exiting IBCONF section at the end of this chapter. GPIB-232CT-A for MS-DOS/Windows 5-6 © National Instruments Corp.
  • Page 45: Lower Level Device/Board Characteristics

    The settings for boards specify the characteristics used when board functions are used. The following functions are available at the lower level. • Change Characteristics • Change Board or Device © National Instruments Corp. 5-7 GPIB-232CT-A for MS-DOS/Windows...
  • Page 46: Change Characteristics

    Use <F6> to reset a characteristic option to its previous value. Return to Map At the lower level, <F9> or <Escape> returns you to the upper level device map of IBCONF . GPIB-232CT-A for MS-DOS/Windows 5-8 © National Instruments Corp.
  • Page 47: Default Configurations

    Each GPIB interface board is System Controller of its independent bus and has a GPIB primary address of 0. • The END message is sent with the last byte of each data message to a device. No End-of-String (EOS) character is recognized. © National Instruments Corp. 5-9 GPIB-232CT-A for MS-DOS/Windows...
  • Page 48: Device And Board Characteristics

    It is also the length of time that the ibwait function waits for an event before returning if the TIMO bit is set in the event mask. The default option for this characteristic is 10sec. GPIB-232CT-A for MS-DOS/Windows 5-10 © National Instruments Corp.
  • Page 49: Serial Poll Timeouts (Device Characteristic Only)

    The driver does not automatically append an EOS byte to the end of data strings on write operations. You must explicitly include this byte in your data string. The designation of the EOS byte is © National Instruments Corp. 5-11 GPIB-232CT-A for MS-DOS/Windows...
  • Page 50: Set Eoi At End Of Write

    GPIB Service Request (SRQ) line is asserted. Positive poll responses are stored following the polls and can be read with the ibrsp device function. The default option for this characteristic is no. GPIB-232CT-A for MS-DOS/Windows 5-12 © National Instruments Corp.
  • Page 51: Enable Cic Protocol (Board Characteristic Only)

    If you do not want the driver to try to access an interface (because you do not have an interface in the system), select no for this option. When this field is set to no, the driver does not try to access the interface hardware. It © National Instruments Corp. 5-13 GPIB-232CT-A for MS-DOS/Windows...
  • Page 52: Com Port (Board Characteristic Only)

    This field specifies the IRQ level of the serial communications port and should only be used if you have a non-standard serial communications port. The GPIB-232CT-A software assumes that the serial controller hardware is compatible with the National Semiconductor INS8250 universal asynchronous receiver/transmitter (the standard for PC-compatibles).
  • Page 53: Parity (Board Characteristic Only)

    Are GPIB boards not present in the host machine at the specified address? • Are timeouts disabled on a device or board? If any of these situations are found, you are notified and given the option of re-entering or exiting IBCONF. © National Instruments Corp. 5-15 GPIB-232CT-A for MS-DOS/Windows...
  • Page 54: Appendix A Hardware Configuration

    The DIP switch is used to configure the serial port parameters of the GPIB -232CT-A while in S mode. In G mode, the GPIB-232CT-A is used to interface an RS-232 device as a GPIB Talker/Listener.
  • Page 55 1 stop bit/character. Switch 7 is ON, indicating that the GPIB -232CT-A is using 8 bits per character for serial data transfers. Switch 8 is OFF, indicating that the GPIB-232CT-A is operating in S mode. Tables A-1 and A-2 show the possible configurations of the eight switches and what each configuration indicates.
  • Page 56 Table A-2. Configuration Parameters for Switches 4 through 8 Switch Position Indication odd parity even parity parity generation/checking disabled parity generation/checking enabled 1 stop bit/character 2 stop bits/character 7 bits/character 8 bits/character operates in S mode operates in G mode © National Instruments Corp. A-3 GPIB-232CT-A for MS-DOS/Windows...
  • Page 57: Appendix B Hardware Specifications

    Appendix B Hardware Specifications The appendix specifies the electrical, environmental, and physical characteristics of the GPIB-232CT-A and the recommended operating conditions. Table B-1. Electrical Characteristics - AC Version Characteristic Specification 100-120 VAC ± 10%, 50-60 Hz or Power Supply Unit 220-240 VAC ±...
  • Page 58: Table B-3. Environmental Characteristics- Ac Version

    Table B-5. Physical Characteristics - AC Version Characteristic Specification Case Size 4.65 in. by 3.0 in. by 1.74 in. (118.1 mm by 76.2 mm by 44.2 mm) Case Material All metal enclosure Weight 12 oz (340 g) GPIB-232CT-A for MS-DOS/Windows B-2 © National Instruments Corp.
  • Page 59: Table B-6. Physical Characteristics - Dc Version

    Table B-6. Physical Characteristics - DC Version Characteristic Specification Case Size 4.65 in. by 3.0 in. by 1.11 in. (118.1 mm by 76.2 mm by 28.2 mm) Case Material All metal enclosure Weight 7 oz (198 g) © National Instruments Corp. B-3 GPIB-232CT-A for MS-DOS/Windows...
  • Page 60: Appendix C Troubleshooting

    Troubleshooting This appendix suggests some areas to check if you have problems installing or using the GPIB-232CT-A or the NI-488.2 software after going through the procedures described in Chapters 2 through 5. If you still have problems after completing the steps in this appendix, complete the appropriate forms in Appendix F, Customer Communication and then contact National Instruments for technical support.
  • Page 61: Troubleshooting Software Problems

    Troubleshooting Appendix C Troubleshooting Software Problems If the following three conditions apply, the GPIB-232CT-A and the NI-488.2 software are unable to communicate properly. • GPIB calls return with the ERR bit set in ibsta. • The value of iberr is EDVR.
  • Page 62: Dll Direct Entry Ni-488 Functions And Ni-488.2 Routines

    : integer; far; external 'GPIB' index 22; function DLLibsic(ud: integer; var: ibsta: integer; var: iberr: integer; var: ibcntl: longint) : integer; far; external 'GPIB' index 42; © National Instruments Corp. D-1 GPIB-232CT-A for MS-DOS/Windows...
  • Page 63 Global BoardHandle As Integer Global ibsta As Integer Global iberr As Integer Global ibcntl As Long BoardHandle% = DLLibfind("GPIB0", ibsta%, iberr%, ibcntl&) temp% = DLLibsic(BoardHandle%, ibsta%, iberr%, ibcntl&) call DLLSendIFC(0, ibsta%, iberr%, ibcntl&) GPIB-232CT-A for MS-DOS/Windows D-2 © National Instruments Corp.
  • Page 64: Table D-1. Direct Entry Ni-488.2 Style Routines

    _far *ibsta, short _far *iberr, unsigned long _far *ibcntl) DLLFindRQS ( short board, FindRQS short _far *addresslist, (106) short _far *result, short _far *ibsta, short _far *iberr, unsigned long _far *ibcntl) © National Instruments Corp. D-3 GPIB-232CT-A for MS-DOS/Windows...
  • Page 65 _far *ibcntl) DLLReceive ( short board, short address, Receive char _far * data, unsigned long count, (113) short termination, short _far *ibsta, short _far *iberr, unsigned long _far *ibcntl) (continues) GPIB-232CT-A for MS-DOS/Windows D-4 © National Instruments Corp.
  • Page 66 (119) unsigned long _far *ibcntl) DLLSendList (short board, SendList short _far *addresslist, char _far * data, (120) long count, short eotmode, short _far *ibsta, short _far *iberr, unsigned long _far *ibcntl) (continues) © National Instruments Corp. D-5 GPIB-232CT-A for MS-DOS/Windows...
  • Page 67 _far *addresslist, (127) short _far *ibsta, short _far *iberr, unsigned long _far *ibcntl) DLLWaitSRQ ( short board, WaitSRQ short _far *result, short _far *ibsta, (128) short _far *iberr, unsigned long _far *ibcntl) GPIB-232CT-A for MS-DOS/Windows D-6 © National Instruments Corp.
  • Page 68: Table D-2. Direct Entry Ni-488 Style Functions

    (16) short eos, short _far *ibsta, short _far *iberr, unsigned long _far *ibcntl) DLLibdma ( short ud, short v, ibdma short _far *ibsta, short _far *iberr, (18) unsigned long _far *ibcntl) © National Instruments Corp. D-7 GPIB-232CT-A for MS-DOS/Windows...
  • Page 69 DLLibonl ( short ud, short v, ibonl short _far *ibsta, short _far *iberr, (28) unsigned long _far *ibcntl) DLLibpad ( short ud, short v, ibpad short _far *ibsta, short _far *iberr, (29) unsigned long _far *ibcntl) (continues) GPIB-232CT-A for MS-DOS/Windows D-8 © National Instruments Corp.
  • Page 70 DLLibrsv ( short ud, short v, ibrsv short _far *ibsta, short _far *iberr, (40) unsigned long _far *ibcntl) DLLibsad ( short ud, short v, ibsad short _far *ibsta, short _far *iberr, (41) unsigned long _far *ibcntl) © National Instruments Corp. D-9 GPIB-232CT-A for MS-DOS/Windows...
  • Page 71 _far *ibsta, (49) short _far *iberr, unsigned long _far *ibcntl) DLLibwrtf (short ud, char _far * flname, ibwrtf short _far *ibsta, short _far *iberr, (50) unsigned long _far *ibcntl) GPIB-232CT-A for MS-DOS/Windows D-10 © National Instruments Corp.
  • Page 72: Interfacing To A Serial Device

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

    GPIB-232CT-A to the serial Data) device. DTR (Data This signal is asserted by the Terminal GPIB-232CT-A to signal that it has Ready) been powered on and is ready to operate. This signal establishes a reference (Ground) point for all interface voltages.
  • Page 74: Interfacing Serial Devices To The Rs-232 Serial Port

    Note: The GPIB-232CT-A serial port is configured to be a DTE. Figure E-1 shows the location of the RS-232 connector.
  • Page 75: Figure 1-1. Gpib-232Ct-A

    Interfacing to a Serial Device Appendix E Table E-2. Cable Wiring Scheme for GPIB-232CT-A DTE to Serial Device DCE Standard Standard GPIB-232CT-A Signal to DTE to DCE DTE to DCE DCE Serial Device Signal 9-pin 9-pin 9-pin 25-pin to TXD GND to Note : Connections in bold italics must be implemented.
  • Page 76: Interfacing The Gpib-232Ct-A To A Dce Without Handshaking

    XON/XOFF software handshaking (if necessary). To create a minimum configuration cable, connect the signals shown in bold italics in Table E-2. • Wire a custom cable that properly interfaces the GPIB-232CT-A hardware handshaking protocol to the handshaking protocol of your serial device.
  • Page 77: Minimum Configuration Cable

    Serial Device 9-pin DTE 9-pin DCE Figure E-4. Minimum Configuration for 9-pin DTE to 9-pin DCE GPIB-232CT-A 9-pin DTE Serial Device 25-pin DCE Figure E-5. Minimum Configuration for 9-pin DTE to 25-pin DCE GPIB-232CT-A for MS-DOS/Windows E-6 © National Instruments Corp.
  • Page 78: Custom Cables

    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-232CT-A to act as though it is communicating with a DCE, but it swaps the appropriate pins to achieve a DTE configuration. This wiring configuration is shown in Table E-3.
  • Page 79: Figure E-6. Cable Configuration For 9-Pin Dte To 9-Pin Dte With Handshaking

    9-pin DTE Figure E-6. Cable Configuration for 9-pin DTE to 9-pin DTE with Handshaking GPIB-232CT-A 9-pin DTE Serial Device 25-pin DTE Figure E-7. Cable Configuration for 9-pin DTE to 25-pin DTE with Handshaking GPIB-232CT-A for MS-DOS/Windows E-8 © National Instruments Corp.
  • Page 80: Interfacing The Gpib-232Ct-A To A Dte Without Handshaking

    (if necessary). To create a minimum configuration cable, connect the signals shown in bold italics in Table E-3. • Wire a custom cable that properly interfaces the GPIB-232CT-A hardware handshaking protocol to the handshaking protocol of your serial device.
  • Page 81: Custom Cables

    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. GPIB-232CT-A for MS-DOS/Windows E-10 © National Instruments Corp.
  • Page 82: Appendix F 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 83 Name Company Address Fax ( Phone ( Computer brand Model Processor Operating system Speed Display adapter Mouse Other adapters installed Hard disk capacity Brand Instruments used National Instruments hardware product model Revision Configuration National Instruments software product Version Configuration (continues)
  • Page 84 The problem is List any error messages The following steps will reproduce the problem...
  • Page 85 GPIB-232CT-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 86 Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our products. This information helps us provide quality products to meet your needs. Getting Started with Your GPIB-232CT-A and the NI-488.2 ™ Title: Software for MS-DOS/Windows Edition Date:...
  • Page 87 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...
  • Page 88: Glossary

    NI-488.2 software dual inline package dynamic link library Data Terminal Ready ECIC Enable Controller-In-Charge EDVR DOS error Electronic Industries Association electromagnetic interference ENEB Nonexistent GPIB board end or identify © National Instruments Corp. Glossary-1 GPIB-232CT-A for MS-DOS/Windows...
  • Page 89 Refers to the NI-488.2 distribution disk source disk Refers to the NI-488.2 distribution disk Service Request TIMO Time limit exceeded terminate-stay resident Transmit Data Underwriters Laboratories Universal Language Interface volts volts alternating current volts direct current GPIB-232CT-A for MS-DOS/Windows Glossary-2 © National Instruments Corp.

Table of Contents