Agilent Technologies Infiniium 8000A Programmer's Reference Manual page 134

Table of Contents

Advertisement

1040
!
1050
!
1060
SUB Auto_msmts
1070
COM /Io/@Scope,@Path,Interface
1080
REAL Freq,Vpp
1090
DIM Vpp_str$[64]
1100
DIM Freq_str$[64]
1110
Bytes_read=0
1120
!
1130
!
Error checking on automatic measurements can be done using one of
two methods.
1140
!
The first method requires that you turn on results in the Measurement
subsystem
1150
!
using the command ":MEASure:SEND ON".
oscilloscope will return the
1160
!
measurement and a result indicator.
the measurement
1170
!
was successfully completed, otherwise a non-zero value is returned
which indicates
1180
!
why the measurement failed.
descriptions of result
1190
!
indicators.
return value of
1200
!
the measurement. Any measurement not made successfully will return
with the value
1210
!
+9.999e37.
unable to be
1220
!
performed or that insufficient waveform data was available to make
the measurement.
1230
!
1240
!
METHOD ONE
1250
!
1260
OUTPUT @Scope;":MEASure:SENDvalid ON"
1270
OUTPUT @Scope;":MEASure:VPP? CHANnel1"
1280
ENTER @Scope;Vpp_str$
1290
Bytes_read=LEN(Vpp_str$)
1300
CLEAR SCREEN
1310
IF Vpp_str$[Bytes_read;1]="0" THEN
1320
PRINT
1330
PRINT "VPP is ";VAL(Vpp_str$[1,Bytes_read-1])
1340
PRINT
1350
ELSE
1360
PRINT
1370
PRINT "Automated vpp measurement error with result
";Vpp_str$[Bytes_read;1]
1380
PRINT
1390
END IF
1400
!
Sample Programs
init.bas Sample Program
The second method simply requires that you check the
This could indicate that either the measurement was
6-40
When this is on, the
The result flag is zero if
See the Programmer's Manual for
!turn on results
!Query volts peak-to-peak
!Find length of string
!Check result value

Advertisement

Table of Contents
loading

Table of Contents