Language Reference
COMPRESS
Example | 110 | OUTPUT 723;"CENTERWL 1000NM;SP 300NM;" | Set measurement range . |
| 120 | OUTPUT 723;"TRDEF TRC,100;" | Change length of trace C to 100 |
|
|
| elements . |
| 130 | OUTPUT 723;"BLANK TRA;SNGLS;" | Blank trace A. A ctivate single- |
|
|
| sweep mode . |
| 140 | OUTPUT 723;"CLRW TRB;TS;" | Measure with trace B . Sweep |
|
|
| measurement range . |
| 150 | OUTPUT 723;"COMPRESS TRC,TRB,POS;" | Compress trace C to t trace B . |
| 160 | OUTPUT 723;"BLANK TRB;" | Blank trace B . |
| 170 | OUTPUT 723;"VIEW TRC;" | View trace C. |
Description The COMPRESS command stores a compressed copy of the source trace in a smaller destination trace. The source trace is divided into the same number
of intervals as points in the destination trace. The data within each source interval is compressed into a single value for the corresponding destination trace point. For example, if the source trace is 1000 points long, and the destination trace is 100 points long, COMPRESS divides the source trace into 100
The compression algorithms are as follows:
COMPRESS AVG selects the average value of the points in each interval. COMPRESS POS selects the highest value in each interval.
COMPRESS SMP (sample) selects the last point in the interval.