Language Reference

LIMITEST

Testing with Limit Lines Stored in Traces

3.LIMISEG de￿nes the amplitude and wavelength characteristics of each of the limit-line segments.

4.LIMIREL determines whether the values of the limit line are absolute or are positioned relative to the reference-level and center wavelength settings.

Next, execute LIMITEST ON and sweep the measurement range. Executing LIMITEST ON automatically copies the contents of the limit-line table into the LIMIT HI and LIMIT LO trace arrays and compares active trace data to the line parameters.

When LIMIREL has been executed to make limit-line values relative, remember that changing the amplitude or wavelength range during limit-line testing will change the limit-line parameters. During single-sweep mode, LIMITEST ON compares the limit line to trace A data only. Executing LIMITEST OFF erases the LIMIT HI and LIMIT LO trace arrays.

First, use the LIMISAV command to store the contents of the limit-line table if needed for future use, then erase the contents of the limit-line table:

40 OUTPUT 723;"LIMIDEL;"

Next, use the TRDEF command to de￿ne a trace array called LIMIT HI or LIMIT LO. Store upper limits in LIMIT HI and lower limits in LIMIT LO. Below, LIMIT HI is de￿ned to contain 800 wavelength amplitude pairs:

90 OUTPUT 723;"TRDEF LIMIT_HI,800;"

Next, store limit-line parameters in the trace array. Use the TRA, TRB, or TRC command to enter limit-line data point-by-point. If preferred, use swept trace data as a limit line.

In the example below, limit-line parameters for trace B are stored in LIMIT HI. Note that the MOV command performs the transfer.

200OUTPUT 723;"SNGLS;CLRW TRB;TS;MOV LI MIT_HI,TRB;"

Store trace B data as a limit line called LIMIT HI.

210OUTPUT 723;"BLANK TRB;"

Turn trace B o￿.

Next, execute LIMITEST ON and sweep the measurement range.

220 OUTPUT 723;"LIMITEST ON;"

Execute the limit test on trace A.

7-217