Appendix H
Sample Programs
© National Instruments Corp.
H-5
GPIB-232CT User Manual
Using an HP 7475A Plotter with an IBM PC
This example shows how to write a program on an IBM PC using Microsoft
BASIC to draw a circle using an HP 7475A Plotter.
Getting Ready to Program
Before you start programming, determine the serial port settings you will
use. Figure H-2 shows how to configure the GPIB-232CT for this example,
using the following settings:
•
baud rate: 9600
• parity: none
• data
bits:
7
• stop
bits:
1
1
2
3
4
5
6
7
8
O
F
F
U22
O
N
!
Figure H-2. S mode, 7 data bits, 1 stop bit, no parity, 9600 baud
Next, connect the serial cable to the serial port of your computer and to the
GPIB-232CT. Connect the GPIB cable to your device and the
GPIB-232CT. Power-on the GPIB-232CT.