Agilent Technologies 8360 manual Art

Models: 8360

1 428
Download 428 pages 31.03 Kb
Page 121
Image 121

Queries,ProgramExample4

 

followingrespTheonsewingdataprogram:exapleformats.demonstratesClearandresetthetheuseofcontrollerquerycommandstypeinandthe

 

543210

 

REMOABORTLOCLE

 

 

 

 

 

 

*RST"

LEVEL-5

dBm;STATE

 

ON"

 

 

876

 

 

CLSource=719

 

 

 

 

 

 

9

0

 

 

 

 

 

 

 

 

F

 

 

 

 

CW?"

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

POWER:STATE?"

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

Source;W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

MODE?"

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

Presnt

 

 

pow

 

 

state

 

is

:

 

";W

 

 

 

 

4

 

 

 

 

 

 

 

 

 

ON/OFF

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

surce

CW

frequency

is

 

:";F/1.E+6;"MHz"

 

 

4

 

 

 

 

Source;weptfreqlimitsfrequency

:"

 

 

 

 

 

 

 

 

 

 

6

 

DIMA$[10]

 

 

$

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

A

 

 

 

 

 

mode

is

 

:"&A$

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8

 

 

 

 

 

 

 

 

's

 

 

 

 

 

 

 

 

 

 

19

 

OUPUT

 

 

 

 

 

 

 

 

 

CW?MIN"

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

FREQ:START?;STOP?"

 

 

 

 

 

 

 

 

 

 

3

 

 

TER

 

 

 

 

X,Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

END

 

 

MinimumsorceCWfrequencyis:";A/1.E+6;"MHz"

 

270

 

 

"

 

Stop";Y/1.E+6;"MHz"

 

 

 

 

 

 

 

 

 

 

 

6

 

PRINT

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

art

 

";X/1.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ProgramRuntheprogram.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

7

 

 

Commentstheurcetoitsinitialstateforp

 

variable.

 

 

 

 

1

 

Assign

thesource's

GPIBaddress

to

 

 

 

 

 

 

8

 

Setup

 

source

werlevelusinginitializecompoundmessage.

 

 

 

 

2to50:AbrtanyGPIB

 

 

 

and

 

 

 

 

theGPIB

 

 

 

 

6

 

Clearthecomputer'sdiplaactivity.

 

 

 

 

 

 

 

 

 

 

 

 

 

interface.

 

 

 

valueofthesource'sCWfrequency.

 

 

 

 

 

9

 

Query

 

 

 

 

 

 

 

alwaysis

returnedin

 

 

se

talunits,Hzogrammingthecaseof

 

 

 

 

 

0

En

 

 

 

 

queryrespo

 

tothevariable'F'.Theresponse

 

 

 

 

1Printer

 

CWFrequencyi

 

MHz

thecomputerdisplay.

-95

 

 

 

12Query0: thevaluefundamenofBooleanGettingfunction,StartedPOWER:STATEProgramming1.

 

 

 

frequency.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Page 121
Image 121
Agilent Technologies 8360 manual Art