GTCO 2500 Series - Users Guide 3/3 User Manual

Page 36

Advertising
background image

2500 Series 36

Basic Program to Check Installation

The following program, written in MICROSOFT BASIC, will cause the IBM PC or compatible
system to accept and display digitizer output data. Your computer must have MICROSOFT
BASIC installed. If you are using another version of BASIC, this program may need changes
to the statements to follow the rules of the other BASIC.

Set the soft switches according to the following table:

SWITCH

1

2

3

4

5

6

7

8

BANK #1
BANK #2
BANK #3
BANK #4
BANK #5

0
0
0
0
0

0
0
0
0
*

0
0
0
1
0

0
1
0
0
1

0
0
0
0
0

0
0
0
0
1

0
0
0
0
0

1
0
0
1
0

Type in the following three statement program:

10 OPEN “COM 1:9600, E, 7, 1, CS, DS” AS #1

20 PRINT INPUT $(1, 1);

30 GO TO 20

Place the transducer on the active area and then type RUN to start the program. To leave
the program, press the CTRL and BREAK keys simultaneously.

The program sets the PC to accept ASCII data through communication port 1 at 9600 baud,
even parity, 7 data bits, 1 stop bit and without handshaking signals. The X and Y data will
be continuously displayed. If your digitizer is connected to port 2, make the first statement
COM 2 instead of COM 1.

If you get an I/O ERROR message when you try to run the program, please try again. To
keep the program short, we left out error checking, and the host and tablet don’t always
communicate on the first try.

When this program runs, the hardware is connected properly. You may have to reverse
the setting of Bank 5, Switch 2. The data will appear as a column of numbers on the host
display. If you move the transducer around the active area, the numbers will change.

Advertising