User`s manual
2. Unmask bit 4 (FREQ) in the Enable Register so that the event latched
into the Event Register will generate a Questionable Signal Status
Group summary bit.
STATus:QUEStionable:ENABle <unmask>
3. Unmask bit 3 (QUE) in the Service Request Enable Register so that a
service request is generated when the Questionable Signal Status
Group summary bit is received.
*SRE <unmask>
BASIC Program Example (QSSG_RQS)
1 !RE-STORE "QSSG_RQS"
2 !This program generates a service request when the output frequency
3 !generated by the SOURce:FREQuency2 subsystem differs from the
4 !programmed frequency by more than 1%.
5 !
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 Disp_msg
100 ENABLE INTR 7;2
110 !
120 !Set up the AFG to monitor the output frequency.
130 OUTPUT @Afg;"*CLS" !clear Status Byte and Event Registers
140 OUTPUT @Afg;"STAT:QUES:PTR 32" !pos transition of FREQ bit
150 OUTPUT @Afg;"STAT:QUES:ENAB 32" !allow FREQ bit to generate summary bit
160 OUTPUT @Afg;"*SRE 8" !enable summary bit to generate RQS
170 !
180 !Call subprogram which outputs a signal using the SOURce:FREQ2
190 !subsystem.
200 CALL Freq2
210 WAIT .1 !allow interrupts to be serviced
220 OFF INTR 7
230 END
240 !
250 SUB Freq2
260 Freq2: !Subprogram which outputs a 10 MHz square wave using the
270 !SOURce:FREQ2 subsystem.
280 COM @Afg
290 OUTPUT @Afg;"SOUR:ROSC:SOUR INT2;"; !reference oscillator
300 OUTPUT @Afg;":TRIG:STAR:SOUR INT2;"; !frequency generator
Continued on Next Page
Chapter 9 AFG Status 433