6
89
Working with Automatic Test Systems
Limit Test
6. W
o
rking
with Automatic
T
e
st S
ystems
330 OUTPUT @Agte5052;":CALC:FP:TRAC:LIM:UPP:SEGM:DATA ";Udata(*)
340 OUTPUT @Agte5052;":CALC:FP:TRAC:LIM:LOW:SEGM:DATA ";Ldata(*)
350 !
360 OUTPUT @Agte5052;":TRIG:MODE FP1"
370 OUTPUT @Agte5052;":TRIG:FP:SOUR BUS"
380 OUTPUT @Agte5052;":INIT:FP:CONT OFF"
390 OUTPUT @Agte5052;":INIT:FP:IMM"
400 OUTPUT @Agte5052;"*TRG"
410 !
420 REPEAT
430 OUTPUT @Agte5052;":STAT:OPER:COND?"
440 ENTER @Agte5052;St
450 UNTIL BIT(St,4)=0
460 OUTPUT @Agte5052;"DISP:FP:TRAC:LIM:LINE ON"
470 OUTPUT @Agte5052;"DISP:FP:LIM:FSIG ON"
480 OUTPUT @Agte5052;"CALC:FP:TRAC:LIM:STAT ON"
490 PRINT "End"
500 ASSIGN @Agte5052 TO *
510 Prog_end: END
Reading Limit Lines from Files
You can create any upper and lower value for limit lines in the specified format in advance,
and read the file later to specify the limit lines.
For information about creating upper and lower values for limit lines, refer to the chapter
describing “Data analysis and Result Output” in the User’s Guide.
The file must be saved in the CSV format (with the extension *.csv).
The program is described in detail below:
NOTE
Save the upper limit values together into one file, and the lower limit values into another.
Line 110
Define the data array (variable) for the limit lines.
Line 190 to 260
When bit 4 of the operation status condition register changes from “1”
to “0” (negative transition), bit 4 of the operation status event register
is set to “1”.
Line 290
Read the upper limit value for the limit lines from file.
Line 300
Read the lower limit value for the limit lines from file.
Line 320 to 360
Trigger the instrument.
Line 380 to 410
It repeats to the measurement end.
Line 430
Display the limit lines.
Line 440
Display the determination result. (For fail only.)
Line 450
Activate the limit test function.
Example 6-3
Reading Limit Lines from File
110 DIM Ufile$[20],Lfile$[20],Buff$[9]
120 INTEGER St
130 !
Summary of Contents for E5052A
Page 4: ...4 ...
Page 28: ...28 1 Making Effective Use of This Manual How to Use This Manual ...
Page 51: ...3 51 Making a Measurement Trigger System 3 Making a Measurement Figure 3 1 Trigger system ...
Page 58: ...58 3 Making a Measurement Waiting for End of measurement ...
Page 76: ...76 4 Reading Writing Measurement Data Entering Data in a Trace ...
Page 82: ...82 Chapter5 Saving and Recalling File Management Managing Files ...