User`s manual

2. Unmask bit 6 (ARM) in the Enable Register so that the event latched
into the Event Register will generate an Operation Status Group
summary bit.
STATus:OPERation:ENABle <unmask>
3. Unmask bit 7 (OPR) in the Service Request Enable Register so that a
service request is generated when the Operation Status Group
summary bit is received.
*SRE <unmask>
BASIC Program Example (OSG_RQS)
1 !RE-STORE "OSG_RQS"
2 !This program generates a service request when the AFG enters the
3 !wait-for-arm state.
4 !
10 !Assign an I/O path between the computer and the E1445A.
20 ASSIGN @Afg TO 70910
30 COM @Afg
40 !
50 !Reset the AFG
60 CALL Rst
70 !
80 !Set up the computer to respond to the service request.
90 ON INTR 7 CALL Afg_ready
100 ENABLE INTR 7;2
110 !
120 !Set up the AFG to generate a service request when it enters the
130 !wait-for-arm state.
140 OUTPUT @Afg;"*CLS" !clear Status Byte and Event Registers
150 OUTPUT @Afg;"STAT:OPER:PTR 64" !pos transition of ARM bit
160 OUTPUT @Afg;"STAT:OPER:ENAB 64" !allow ARM bit to generate summary bit
170 OUTPUT @Afg;"*SRE 128" !enable summary bit to generate RQS
180 OUTPUT @Afg;"STAT:OPC:INIT OFF" !allow intr branching after wait-for-arm
190 !
200 !Call subprogram which sets up and initiates the AFG.
210 !subsystem.
220 CALL Afg_setup
230 WAIT .1 !allow interrupt to be serviced
240 OFF INTR 7
250 END
260 !
270 SUB Afg_setup
280 Afg_setup: !Subprogram which sets up the AFG and places it in the
290 !wait-for-arm state
300 COM @Afg
310 OUTPUT @Afg;"ABORT" !stop current waveform
Continued on Next Page
Chapter 9 AFG Status 437