
Chapter 4
55
Preparing For Accurate Measurement
Adapter Setting
1. Ch
apter
T
itle
2
. Cha
p
te
r T
itle
3
. Chap
te
r T
itle
4
. Gettin
g Read
y Fo
r
5. Chap
te
r T
itle
Accu
ra
te
M
e
as
ur
em
e
n
t
Lines 210 to 310 These lines measure phase data, open data, short data and load data by
using the subprogram FNAdap_setup. If an error is detected after any
measurement, the program is terminated.
Lines 330 to 350 These lines calculate setup data and store them in non-volatile
memory.
Lines 360 to 380 These lines indicate the message of completion and terminate the
program.
The following describes FNAdap_setup, a data measurement subprogram for calculating
setup data, which is shown in lines 420 to 800.
Line 450
This line clears the status byte register.
Lines 460 to 470 These lines prompt for the connection of the standard for measurement
specified by Standard$ and wait for you to press the y key and the
return key.
Lines 490 to 500 These lines set the branch target for an SRQ interrupt to make the SRQ
interrupt effective.
Lines 510 to 600 These lines send the commands to execute the measurement specified
by Standard$.
Line 620
This line waits for measurement to finish.
Lines 640 to 740 These lines check whether an error has occurred during measurement.
If no error occurred, then these lines indicate the message of
measurement completion and return a 0 as the return value from the
subprogram. If an error occurred, then these lines indicate an error
message, execute the command that suspends data measurement, and
return -1 as the return value from the subprogram.
Lines 760 to 780 These lines are steps for any key other than the y key pressed in
response to line 470. These lines execute the command that suspends
data measurement and then return -1 as the return value from the
subprogram.
Example 4-1
Data measurement for adapter setting
10 DIM Adapter$[9],Buff$[9]
20 INTEGER Scode,Result
30 CLEAR SCREEN
40 IF SYSTEM$("SYSTEM ID")="HP4294A" THEN
50 ASSIGN @Hp4294a TO 800
60 Scode=8
70 ELSE
80 ASSIGN @Hp4294a TO 717
90 Scode=7
100 END IF
110 Adapter$="APC7"
120 !
130 OUTPUT @Hp4294a;"PRES"
140 OUTPUT @Hp4294a;"*OPC?"
150 ENTER @Hp4294a;Buff$
160 OUTPUT @Hp4294a;"E4TP "&Adapter$
170 !
180 OUTPUT @Hp4294a;"ESNB 256"
190 OUTPUT @Hp4294a;"*SRE 4"
Summary of Contents for 4294A
Page 4: ...4 ...
Page 18: ...18 Contents ...
Page 24: ...24 Chapter1 To make effective use of this manual Other manuals attached to this unit ...
Page 94: ...94 Chapter6 Reading Writing Measurement Data Reading Writing Data ...
Page 110: ...110 Chapter7 Processing Measurement Results Analyzing Measurement Results ...
Page 136: ...136 Chapter10 Handling Errors Sample program for error handling ...
Page 246: ...246 13 Application Sample Programs File Transfer Function ...
Page 254: ...254 Chapter15 Setting the Display LCD Sample program for setting the LCD screen ...
Page 507: ...Index Index 507 Index ...
Page 508: ...508 Index Index ...
Page 509: ...Index Index 509 Index ...
Page 510: ...510 Index Index ...
Page 511: ...Index Index 511 Index ...
Page 512: ...512 Index Index ...
Page 513: ...Index Index 513 Index ...
Page 514: ...514 Index Index ...
Page 515: ...Index Index 515 Index ...
Page 516: ...516 Index Index ...
Page 517: ...Index Index 517 Index ...
Page 518: ...518 Index Index ...