Language Reference

TDF

Format trace data: binary, block, ASCII-decimal, measurement units, or

 

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,

 

 

 

 

 

block-data ￿eld.

(Trace data is preceded

by

 

 

 

 

 

#A.)

 

 

 

170

OUTPUT 723;"TRA?;"

 

Query trace-A amplitude information.

 

 

180

ENTER 723 USING "#,AA,W";Pound_a$,Number_of_bytes

Format computer so that it receives data until

 

 

 

 

 

the variable list is satis￿ed. \AA" expects two

 

 

 

 

 

characters (#A) and W reads data as a word

 

 

 

 

 

(16-bit words).

 

 

 

190

ALLOCATE Data$[Number_of_bytes]

 

De￿ne a computer array for storing the infor-

 

 

 

 

 

mation. The length of the array is as long as

 

 

 

 

 

the trace.

 

 

 

200

ENTER 723 USING "-K";Data$

 

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 inde￿nite , block-data ￿eld.

The

 

 

 

 

 

\I#" indicates that ASCII code 10 (line feed)

 

 

 

 

 

marks the end of the transmission of data.

 

 

7-478