
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.
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 ...