Language Reference
TDF | Format trace data: binary, block, |
| parameter units. |
|
|
| Item |
| Description |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| Default Mode | P |
|
|
|
|
| Example |
|
|
|
|
|
| |
110 | CLEAR | 723; |
|
| Preset spectrum | analyzer. |
|
|
120 | OUTPUT | 723;"IP;" |
|
|
|
|
|
|
130 | OUTPUT | 723;"VIEW | TRA;TRA[50]?;" |
| Query value of 50th element of trace A. |
|
| |
140 | ENTER | 723;M |
|
| Assign value to computer variable . |
|
| |
150 | DISP M |
|
| Print value. |
|
|
| |
160 | OUTPUT | 723;"TDF | A;" |
| When requested, | send data as an absolute, | ||
|
|
|
|
| (Trace data is preceded | by | ||
|
|
|
|
| #A.) |
|
|
|
170 | OUTPUT 723;"TRA?;" |
| Query |
|
| |||
180 | ENTER 723 USING "#,AA,W";Pound_a$,Number_of_bytes | Format computer so that it receives data until | ||||||
|
|
|
|
| the variable list is satised. \AA" expects two | |||
|
|
|
|
| characters (#A) and W reads data as a word | |||
|
|
|
|
|
|
|
| |
190 | ALLOCATE Data$[Number_of_bytes] |
| Dene a computer array for storing the infor- | |||||
|
|
|
|
| mation. The length of the array is as long as | |||
|
|
|
|
| the trace. |
|
|
|
200 | ENTER 723 USING |
| Store data in the computer array . |
|
| |||
210 | OUTPUT 723;"MOV TRA,0;" |
| Store zeroes in trace A. |
|
| |||
220 | OUTPUT 723;"TRA #I";Data$ |
| Send data from computer back to spectrum | |||||
|
|
|
|
| analyzer as an indenite , | The | ||
|
|
|
|
| \I#" indicates that ASCII code 10 (line feed) | |||
|
|
|
|
| marks the end of the transmission of data. |
|
|