Hardcopy Program (Service Request Using Opc) - HP 54501A Programming Reference Manual

Digitizing oscilloscope
Hide thumbs Also See for 54501A:
Table of Contents

Advertisement

Hardcopy
Program
(Service
Request
using OPC)
This sample program demonstrates
some
of
the commands
in
the
HARDCOPY
subsystem.
The
service request is used
to detect when the
printing
is
complete.
The
program
assumes
that
a
graphics printer
is
used
and
its address
is set
to
1.
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
CLEAR
707
OUTPUT
707;":EOI
ON"
ON INTR
7.5
GOTO
220
ENABLE INTR
7;2
OUTPUT
707
OUTPUT 707
OUTPUT
707
OUTPUT
707
OUTPUT
707
OUTPUT
707
SEND
7.UNT
UNL
SEND
7;TALK
7
SEND
7;LISTEN
1
SEND
7;DATA
GOTO
190
A=SPOLL(707)
OUTPUT
707;":SYSTEM:DSP 'PRINT IS
COMPLETE"'
WAIT 15
OUTPUT
707;":SYSTEM:DSP
""
END
"*CLS"
"*ESE 1"
"*SRE
32"
":HARDCOPY:PAGE
AUTOMATIC"
":HARDCOPY:LENGTH 12"
":PRINT?;*OPC"
'Device
clear
command.
!initializes
HP-IB
registers.
'Turn
on EOI
!Exit printing routine
'after
SRO
•Enables
SRQ
on bus #7
!C1ear
status data structures
!Enab1e
OPC
'Enable Event Status
Register
•Interrupt
!Set
OPC
when
the
•print
is complete
!C1ears
bus
•Puts the scope in
talk
mode
!Te11s
printer to listen
•Lowers
ATN
line
@
controller
•Loops
until printing
is
•complete
and
interrupt
!is
generated
•dear
service
request
HP
54501A
Programming
Example Programs
B-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents