Agilent Technologies 8590 TV Converter Box User Manual


 
EXP Exponent
Example 1
This example converts the marker amplitude to power units.
10 OUTPUT
718;"IP;"
Initializes the spectrum analyzer
20 OUTPUT
718;"SNGLS;"
Activates the single-sweep
mode.
30 OUTPUT 718;"VARDEF
P-MW,O;"
Initializes variable
P..MW
to 0.
40 OUTPUT
718;"TS;MKPK
HI;"
Fino!s
highest peak of sweep.
50 OUTPUT
718;"EXP
P-MW,MKA,lO;"
Divides the marker amplitude by 10, raises the
value of the marker amplitude to the power of 10,
and stores the results in
P-MN?
60 OUTPUT
718;"P,MW?;"
70 ENTER 718;Number
80 DISP
Number;"mW"
90 END
Returns the value of
PM
to computer
Assigns value to computer variable.
Displays result on the computer screen.
Example 2
This example finds the natural exponential of
anumber
and uses the LOG command to return
the original source value of the EXP function.
10 OUTPUT
718;"VARDEF
E,XP,O;"
Dejlnes a variable called E-XI?
20 OUTPUT
718;"EXP
E,XP,2,2.30259;"
Fino!s
the natural exponential of 2.
30 OUTPUT
718;"E,XP?;"
Returns the natural exponent of 2.
40 ENTER
718;Value
50 PRINT Value
60 OUTPUT 718;"LOG
E-XP,E,XP,2.30259;"
Prints the value of the exponential.
Uses the log function on the exponential
value.
70 OUTPUT
718;"E_XP?;"
80 ENTER
718;Logvalue
90 PRINT
Logvalue
100 OUTPUT
718;"VARDEF
E-XPY,O;"
110 OUTPUT
718;"EXP
E-XPY,-5,2.30259;"
120 OUTPUT
718;"E_XPY?;"
130 ENTER
718;Value2
140 PRINT Value2
150 OUTPUT
718;"LOG
E,XPY,E-XPY,2.30259;"
160 OUTPUT
718;"E_XPY?;"
170 ENTER 718;Logval
180 PRINT Logval
190 END
The log of the exponential value is ap-
proximately 2.
Prints value.
Declares a variable called
E-XPY
Finds the natural exponential of -5.
Returns
the value of the natural exponen-
tial of
-5.
Prints the value of the exponential.
Uses the log function on the exponential
value.
The log of the exponential value is ap-
proximately -5.
5-154
Programming Commands