Language Reference
TRA/TRB/TRC
Item |
|
| Description |
Amplitude Range | 0 | { | 10,000 measurement units for linear trace data. |
| 032,768 { +32,767 measurement units for logarithmic trace data. | ||
Length Range | 3 | { | 2048 position units. Default is 800 position units when using TRA, |
| TRB, TRC. |
Example Use TRC to store data in a trace.
10 | OUTPUT 723;"BLANK TRA;" | Blank trace A. | |
20 | OUTPUT 723;"TRDEF TRC,3;" | Dene trace C as a | |
|
|
| trace. |
30 | OUTPUT | 723;"TRC | Store amplitude values in trace |
|
|
| C. |
40 | OUTPUT | 723;"VIEW TRC;" | View trace C. |
Transmit trace data to the computer.
10 | OUTPUT | 723;"TDF | A;" | When requested, | send data as an absolute, | |
|
|
|
| (Trace data is preceded by | ||
|
|
|
| #A.) |
|
|
20 | OUTPUT | 723;"TS;" |
| Sweep trace A. |
|
|
30 | OUTPUT | 723;"VIEW | TRA;" | Stop sweeping trace A and store measurement | ||
|
|
|
| results . |
|
|
40 | OUTPUT | 723;"TRA?;" | Query | information. | ||
50 | ENTER 723 USING "#,AA,W";Pound_a$,Number_of_bytes |
| ||||
Format computer to receive data until | the variable list is | satised. | \AA" expects two | |||
characters (#A) and W reads data as a |
| |||||
60 | ALLOCATE Data$[Number_of_bytes] |
|
| |||
Dene a computer array for storing the | trace information. | The length of the computer | ||||
array is as long as the trace . |
|
|
| |||
70 | ENTER 723 USING | Store data in the computer array . | ||||
80 | OUTPUT 723;"MOV TRA,0;" | Store zeroes in trace A. |
| |||
90 | OUTPUT 723;"TRA#I";Data$ | Send data from computer back to spectrum | ||||
|
|
|
| analyzer as an indenite block data eld. | ||
|
|
|
| The \#I" indicates that ASCII code 10 (line |
feed) marks the end of the transmission of data.
100OUTPUT 723;"TDF P;TRA[50]?;" Query trace data as decimal values in absolute units (dBm). Query only the ftieth element.
110 | ENTER 723;N | Assign data to variable . |
120 | DISP N | Print value . |