Agilent Technologies 4396B Gpib Programming Manual page 156

Network/spectrum/impedance analyzer
Hide thumbs Also See for 4396B:
Table of Contents

Advertisement

When both an external controller and Instrument BASIC are used at the same
Note
time, the
external controller queries the instrument while the 4396B is sweeping when
triggered by
normally (In the worst case, a system halt occurs).
To avoid this problem, it is necessary to use an SRQ interrupt technique that
uses the status register. In this case, the external controller waits to send query
commands until Instrument BASIC completes the execution of the
command.
For External Controller
For Instrument BASIC
B-6 BASIC Commands Speci c to 4396B
command occasionally does not terminate normally. If the
10 REAL Meas(1)
20 ASSIGN @Hp4396 TO 717
30 OUTPUT @Hp4396;"*CLS; *OPC?"
40 ENTER @Hp4396;Opc
50 OUTPUT @Hp4396;"OSPT 0"
60 ON INTR 7 GOTO Anaend
70 OUTPUT @Hp4396;"PROG:STAT RUN"
80 !
90 Start:!
100 OUTPUT @Hp4396;"*CLS; *OPC?"
110 ENTER @Hp4396;Opc
120 ENABLE INTR 7;2
130 Waiting: GOTO Waiting
140 Anaend:!
150 OUTPUT @Hp4396;"PROG:NUMB? MEAS"
160 ENTER @Hp4396;Meas(*)
170 PRINT Meas(*)
180 OUTPUT @Hp4396;"*CLS; *OPC?"
190 OUTPUT @Hp4396;"PROG:STAT CONT"
200 GOTO Start
210 END
10 REAL Meas(1)
20 ASSIGN @Hp4396 TO 800
30 OUTPUT @Hp4396;"OSE 16384;OSNT 16384;*SRE 128"
40 !
50 LOOP
60 EXECUTE "ANAOCH1;ANAODATA;ANARFULL"
70 EXECUTE "SING"
80 EXECUTE "OUTPMAX?"
90 Meas(0) = READIO(8,0)
100 Meas(1) = READIO(8,1)
110 PAUSE
120 END LOOP
, the
command does not terminate

Advertisement

Table of Contents
loading

Table of Contents