Automating Measurements
Controlling Peripherals
NOTE
When using the
WRITEIO(
15
,O>
or
WRITE10
(15,3)
command, the Printer-Select Line is
set High. However, when the instrument is doing hardcopy, the Printer-Select Line is set low The
Printer-Select line may or may not be used by individual printers. Check with your printer manual.
Writing
to
the
Parallel
Port
To
write the value 52 decimal (34 hex, 0011 0100 binary) to the parallel
port’s output pins, use one of the following commands:
OUTPUT
ORfna;“DIAG:PORT:WRITE
15,3,52”
WRITE10
15,3;52
When the write command is executed, the parallel port’s data lines (pins 2-9)
will be set to the specified value, and then a pulse of at least 1
ps
duration
will occur on the strobe line (pin 1). A data setup and data hold time of at
least 1 ps are guaranteed. See Figure 7-9.
7-56
-