Specifications
Chapter 7 159
Measurement Result Processing
Using Marker Function
7. Measurement Result
Processing
Example Programs for Marker Limit Test Function
Below are example programs for the limit test function. After sweeping, this executes a
limit test at the specified test marker position and displays the PASS/FAIL test results.
Example program using HTBasic
Example 7-3 shows an example program for the marker limit test. This program is saved
under the filename lim_test.htb on the sample programs disk. Below is an explanation of
the program’s details.
Line 70 Sets the GPIB address.
Lines 90 - 100 Substitutes a variable for the trace number.
Line 120 - 400 Substitutes variables for the stimulus value and the upper and lower
values of the test limit used in the limit test.
Line 440 Resets the E4991A.
Lines 460 - 480 Turns on Trace 1 and sets the measurement parameter and display
format. Turns off Trace 2.
Line 500 Sets the sweep parameter.
Lines 520 - 560 Sets the reference marker for the test marker and sets the stimulus
value and the upper and lower limits for the test limit.
Line 580 - 640 Sets Markers 1-8 for the test marker and sets the stimulus value and
the upper and lower limits for the test limit.
Line 660 Turns on the marker limit test function.
Lines 680 - 700 Sets the trigger source to the internal trigger and turns off the
continuous activation of the trigger system. Then, it resets the trigger
system and sets the trigger sequence to the idle state.
Line 730 Calls the sub-program for executing sweep.
Line 750 Executes auto-scale adjustment for the trace.
Lines 770 - 800 Reads the measured value of the reference marker and the result of the
limit test.
Lines 820 - 870 Reads the measured values of the positions of Markers 1 - 8 and the
limit test result.
Lines 890 - 900 Reads the overall decision results of the limit tests at all of the test
markers.
Lines 920 - 1010 Displays the test conditions and results of the limit test.
Lines 1050 - 1280 Refer to “Example Programs for Detecting Measurement End” on
page 114 for an explanation of the sub-program.