Language Reference

BIT

 

 

Item

 

 

 

 

 

Description

 

 

 

Source or Destination

Amplitude

 

0

{ 10,000 measurement units for linear trace data in

TRA, TRB , TRC,

 

 

Range

 

 

 

trace range , or user-de￿ned trace .

 

 

 

 

 

 

 

032,768 { +32,767 measurement units for logarithmic trace data in

 

 

 

 

 

 

TRA, TRB , TRC, trace range , or user-de￿ned trace .

 

 

 

 

 

 

 

6 1.8 2 10308

when using

number , prede￿ned v ariable , or

 

 

 

 

 

 

user-de￿ned v ariable .

 

 

 

 

Destination-L ength Range

 

1

{ 2048

position

units.

 

 

 

 

Source-L ength Range

 

 

1

{ 2048

position

units. Default

is 800 position units when using TRA,

 

 

 

 

 

 

TRB, TRC. Truncated if longer than destination length. If shorter than

 

 

 

 

 

 

destination length, last element is extended for operation.

 

 

Example

160

OUTPUT 723;"VARDEF

ERROR,0;"

De￿ne user-de￿ned variable

ERROR equal to

 

 

 

 

 

 

 

 

0.

 

 

 

 

170

OUTPUT

723;"BIT

ERROR,STB,5;"

Store value of bit 5 in ERROR.

 

180

OUTPUT

723;"ERROR?;"

 

Query value of ERROR.

 

 

 

190

ENTER

723;Error

 

 

 

 

Assign value to computer variable, Error.

200IF NOT Error THEN DISP NO If Error equals zero, display \NO" on com- puter display .

210 DISP "ERROR PRESENT"

Display \ERROR PRESENT" on computer

 

display .

Description The BIT command stores the state (0 or 1) of a speci￿ed bit in the destination. When using TRA, TRB, TRC, or trace range for source, use

SNGLS and TS to be sure data re￿ects one complete sweep. TRDEF required when using user-de￿ned trace. VARDEF required when using user-de￿ned variable.

7-72