85
_____________________________________________________________________________________________
_____________________________________________________________________________________________
Program
comments
(2) Basic settings and testing
Summary
This program selects the test conditions for measurement on the 3532-50or
3522-50.
It carries out a single test measurement, and displays the result on the
screen.
It also displays the monitored voltage and current values on the screen.
Program List
10 OPEN "COM1:9600,N,8,1" FOR RANDOM AS #1
20 PRINT #1,":TRIG EXT"
30 PRINT #1,":AVER 8"
40 PRINT #1,":FREQ 1.234E3"
50 PRINT #1,":RANG:AUTO ON"
60 PRINT #1,":LEV V"
70 PRINT #1,":LEV:VOLT 1.00"
80 PRINT #1,":TRIG:DELA 0.02"
90 PRINT #1,":SPEE SLOW"
100 PRINT #1,":MEAS:ITEM 5,18"
110 PRINT #1,"*TRG;:MEAS?"
120 LINE INPUT #1,A$
130 PRINT #1,":DISP:MONI?"
140 LINE INPUT #1,B$
150 PRINT A$
160 PRINT B$
170 CLOSE
180 END
Line Comments
10 Open the RS-232C circuit file.
20 Select external trigger mode.
30 Set the count for averaging to 8.
40 Set the test frequency to 1.234 kHz.
50 Enable auto-ranging.
60 Select voltage measurement.
70 Set the test voltage to 1 V.
80 Set the trigger delay time to 20 ms.
90 Set the testing speed to SLOW.
100 Make a setting for Z (impedance),
θ
(phase angle), Rs (series
equivalent resistance), X (reactance) to return.
110 Query the sampling data and measurement value.
130 Query the monitored value for the test signal.
150-160 Display the test results.
170 Close the RS-232C circuit file.