Appendix H
Sample Programs
© National Instruments Corp.
H-11
GPIB-232CT User Manual
Using a Serial HP 7475A Plotter with a GPIB
Controller
This is a program to draw a circle using an HP 7475A Color Plotter with a
serial interface. The Controller is an IBM PC with the National Instruments
GPIB-PC card and software.
Getting Ready to Program
First, set up the GPIB-232CT configuration switches with a primary
address of 2 as shown in Figure H-4.
1
2
3
4
5
6
7
8
O
F
F
U22
O
N
!
Figure H-4. G mode, primary GPIB address 2
Next, connect the GPIB cable to the GPIB port on your computer and to the
GPIB-232CT. Connect the serial cable to the serial port on your device and
to the GPIB-232CT. Power-on the GPIB-232CT.
The serial port characteristics of the GPIB-232CT and the serial device
must be exactly the same. In this case, the plotter's serial port settings are
as follows:
•
baud rate: 9600
• parity: none
• data
bits:
7
• stop
bits:
1