
Chapter 6
93
Reading/Writing Measurement Data
Reading/Writing Data
6. Reading/W
riting
2
. Cha
p
te
r T
itle
3
. Chap
te
r T
itle
4
. Chap
te
r T
itle
5. Chap
te
r T
itle
Me
asur
eme
n
t Da
ta
1250 PRINT "-- Trace A All Pass --"
1260 END IF
1270 !
1280 OUTPUT @Hp4294a;"TRAC B"
1290 OUTPUT @Hp4294a;"OUTPFAIP?"
1300 ENTER @Hp4294a;Fail_nop
1310 !
1320 IF Fail_nop>0 THEN
1330 OUTPUT @Hp4294a;"FORM4"
1340 OUTPUT @Hp4294a;"OUTPLIMF?"
1350 FOR I=1 TO Fail_nop
1360 ENTER @Hp4294a USING "#,K,K,K,K";Fail_res_b(I,1),Fail_res_b(I,
2),Fail_res_b(I,3),Fail_res_b(I,4)
1370 NEXT I
1380 PRINT "-- Trace B Failed Point --"
1390 PRINT "Frequency L_Limit U_Limit"
1400 FOR I=1 TO Fail_nop
1410 PRINT Fail_res_b(I,1),Fail_res_b(I,4),Fail_res_b(I,3)
1420 NEXT I
1430 ELSE
1440 PRINT "-- Trace B All Pass --"
1450 END IF
1460 !
1470 END
When to read/write data
If a read command is executed while a sweep is in progress, the data available when the
command execution starts is read. To ensure the accuracy of the data you obtain, be sure to
wait until the current sweep is complete before executing a read command. Considering the
time it takes for your program to be executed to completion, an efficient approach is to
synchronize the execution of a read command with the completion of the current sweep. To
do this, use the status report structure and the “*OPC?” command on page 259. See
“Waiting for the Completion of One or More Sweeps (Detecting the Completion of a
Measurement)” on page 74 for more information.
To write data properly, you need to execute a write command while no sweep is in
progress. You can write data while a sweep is in progress. In this case, however, the data
you write will be overwritten. You can suspend the sweep by executing the “HOLD”
command on page 318.
Содержание 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 ...