Language Reference

STATE

STATE

Return or receive instrument state information.

Example

140

ALLOCATE State$[1000]

Allocate a string variable array

, State, for

 

 

 

 

storing the spectrum-analyzer

state in the

 

 

 

 

computer .

 

 

 

 

 

160

OUTPUT

723;"STATE?;"

Query spectrum-analyzer

state to computer .

 

170

ENTER

723 USING "-K";State$

Save

response

in

State

in the form of

 

 

 

 

ASCII

tokens, requiring

a special image

 

 

 

 

(\0K") to receive the data.

 

 

190

OUTPUT

723;"IP;"

Preset spectrum-analyzer

state.

 

210

OUTPUT

723;State$[5];

Restore spectrum-analyzer state by trans-

 

 

 

 

mitting the relevant

contents of State from

 

 

 

 

the computer

back

to the spectrum ana-

 

 

 

 

lyzer, starting

with 5 element in array .

Description The STATE command transmits all instrument-state information (including front-panel settings) from or to a computer.

Query Response Initial data in data byte is \STATE #A".

7-459