Agilent Technologies 4288A Programming Manual page 69

1khz/1mhz capacitance meter
Table of Contents

Advertisement

Lines 390 to 410
Line 430
Line 450
Reading out the measured result in ASCII transfer format using the :FETC?
Example 6-3
command (fetch_a.bas)
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280 Meas_wait:
290 Meas_end:
300
310
320
330
340
350
360
370
380
390
400
410
420
430
440
450
460
470
Chapter 6
Displays the measurement status, measured primary parameter result,
and measured secondary parameter result.
If the Comp_flag value is 1 (the comparator function is ON), displays
the comparator sorting result.
If the Comp_flag value is not 1 (the comparator function is OFF),
displays "Comparator : OFF."
DIM Buff$[9]
REAL Pri_para,Sec_para
INTEGER Meas_stat,Comp
INTEGER Comp_flag
!
ASSIGN @Agt4288a TO 717
OUTPUT @Agt4288a;":FORM ASC"
!
OUTPUT @Agt4288a;":INIT:CONT ON"
OUTPUT @Agt4288a;":TRIG:SOUR EXT"
!
OUTPUT @Agt4288a;":CALC:COMP?"
ENTER @Agt4288a;Comp_flag
!
! SRQ setting
!
OUTPUT @Agt4288a;":STAT:OPER:ENAB 16"
OUTPUT @Agt4288a;"*SRE 128"
OUTPUT @Agt4288a;"*CLS"
OUTPUT @Agt4288a;"*OPC?"
ENTER @Agt4288a;Buff$
!
! Triggering and data read
!
ON INTR 7 GOTO Meas_end
ENABLE INTR 7;2
PRINT "Waiting for External Trigger!"
GOTO Meas_wait
OFF INTR 7
OUTPUT @Agt4288a;":FETC?"
IF Comp_flag=1 THEN
ENTER @Agt4288a;Meas_stat,Pri_para,Sec_para,Comp
ELSE
ENTER @Agt4288a;Meas_stat,Pri_para,Sec_para
END IF
!
! Display results
!
PRINT USING "15A,X,D";"Meas. status
PRINT USING "15A,X,SD.5DE";"Pri. parameter:",Pri_para
PRINT USING "15A,X,SD.5DE";"Sec. parameter:",Sec_para
IF Comp_flag=1 THEN
PRINT USING "15A,X,K";"Comparator
ELSE
PRINT USING "19A";"Comparator
END IF
END
Reading Out Measured Result
Reading Out Measured Result
:",Meas_stat
:",Comp
: OFF"
67

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents