Hp 7042Xa Trapping Errors Using Srq Program Example; Overview - HP 70427A User Manual

Table of Contents

Advertisement

Overview

HP 7042XA Trapping Errors Using SRQ program Example

HP 7042XA Trapping Errors Using SRQ
program Example
The following sample program enables the HP 7024XA SRQ and then
intentionally generates errors in the HP 7024XA causing an HP-IB
interrupt. The program attempts to set up the HP 7024XA to output a 2.4
GHz signal at +30 dBm with a 100 MHz reference loop phase-lock-loop
bandwidth of 53 Hz, a 600 MHz reference loop phase-lock-loop bandwidth
of 4KHz, and a tuning sensitivity of .05 ppm/V. To generate errors, the
program contains two defects. First, the desired output power is beyond the
specifications of the HP 7024XA and second, the command to set 600 MHz
reference phase-lock-loop bandwidth to 4 KHz has a syntax error. After
detecting an interrupt, the program will check and display the HP 7024XA
errors and pause. Pressing proceed at this point will continue the program
and a second interrupt will be generated and the error displayed.
Comments for the program follow in the program listing.
10
COM Error_message$[40]
20
!
30
!
40
OUTPUT 728;"*RST"
50
!
60
!
70
OUTPUT 728;"inst?"
80
ENTER 728;Instrument_type
90
IF Instrument_type<>4THEN
100
OUTPUT 728;"INST 4"
110
END IF
120
!
130
!
140
OUTPUT 728;"*CLS"
150
OUTPUT 728;"*SRE 32"
160
OUTPUT 728;"*ESE 4"
170
!
180
!
190
ON INTR 7 CALL Srq_status
200
ENABLE INTR 7;2
210
!
220
!
230
! START OF TEST PROGRAM
Remote Programming
HP 70427A/HP 70428A User's Guide 7-23

Advertisement

Table of Contents
loading

This manual is also suitable for:

70428a

Table of Contents