Language Reference

LOG

Example Calculate the decibel value of a power ratio using the LOG command.

20

CLEAR 723

Initialize analyzer .

30

OUTPUT 723;"IP;"

 

40

OUTPUT 723;"VARDEF POWER,0;"

De￿ne user-de￿ned variable , called PO WER,

 

 

equal to 0

50

OUTPUT 723;"LOG POWER,5,10;"

POWER = 10 2 LOG 5

60

OUTPUT 723;"POWER?;"

Query value of power to computer .

70

ENTER 723;N

Assign value to computer variable .

80

DISP USING "D.DD,K";N;"dB"

Display value on computer .

Description The LOG command computes the logarithm(base 10) of the source, multiplies it

by the scaling factor, then stores the result in the destination:

destination = (scaling factor) (LOG source)

When a trace is used, be sure it contains a complete sweep of measurement information.

7-231