Sample Programs
Appendix H
GPIB-232CT User Manual
H-14
© National Instruments Corp.
415 count:";RD$
420 END
IBM PC (with GPIB-PC) to Serial Printer
This example demonstrates how to control a serial printer on the GPIB.
The printer is the Apple Imagewriter. The following program example
prints the message "Hello World."
Getting Ready to Program
First, set the GPIB-232CT configuration switch with a primary address of
18, as shown in Figure H-5.
1
2
3
4
5
6
7
8
O
F
F
U22
O
N
!
Figure H-5. G mode, primary GPIB address 18
Next, check the DIP switch settings on the Imagewriter. Switches 2-1 and
2-2 should be
closed
for 9600 baud rate.
The serial port characteristics of the GPIB-232CT must match those of the
serial device. The baud rate of the printer is 9600. Since the configurations
match, there is no need to initialize the software of the serial port.