Language Reference
PDA
Example Perform amplitude distribution function on trace A.
90OUTPUT 723;"SNGLS;TS;" Activate
100 OPTION BASE 1 | Specify lower boundary of arrays to be 1. |
110OUTPUT 723;"TRDEF NN,20;" Dene
120OUTPUT 723;"MOV NN,0;" Store 0 in all elements of trace array .
130OUTPUT 723;"PDA NN,TRA,5;" Perform amplitude distribution function on
trace A.
140 | DIM | A(20) | Dimension |
150 | OUTPUT 723;"NN?;" | Query values stored in NN. | |
160 | ENTER 723;A(*) | Store values in computer array . | |
170 | FOR | I=1 TO 20 | Print values on computer display . |
180PRINT A(I)
190NEXT I
Description This command replaces the destination trace with the amplitude distribution function of the source trace. The data in the source trace is processed point
by point. The value of the bottom of the display is subtracted from each point, then the dierence is divided by the resolution value which has been rounded to the nearest integer. If the result falls within the range of the elements of the destination trace, the content of the corresponding destination trace element is increased by one. An error results if there is not enough memory to execute PDA.
For example, assume that the source trace is displayed on a logarithmic scale of 10 dB per division, which produces an amplitude range of 100 dB. Choosing a resolution parameter of 5 divides the displayed amplitude range of trace A (100 dB) into twenty
A resolution parameter of 5 yields a function that evaluates the amplitude of each point of trace A as follows. A