The GPIB-232/485CT-A is warranted against defects in m aterials and wo rkma nship fo r a period of t wo years from the d ate o f
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. Th is warrant y in cludes parts and labor.
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 perio d of 9 0 da ys from d ate o f sh ip ment, as ev idenced b y receipt s o r ot her
documentation. National Instruments will, at its op ti on , repair or repl ace soft ware me dia th at do not ex ecu te pr ogram mi ng
instructions if National Instruments receives notice of such defects during the warranty period. National Instruments does not
warrant that the operation of the software shall be uni nterrup ted or error free.
A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of the
package before any equipment will be accepted for warranty work. National Instruments will pay the shipping costs of returning
to the owner parts which are covered by warranty.
National Instruments believes that the information in this document is accurate. The document has been carefully reviewed for
technical accuracy. In the event that technical or typographical errors exist, National Instruments reserves the right to make
changes to subsequent editions of this document without prior notice to holders of this edition. The reader should consult National
Instruments if errors are suspected. In no event shall Natio nal Ins trument s be liab le for any dam ages arisin g out of or rel ated to
this document or the information contained in it .
XCEPT AS SPECIFIED HEREIN
E
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER
NSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR
I
CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF
apply regardless of the form of action, whether in contract or tort, including negligence. 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 provided herein does not co ver d amag es, defects,
malfunctions, or service failures caused by ow ner’s fai lu re t o foll ow th e Nation al Inst rum ent s in stal l ation, op erat i on, or
maintenance instructions; owner’s modification of the pro du ct; ow ner’s abus e, m isus e, or negligent acts; and po wer failure or
surges, fire, flood, accident, actions of third parties, or other events outside reasonable control.
ATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY
, N
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including
photocopying, recording, storing in an informatio n retriev al s ystem, o r t ran sl ating , in who le or i n p art, wit ho ut t he prior written
consent of National Instruments Corporation.
USTOMER’S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR
. C
. This limitation of the liability of National Instruments will
. N
ATIONAL
Trademarks
NAT4882™, National Instruments™, NI-488™, NI-488.2™, ni.com™, TNT4882™C, and Turbo488™ are trademarks of
National Instruments Corporation.
Product and company names mentioned herein are trad emarks o r trad e name s of thei r respect ive compan ies .
WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS
(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL
OF RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL
COMPONENTS IN ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE
EXPECTED TO CAUSE SIGNIFICANT INJURY TO A HUMAN.
(2) IN ANY APPLICATION, I NCLUDING THE ABOVE , RELIABILITY OF OP ERATION OF THE SOFT WARE PRODUCTS
CAN BE IMPAIRED BY ADVERSE FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL
POWER SUPPLY, COMPUTER HARDWARE MALFUNCTIONS, COMPUTER OPERATING SYSTEM SOFTWARE
FITNESS, FITNESS OF COMPILERS AND DEVELOPMENT SOFTWARE USED TO DE VEL OP AN APPLICAT ION,
INSTALLATION ERRORS, SOFTWARE AND HARDWARE COMPATIBILITY PROBLEMS, MALFUNCTIONS OR
FAILURES OF ELECTRONIC MONITORING OR CONTROL DEVICES, TRANSIENT FAILURES OF ELECTRONIC
SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED USES OR MISUSES, OR ERRORS ON THE PART OF
THE USER OR APPLICATIONS DESIGNER (ADVERSE FACTORS SUCH AS THESE ARE HEREAFTER
COLLECTIVELY TERMED “SYSTEM FAILURES”). ANY APPLICATION WHERE A SYSTEM FAILURE WOULD
CREATE A RISK OF HARM TO PROPERTY OR PERSONS (INCLUDING THE RISK OF BODILY INJURY AND DEATH)
SHOULD NOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRON IC SYSTE M DUE TO THE RISK OF SYSTEM
FAILURE. TO AVOID DAMAGE, INJURY, OR DEATH, THE USER OR APPLICATION DESIGNE R MU ST T AKE
REASONABLY PRUDENT STEPS TO PROTECT AGAINST SYSTEM FAILURES, INCLUDING BUT NOT LIMITED TO
BACK-UP OR SHUT DOWN MECHANISMS. BECAUSE EACH END-USER SYSTEM IS CUSTOMIZED AND DIFFERS
FROM NATIONAL INSTRUMENTS' TESTING PLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER
MAY USE NATIONAL INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT
EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS, THE USER OR A PPLICATION DE SIGNER IS
ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATING THE SUITAB ILITY OF NA TIONAL
INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS ARE INCORPORATED IN A
SYSTEM OR APPLICATION, INCLUDING, WITHOUT LIMITATION, THE APPROPRIATE DESIGN, PROCESS AND
SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.
Compliance
FCC/Canada Radio Frequency Interference Compliance*
Determining FCC Class
The Federal Communications Commission (FCC) has rules to protect wireless communications from interference.
The FCC places digital electronics into two classes. These classes are known as Class A (for use in industrialcommercial locations only) or Class B (for use in residential or commercial locations). Depending on where it is
operated, this product could be subject to restrictions in the FCC rules. (In Canada, the Department of
Communications (DOC), of Industry Canada, regulates wireless interference in much the same way.)
Digital electronics emit weak signals during normal operation that can affect radio, television, or other wireless
products. By examining the product you purchased, you can determine the FCC Class and therefore which of the two
FCC/DOC Warnings apply in the following sections. (Some products may not be labelled at all for FCC, if so the
reader should then assume these are Class A devices.)
FCC Class A products only display a simple warning statement of one paragraph in length regarding interference and
undesired operation. Most of our products are FCC Class A. The FCC rules have restrictions regarding the locations
where FCC Class A products can be operated.
FCC Class B products display either a FCC ID code, starting with the letters EXN,
or the FCC Class B compliance mark that appears as shown here on the right.
The curious reader can consult the FCC web site
information.
FCC/DOC Warnings
This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the
instructions in this manual and the CE Mark Declaration of Conformity**, may cause interference to radio and
television reception. 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.
Class A
Federal Communications Commission
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15
of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the
equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency
energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to
radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in
which case the user will be required to correct the interference at his own expense.
http://www.fcc.gov for more
Canadian Department of Communications
This Class A digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations.
Cet appareil numérique de la classe A respecte toutes les exigences du Règlement sur le matériel brouilleur du
Canada.
Class B
Federal Communications Commission
This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15
of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a
residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed
and used in accordance with the instructions, may cause harmful interference to radio communications. However,
there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful
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.
• Increase the separation between the equipment and receiver.
• Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
• Consult the dealer or an experienced radio/TV technician for help.
Canadian Department of Communications
This Class B digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations.
Cet appareil numérique de la classe B respecte toutes les exigences du Règlement sur le matériel brouilleur du
Canada.
European Union - Compliance to EEC Directives
Readers in the EU/EEC/EEA must refer to the Manufacturer's Declaration of Conformity (DoC) for information**
pertaining to the CE Mark compliance scheme. The Manufacturer includes a DoC for most every hardware product
except for those bought for OEMs, if also available from an original manufacturer that also markets in the EU, or
where compliance is not required as for electrically benign apparatus or cables.
* Certain exemptions may apply in the USA, see FCC Rules §15.103 Exempted devices, and §15.105(c). Also
available in sections of CFR 47.
** The CE Mark Declaration of Conformity will contain important supplementary information and instructions for
The GPIB-232/485CT-A User Manual describes the features, functions,
and operation of the GPIB-232CT-A and GPIB-485CT-A. This manual
assumes that you have a general knowledge of RS-232 or RS-485 serial
communications and the GPIB.
Conventions
The following conventions appear in this manual:
This icon denotes a note, which alerts you to important information.
This icon denotes a caution, which advises you of precautions to take to
avoid injury, data loss, or a system crash.
boldBold text denotes items that you must select or click on in the software,
such as menu items and dialog box options. Bold text also denotes
parameter names.
GPIB-232/485CT-AGPIB-232/485CT-A refers to either the GPIB-232CT -A or GPIB-485CT -A
box.
IEEE 488 andIEEE 488 and IEEE 488.2 refer to the ANSI/IEEE Standard 488.1-1987
IEEE 488.2and the ANSI/IEEE Standard 488.2-1992, respectively, which define the
GPIB.
italicItalic text denotes variables, emphasis, a cross reference, or an introduction
to a key concept. This font also denotes text that is a placeholder for a word
or value that you must supply.
monospaceText in this font denotes text or characters that you should enter from the
keyboard, sections of code, programming examples, and syntax examples.
This font is also used for the proper names of disk drives, paths, directories,
programs, subprograms, subroutines, device names, functions, operations,
variables, filenames and extensions, and code excerpts.
monospace boldBold text in this font denotes the messages and responses that the computer
automatically prints to the screen. This font also emphasizes lines of code
that are different from the other examples.
RS-232RS-232 refers to the ANSI/EIA-232-C standard.
RS-422RS-422 refers to the EIA-422-A standard.
RS-485RS-485 refers to the EIA-485 standard.
Related Documentation
The following documents contain information that you might find helpful
as you read this manual:
•ANSI/EIA-232-D, Interface Between Data Terminal Equipment and
Data Circuit-Terminating Equipment Employing Serial Binary Data
Interchange
•EIA-485, Standard for Electrical Characteristics of Generators and
Receivers for Use in Balanced Digital Multipoint Systems
•EIA/RS-422-A, Electrical Characteristics of Balanced Voltage
Digital Interface Circuits
•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-232/485CT-A User Manualxviwww.ni.com
Hardware Overview
This chapter lists what you need to get started and optional equipment you
can order, and briefly describes the GPIB-232/485CT-A.
What You Need to Get Started
Before you install your GPIB hardware, make sure you have all of the
following items:
❑ One of the following controllers, which is included in your kit:
–GPIB-232CT-A, 100–120 VAC
–GPIB-232CT-A, 220–240 VAC
–GPIB-232CT-A, DC
–GPIB-485CT-A, 100–120 VAC
–GPIB-485CT-A, 220–240 VAC
–GPIB-485CT-A, DC
1
❑ If you have an A C v ersion, one of the follo wing power cords, which is
included in your kit:
–U.S. standard power cord
–Swiss power cord
–Australian power cord
–Universal European power cord
–North American power cord
–U.K. power cord
❑ If you have a DC version, one of the following DC power supplies,
which is included in your kit:
–Wall-mount power supply (100–120 VAC, 9 V, 1 A)
–Desktop power supply (220–240 VAC, 9 V, 1 A)
❑ One of the following shielded cables, compatible with IBM PC, which
you can purchase from National Instruments:
–RS-232 DTE-to-DTE cable (1, 2, or 4 m) for the GPIB-232CT-A
–RS-485 null-modem cable (1, 2, or 4 m) for the GPIB-485CT-A
❑ Type X2 double-shielded GPIB cable (1, 2, or 4 m), which you can
purchase from National Instruments
Caution To meet FCC emission limits for this device, you must use a Type X2
double-shielded GPIB cable. If you operate this equipment with a non-shielded cable,
it may interfere with radio and television reception.
GPIB-232CT-A Hardware Overview
The GPIB-232CT-A is a high-performance serial-to-GPIB interface. It
enables a computer with an RS-232 serial port to be a Talker, Listener, or
Controller on the GPIB. The GPIB-232CT-A is also capable of interfacing
RS-232 instruments and peripherals to the GPIB.
The GPIB-232CT-A has all the software and logic required to implement
the physical and electrical specifications of the IEEE 488 and RS-232
standards. It can interpret and execute high-level commands that you send
to it over the serial port, performing GPIB-to-RS-232 protocol conversions.
The GPIB-232CT-A also conforms to all versions of the IEEE 488
standard, including IEEE 488.2. The NAT4882 Controller chip implements
all IEEE 488 Talker/Listener/Controller functionality.
GPIB-485CT-A Hardware Overview
The GPIB-485CT-A is a high-performance serial-to-GPIB interface. It
enables a computer with an RS-485 or RS-422 serial port to be a Talker,
Listener, or Controller on the GPIB. The GPIB-485CT-A is also capable
of interfacing RS-485 or RS-422 instruments and peripherals to the GPIB.
The GPIB-485CT-A does not support any multidrop protocols.
The GPIB-485CT-A has all the software and logic required to implement
the physical and electrical specifications of the IEEE 488, RS-485, and
RS-422 standards. It can interpret and execute high-level commands that
you send to it over the serial port, performing all GPIB-to-RS-485 and
GPIB-to-RS-422 protocol conversions. The GPIB-485CT-A also conforms
to all versions of the IEEE 488 standard, including IEEE 488.2. The
GPIB-232/485CT-A User Manual1-2www.ni.com
NAT4882 Controller chip implements all IEEE 488
Talker/Listener/Controller functionality.
AC Version Front Panel
The power switch, fuse holder, and power cord receptacle are located on
the GPIB-232/485CT-A front panel, on the AC version only. Figure 1-1
shows the front panel of the AC version.
Chapter 1Hardware Overview
FUSE
Top Panel
Note
similar.
Figure 1-1.
The AC Version Front Panel
The six light-emitting diodes (LEDs) are located on the
GPIB-232/485CT-A top panel. Figure 1-2 shows the top panel.
The following figures show only the GPIB-232CT-A, but the GPIB-485CT-A is
The LEDs show the current status of the GPIB-232/485CT-A at all times.
Table 1-1 describes each LED.
Rear Panel
Table 1-1.
LED Descriptions
LEDIndication
POWERIn dicates that power to the unit has been applied and
the ON/OFF switch is in the ON position.
READYIndicates that the power-on self-test has passed
successfully and the unit is ready to operate.
TALKIndicates that the GPIB-232/485CT-A is addressed as
a GPIB Talker.
LISTENIndicates that the GPIB-232/485CT-A is addressed as
a GPIB Listener.
SRQIndicates that the GPIB signal line SRQ* is asserted.
ATNIndicates that the GPIB signal line ATN* is asserted.
* indicates that the signal is active low (negative logic or low when asserted).
The configuration switches are located on the rear panel of the
GPIB-232/485CT-A. Figure 1-3 shows the rear panel of the AC version.
Figure 1-4 shows the rear panel of the DC version. The unmarked DIP
switches are reserved for future development and should remain in the
OFF position.
S MODE
DATA FORMAT
BAUD RATE
GPIB ADDRESS
G MODE
Figure 1-3.
GPIB-232/485CT-A User Manual1-4www.ni.com
OFF
ON
The DC Version Rear Panel
ONOFF
Side Panels
Chapter 1Hardware Overview
S MODE
DATA FORMAT
BAUD RATE
GPIB ADDRESS
G MODE
OFF
ON
Figure 1-4. The AC Version Rear Panel
The GPIB connector and the serial connector are mounted on opposite side
panels. On the DC version, the DC power jack is located next to the serial
connector.
Figure 1-5 shows the location of the serial and GPIB connectors and the
DC power jack.
DC Power Jack
(DC version only)
Serial Connector
GPIB-232CT-A
IEEE 488 ControllerRS-232
READY
TALK
POWER
Figure 1-5. Location of the Connectors and the DC Power Jack
The RS-232 port on the GPIB-232CT-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-6 shows a
diagram of the RS-232 connector and the signals supported. For more
information on the RS-232 signals refer to Appendix D, Interfacing to an
RS-232 Device.
No Connection
No Connection
Figure 1-6.
6789
RTS
CTS
No Connection
23451
RXD
TXD
DTR
GND
The RS-232 Connector and Signal Designations
GPIB-232/485CT-A User Manual1-6www.ni.com
Chapter 1Hardware Overview
RS-485 Connector
The RS-485 port on the GPIB-485CT-A uses a standard 9-pin shielded
D-Subminiature male connector with screwlock assemblies. The RS-485
connector accepts standard 9-pin D-Subminiature female connectors.
Figure 1-7 shows a diagram of the serial connector and the signals
supported. For more information on the RS-485 signals refer to
Appendix E, Interfacing to an RS-485 Device.
The GPIB connector is a standard 24-pin shielded Champ female connector
with metric screwlock hardware. Figure 1-8 shows a diagram of the GPIB
connector and the signals supported. A * suffix indicates that the signal is
active low. Refer to Appendix F, GPIB Basics, for more information about
the GPIB signal lines.
13
DIO1*
DIO2*
DIO3*
DIO4*
EOI*
DAV*
NRFD*
NDAC*
IFC*
SRQ*
ATN*
SHIELD
1
2
3
4
5
6
7
8
9
10
11
12
DIO5*
14
DIO6*
15
DIO7*
16
DIO8*
17
REN*
18
GND (Twisted Pair with DAV*)
19
GND (Twisted Pair with NRFD*)
20
GND (Twisted Pair with NDAC*)
GND (Twisted Pair with IFC*)
21
GND (Twisted Pair with SRQ*)
22
GND (Twisted Pair with ATN*)
23
SIGNAL GROUND
24
Figure 1-8.
GPIB-232/485CT-A User Manual1-8www.ni.com
The GPIB Connector and Signal Designations
Operating in S Mode and
G Mode
This chapter helps you determine which mode of operation, S mode or
G mode, you should use. It also describes data buffering and handshaking
schemes.
Choosing Between S Mode and G Mode
The GPIB-232/485CT-A can be connected to a serial device and one or
more GPIB devices. The way you use the serial device in your system setup
determines which mode of operation you should use. If the serial device is
the Controller, you should use S mode. If the serial device is a
Talker/Listener only, and a GPIB device is the Controller, you should use
G mode.
Operating in S Mode
The GPIB-232/485CT-A should be configured to operate in S mode if your
serial device acts as a Controller in the GPIB system, addressing devices,
and performing other GPIB Controller functions. In S mode operation, you
can use the NI-488.2 software.
Figure 2-1 shows an example of a setup using S mode. The
GPIB-232/485CT-A is connected to a PC, which is controlling a GPIB
plotter.
IBM PC
(Controller)
Refer to Chapter 3, Installing and Configuring Your Controller, for
detailed information on setting up your GPIB-232/485CT-A to operate in
S mode. Refer to Chapter 4, Programming in S Mode, and Chapter 5,
S Mode Functions, for information on programming the
GPIB-232/485CT-A in S mode.
Operating in G Mode
The GPIB-232/485CT-A should be configured to operate in G mode if your
serial device acts only as a Talker and/or Listener while a GPIB device
manages the system, sending and receiving data to and from the serial
device.
Serial Cable
GPIB-232CT-A
GPIB Cable
READY
TALK
POWER
LISTEN
BUSY
FULL
GPIB-232/485CT-A
Figure 2-1. Example of S Mode System Setup
Plotter
(GPIB Device)
GPIB-232/485CT-A User Manual2-2www.ni.com
Chapter 2Operating in S Mode and G Mode
Figure 2-2 shows an example of a setup using G mode. The
GPIB-232/485CT-A is connected to a serial printer, which is programmed
by the GPIB Controller.
GPIB Device
Serial CableGPIB Cables
GPIB-232CT-A
POWER
READY
TALK
LISTEN
FULL
BUSY
Serial Device
(Talker/Listener)
GPIB-232/485CT-A
IBM PC with GPIB Board
(Controller)
Figure 2-2. Example of G Mode System Setup
Refer to Chapter 3, Installing and Configuring Your Controller, for
detailed information on setting up your GPIB-232/485CT-A to operate in
G mode. Refer to Chapter 6, Programming in G Mode, and Chapter 7,
G Mode Functions, for information on programming in G mode.
Data Buffering and Handshaking Schemes
Two protection mechanisms are used to ensure that the
GPIB-232/485CT-A does not lose incoming serial data: data buffering and
handshaking.
The GPIB-232/485CT-A has an internal RAM buffer that stores incoming
serial data until it can output the data to the GPIB port. The size of this
RAM buffer determines ho w much serial data the GPIB-232/485CT-A can
accept before the buffer is completely full.
When its RAM buffer is nearly full, the GPIB-232/485CT -A can handshake
with the serial host to stop data transmission. When the buffer is almost
empty , the GPIB-232/485CT-A can again handshake with the serial host to
start data transmission. The GPIB-232/485CT-A is capable of using both
the XON/XOFF software handshaking and the hardware handshaking
protocols.
The hardware handshake function is always active during serial data
transfers and uses the Request to Send (RTS on the GPIB-232CT-A,
RTS+ and RTS– on the GPIB-485CT-A) and Clear to Send (CTS on the
GPIB-232CT-A, CTS+ and CTS– on the GPIB-485CT-A) signal lines.
When the GPIB-232/485CT-A is ready to accept serial data, it asserts the
RTS line(s). RTS remains asserted until the GPIB-232/485CT-A data
buffer is almost full. At this point, the GPIB-232/485CT-A unasserts the
RTS line(s), signaling to the serial host that it is no longer ready to accept
data. The serial host should monitor the RTS line(s) and suspend data
transmission whenever RTS becomes unasserted. The GPIB-232/485CT-A
asserts RTS when it is again ready to receive serial data.
The GPIB-232/485CT-A is also able to suspend transmission when the
serial device is no longer ready to accept data. The GPIB-232/485CT-A is
configured to immediately stop transmission of serial data when CTS
becomes unasserted. It resumes transmission when CTS is reasserted.
Because most serial devices use the same form of hardware handshaking as
the GPIB-232/485CT-A, you can achieve bidirectional flow control by
using a serial cable that connects the GPIB-232/485CT -A RTS signal(s) to
the serial device CTS signal(s). In addition, the serial device RTS signal(s)
should be connected to the GPIB-232/485CT-A CTS signal(s). This setup
allows each device to monitor the RTS signal(s) of the other device and to
suspend transmission when necessary to prevent data loss. Refer to or
Appendix D, Interfacing to an RS-232 Device, or Appendix E, Interfacing
to an RS-485 Device, for more information on wiring schemes.
XON/XOFF Software Handshaking
If your serial device does not implement or recognize the hardware
handshake scheme, your cable does not support the necessary handshake
lines, or your application software requires XON/XOFF handshaking, you
might need to enable the XON/XOFF handshaking protocol by using the
xon command. This handshaking protocol performs the same function as
the hardware handshake but does so by sending special control codes over
the data lines instead of changing logic levels on dedicated control lines.
When you enable the XON/XOFF protocol, the GPIB-232/485CT -A sends
the XOFF character (decimal 19 or <CTRL-S>) before the internal buffer
overflows. When the GPIB-232/485CT-A is able to start receiving
characters again, it sends the XON character (decimal 17 or <CTRL-Q>).
Similarly, if the GPIB-232/485CT-A is transmitting data and receives the
GPIB-232/485CT-A User Manual2-4www.ni.com
Chapter 2Operating in S Mode and G Mode
XOFF character, it suspends transmission of any further data until it
receives the XON character.
If you are transmitting binary data (as opposed to 7-bit ASCII), do not
configure the GPIB-232/485CT-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-232/485CT-A would not be able to distinguish between data values
or handshake control codes. If XON/XOFF software handshaking were
enabled in this case, the GPIB-232/485CT-A would handshake erratically.
This chapter contains detailed instructions for connecting and configuring
your GPIB-232/485CT-A.
Check the Hardware Configuration
The AC versions of the GPIB-232/485CT-A are shipped with a 100–120 V
or 220–240 V internal power supply. The DC versions of the
GPIB-232/485CT-A are shipped with a 100–120 V or 220–240 V,
wall-mount or desktop power supply. Before configuring your
GPIB-232/485CT-A, verify that the voltage marked on the
GPIB-232/485CT-A or on the power supply matches the voltage that is
supplied in your area.
3
Caution
marked on your GPIB-232/485CT-A. Doing so could damage the unit. Replacement fuses
for the AC version must be the proper type and size. For fuse specifications, refer to
Appendix A, Specifications.
Do not operate your GPIB-232/485CT-A at any voltage other than the one
The GPIB-232/485CT-A is shipped with the following default settings:
•S mode
•7 data bits/character
•1 stop bit/character
•Parity disabled
•Serial port configured to 9600 baud
If you want to change any of the default settings, you must change the DIP
switch settings. To change the settings, shut down your system and then
refer to the section Configure the Hardware later in this chapter. If you plan
to use the default settings, continue with the next section.
Chapter 3Installing and Configuring Your Controller
Connect the Hardware
Complete the following steps to connect the GPIB-232/485CT-A to your
system.
Step 1. Power Off Your System
Power off your system, turn off your computer, and unplug the power cord.
Step 2. Verify That You Have a Null-Modem Serial Cable
You must use a null-modem serial cable (also known as a file transfer cable
or a DTE-to-DTE cable) to connect your computer to the GPIB-232CT-A.
The following National Instruments cables are null-modem serial cables.
National Instruments
See Appendix D, Interfacing to an RS-232 Device, and Appendix E,
Interfacing to an RS-485 Device, for more information on cable pinouts.
Step 3. Connect the Cables
1.Connect the serial cable to the GPIB-232/485CT-A serial connector
and securely fasten the holding screws. Connect the other end of the
cable to your serial device. Be sure to use only shielded serial cables,
and follow the appropriate serial cabling restrictions.
2.Connect the GPIB cable to the GPIB connector on the
GPIB-232/485CT-A, and tighten the thumb screws on the connector.
Connect the other end to your GPIB device(s). Be sure to use only
shielded GPIB cables, and follow all IEEE 488 cabling restrictions.
3.If you have an AC version, connect the power cord to the power
receptacle on the front panel of the GPIB-232/485CT-A, then plug the
supply into an AC outlet of the correct voltage.
Table 3-1.
Part Number
182238-019-pin to 9-pin, 1 m
182238-029-pin to 9-pin, 2 m
182238-049-pin to 9-pin, 4 m
181074-109-pin to 25-pin, 1 m
National Instruments Null-Modem Serial Cables
Cable Type
GPIB-232/485CT-A User Manual3-2www.ni.com
Chapter 3Installing and Configuring Your Controller
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-232/485CT-A,
then plug the supply into an AC outlet of the correct voltage.
Step 4. Power On Your System and the GPIB-232/485CT-A
1.Plug in the power cords for your computer system and power on all
devices.
2.If you have an AC v ersion, use the front panel rocker switch to power
on your GPIB-232/485CT -A. If you ha v e a DC version, use the po wer
switch on the rear panel to power on your GPIB-232/485CT-A.
The POWER LED indicator should come on immediately. The
READY LED indicator should come on after the GPIB-232/485CT- A
has passed its power-on self test, indicating the unit is ready for
operation. If the READY LED does not come on within seven seconds
after the unit is powered on, recheck all connections and switch
settings and retry the power-on sequence. If the READY LED still
does not come on, contact National Instruments.
Configure the Hardware
If you want to change the settings of the GPIB-232/485CT-A, power off
your system and follow the instructions in the next sections.
Changing the S Mode Characteristics
You can use the DIP switch on the rear panel to configure the serial port
characteristics of the GPIB-232/485CT-A in S mode. When switch 8 is set
to S mode, switches 1 through 3 set the baud rate, and switches 4 through
7 set the data formatting characteristics. Figure 3-1 shows the DIP switch.
The unmarked DIP switches on the rear panel are reserved for future
development and should remain in the OFF position.