IEEE-488 Programming
5-6
To check the present primary address, look on the rear panel
of the Model 708A. If the value is above 30, the actual IEEE-
488 address will be 30 less. To change the address to a new
one, perform the following:
1. Power down the unit (stand-alone) or units (master/
slave).
2. Change the position of the rotary switches (Figure 5-6)
to the new address.
NOTE
Each device on the bus must have a unique
primary address. Failure to observe this
precaution could result in erratic bus oper-
ation. In a master/slave configuration, only
the master Model 708A Switching Sys-
tems IEEE-488 address will be used.
2
2
3
3
4
4
5
5
6
6
8
8
9
9
0
0
1
1
7
7
IEEE-488
ADDRESS
IEEE-488 INTERFACE
Figure 5-6
IEEE-488 bus connector and rotary selection switches
5.6
QuickBASIC programming
Programming examples are written in Microsoft
QuickBASIC 4.5 using the Keithley KPC-488.2 (or Capital
Equipment Corporation) IEEE interface and the HP-style
Universal Language Driver (CECHP).
Before any programming example can be run, the Universal
Language Driver must be installed. To install the driver, enter
cechp at the DOS prompt.
If you include the CECHP command in your AUTOEX-
EC.BAT file, the driver will automatically be installed each
time you turn on your computer.
Program fragments are used to demonstrate proper program-
ming syntax. As the name implies, only a fragment of the
whole program is used to avoid redundancy. At the beginning
of each program, driver files must be opened. The input ter-
minator should be set for CRLF. For example:
OPEN “ieee” FOR OUTPUT AS #1
OPEN “ieee” FOR INPUT AS #2
PRINT #1, “interm crlf”
A partial list of BASIC statements is shown in Table 5-4.
Table 5-4
BASIC IEEE-488 statements
Action
Basic statement
Transmit string to device 18.
Obtain string from device 18.
Read string.
Display string.
Send GTL to device 18.
Send SDC to device 18.
Send DCL to all devices.
Send remote enable.
Cancel remote enable.
Serial poll device 18.
Send local lockout.
Send GET to device 18.
Send IFC.
PRINT #1, "OUTPUT 18",A$
PRINT #1, "ENTER 18"
LINE INPUT #2, A$
PRINT A$
PRINT #1, "LOCAL 18"
PRINT #1, "CLEAR 18"
PRINT #1, "CLEAR"
PRINT #1, "REMOTE"
PRINT #1, "LOCAL"
PRINT #1, "SPOLL(18)"
PRINT #1, "LOCAL LOCKOUT"
PRINT #1, "TRIGGER 18"
PRINT #1, "ABORT"
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание 708A
Страница 135: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 136: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 137: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 138: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 139: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 145: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 146: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 147: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 148: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 149: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 150: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...