Chapter 3
33
Setting Up Measurement Conditions and Display
Sample Program
3
. S
e
tti
ng u
p
M
eas
ur
em
ent
Con
d
itio
n an
d Di
sp
lay
Lines 580 to 640 If Dev_mode_pri$ is “OFF,” specifies the deviation measurement
mode for the primary parameter as OFF. Otherwise, specifies the
deviation measurement mode for the primary parameter as ON and
specifies the deviation display method and the deviation reference
value as Dev_mode_pri$ and Dev_ref_pri, respectively.
Lines 650 to 710 If Dev_mode_sec$ is “OFF,” specifies the deviation measurement
mode for the secondary parameter as OFF. Otherwise, specifies the
deviation measurement mode for the secondary parameter as ON and
specifies the deviation display method and the deviation reference
value as Dev_mode_pri$ and Dev_ref_sec, respectively.
Line 720
Specifies the page number of the instrument settings display area as
Page_no.
Lines 740 to 750 Specifies the ON/OFF state of the current monitor and that of the
voltage monitor for the measurement signal level as I_mon$ and
V_mon$, respectively.
Lines 760 to 810 If Beep_mode$ is “OFF,” specifies the beep output as OFF. Otherwise,
specifies it as ON and the beep mode as Beep_mode$.
Line 830
Saves the instrument settings into the built-in nonvolatile memory
(save location number: Save_no).
Example 3-1
Setting up measurement conditions and display (setup.bas)
10
DIM Pri$[9],Sec$[9],Range$[9],Meas_time$[9]
20
DIM Disp$[9],Fix_msd$[9],Dev_mode_pri$[9],Dev_mode_sec$[9]
30
DIM I_mon$[9],V_mon$[9],Beep_mode$[9]
40
REAL Freq,Level,Delay,Dev_ref_pri,Dev_ref_sec
50
INTEGER Cable,Ave,Digit,Page_no,Save_no
60
!
70
ASSIGN @Agt4288a TO 717
80
!
90
Pri$="CP"
! Meas. Parameter
Primary
: Cp
100
Sec$="D"
!
Secondary: D
110
Freq=1000
! Test Signal
Frequency: 1 kHz
120
Level=.5
!
Level
: 500 mV
130
Range$="AUTO"
! Meas. Range
: Auto
140
Meas_time$="LONG"
! Meas. Time Mode
: Long
150
Cable=0
! Cable Length
: 0 m
160
Ave=4
! Averaging Factor
: 4
170
Delay=.001
! Trigger Delay Time
: 1 ms
180
!
190
Disp$="ON"
! Display
: On
200
Digit=5
! Digit
: 5
210
Fix_msd$="OFF"
! Fixed Decimal Point Display : Off
220
Dev_mode_pri$="PCNT"
! Deviation
[Pri]
Mode
: Percent
230
Dev_ref_pri=1.0E-8
!
Measurement
Ref.Value: 10 nF
240
Dev_mode_sec$="OFF"
!
[Sec]
Mode
: Off
250
Dev_ref_sec=0
!
Ref.Value: 0
260
Page_no=4
! Meas. Setting Page Number
: 4
270
!
280
I_mon$="OFF"
! Test Signal
Current
: Off
290
V_mon$="ON"
!
Level Monitor
Voltage
: On
300
Beep_mode$="FAIL"
! Beep mode
: Fail
310
Save_no=9
! Save Location Number
: 9
320
!
330
OUTPUT @Agt4288a;":SYST:PRES"
340
OUTPUT @Agt4288a;":CALC1:FORM "&Pri$
350
OUTPUT @Agt4288a;":CALC2:FORM "&Sec$
Summary of Contents for 4288A
Page 18: ...16 Chapter1 Making Effective Use of This Manual How To Use This Manual ...
Page 212: ...210 AppendixA Manual Changes Manual Changes ...
Page 248: ...246 AppendixB Information for Replacing 4278A with 4288A Comparison of Interfaces ...
Page 258: ...256 AppendixC Status Reporting System Using the Status Reporting System ...
Page 288: ...286 Index Index ...