Setting Switches
Appendix G
GPIB-232CT User Manual
G-4
© National Instruments Corp.
In many cases, you will want to change the default characteristics of the
serial port on the IBM PC. You may want to run at a higher baud rate (up
to 19200 baud) and you may want to send 8-bit data bytes for binary data
that will be sent to the GPIB device. To change the IBM PC's serial port
default characteristics to 9600 baud and 8 data bits from within BASICA,
place the following BASIC statement at the beginning of your application
program:
OPEN "COM1:9600,,8," AS #1
then set the switches on the GPIB-232CT as shown in Figure G-5.
1
2
3
4
5
6
7
8
O
F
F
U22
O
N
!
Figure G-5. S mode, 8 data bits, 1 stop bit, even parity, 9600 baud
If your computer (or terminal) is other than those described above, read
your user's manual to learn the default settings of the serial port.
On a terminal, there will be switches or a setup program. If you are using
Applesoft BASIC or Integer BASIC for your application, you should
configure for your serial port before you enter BASIC. If you are using a
version of Microsoft BASIC, you can change the serial port characteristics
from within BASIC. Refer to the OPEN command in your BASIC manual.
Remember, whatever serial port characteristics you decide to use, you must
set up both your serial device and your GPIB-232CT to identical
characteristics.