Using Variables and Traces

Formatting Trace-Data Output

Computer Formats

Analyzer Format

Computer-Format Requirements

 

Example in HP BASIC

 

 

 

 

 

 

 

 

 

 

 

 

 

TDF M

Free ￿eld

 

 

 

 

 

 

10 ENTER 723;Amplitude

 

 

 

 

 

 

 

 

 

 

 

 

 

TDF P

Free ￿eld

 

 

 

 

 

 

10 ENTER 723;Amplitude

 

 

 

 

 

 

 

TDF B

Binary. Read twice for each value if data size

10 ASSIGN @Sa T O 723;FORMA T OFF

 

is words. (See MDS.)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

20

ENTER @Sa USING \#,W";Z(*)

 

 

 

 

 

 

 

 

 

TDF A

Initially read four values (for #, A, and

 

10

ASSIGN @Sa T O 723;FORMA T OFF

 

length) in an y format. Use integer format for

 

 

 

 

 

 

 

 

data that follows.

(Refer

to

MDS)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ENTER

@Sa;P ounda,Num

 

bytes

 

 

 

 

 

 

 

 

 

20

 

 

 

 

 

 

 

 

 

 

30

ALLOCATE INTEGER Z(1:Num

 

bytes/2)

 

 

 

 

 

 

 

 

 

40

ENTER

@Sa;Z(*)

 

 

 

 

 

 

 

 

 

 

 

 

TDF I

Initially

read

two

values

(for

#,

I) in

any

10

ASSIGN

@Sa TO 723;FORMA T OFF

 

format.

Use

integer format

for

data

that

 

 

 

 

 

 

 

 

follows.

(Refer to

TDF)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

20

ENTER

@Sa;P oundi

 

 

 

 

 

 

 

 

 

30

ENTER

@Sa USING \#,W";Z(*)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The following examples illustrate the four ways trace data can be formatted for return to the computer. The last example also shows how to send the trace data from the computer back to the analyzer. To return trace data as decimal numbers in parameter units (TDF P):

10

OUTPUT 723;"TDF P;"

Return amplitude of trace element in parame-

20

OUTPUT 723;"TRA[10]?;"

ter units .

30

ENTER 723;N

Assign value of ( 010.33) to N.

To return trace data as integers in measurement units (TDF M):

10

OUTPUT

723;"TDF M;"

Activate measurement-unit format.

20

OUTPUT

723;"TRA[10]?;"

Return amplitude of trace element in measure-

 

 

 

ment units .

30

ENTER 723;N

Assign value ( 01033) to N.

To return trace data as binary numbers with data size of one word (TDF B).

10 INTEGER Z(1:800)

Declare integer array .

2-13