Agilent Technologies E5071C Manual page 995

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

E5071C
230 OUTPUT @Agte507x;":CALC1:PAR2:SEL"
240 OUTPUT @Agte507x;":CALC1:FORM LOG"
250 OUTPUT @Agte507x;"*OPC?"
260 ENTER @Agte507x;Buff$
270 GOTO Skip_err_proc
280 Err_proc: OFF INTR 7
290 OUTPUT @Agte507x;";:SYST:ERR?"
300 ENTER @Agte507x;Err_no,Err_mes$
310 PRINT "Error occurred!!"
320 PRINT " No:";Err_no,"Description: "&Err_mes$
330 PRINT "PROGRAM INTERRUPT!!"
340 GOTO Prog_end
350 Skip_err_proc: PRINT "PROGRAM DONE."
360 Prog_end: END
Description
Line 40
Assigns a GPIB address to the I/O pass.
Lines 60 to 70
These lines enable bits 2, 3, 4 and 5 in the standard event status register
and set bit 5 to 1 in the service request enable register.
Lines 80 to 100
These lines clear the status byte register, the standard event status
register, and the error queue.
Lines 120 to 130
These lines set the branch target for an SRQ interrupt to enable SRQ
interruptions.
Lines 140 to 260
These lines set the measurement parameters and their data formats for
traces 1 and 2. An invalid parameter is given to the data format setting for
trace 2, causing an error.
Lines 280 to 330
These lines define an error handler in the following way.
Lines 290 to 300: These lines retrieve the error number and error
messages for the error from the error queue.
1222

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents