![Agilent Technologies 4294A Скачать руководство пользователя страница 55](http://html.mh-extra.com/html/agilent-technologies/4294a/4294a_programming-manual_2867882055.webp)
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"
Содержание 4294A
Страница 4: ...4 ...
Страница 18: ...18 Contents ...
Страница 24: ...24 Chapter1 To make effective use of this manual Other manuals attached to this unit ...
Страница 94: ...94 Chapter6 Reading Writing Measurement Data Reading Writing Data ...
Страница 110: ...110 Chapter7 Processing Measurement Results Analyzing Measurement Results ...
Страница 130: ...130 Chapter9 Communication with External Equipment Using the I O Ports Sample Program to Use the I O Port ...
Страница 136: ...136 Chapter10 Handling Errors Sample program for error handling ...
Страница 246: ...246 13 Application Sample Programs File Transfer Function ...
Страница 254: ...254 Chapter15 Setting the Display LCD Sample program for setting the LCD screen ...
Страница 507: ...Index Index 507 Index ...
Страница 508: ...508 Index Index ...
Страница 509: ...Index Index 509 Index ...
Страница 510: ...510 Index Index ...
Страница 511: ...Index Index 511 Index ...
Страница 512: ...512 Index Index ...
Страница 513: ...Index Index 513 Index ...
Страница 514: ...514 Index Index ...
Страница 515: ...Index Index 515 Index ...
Страница 516: ...516 Index Index ...
Страница 517: ...Index Index 517 Index ...
Страница 518: ...518 Index Index ...