09.12.2012 Views

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EXP Exponent<br />

Example 1<br />

This example converts the marker amplitude to power units.<br />

10 OUTPUT 718;"IP;" Initializes the spectrum analyzer<br />

20 OUTPUT 718;"SNGLS;" Activates the single-sweep mode.<br />

30 OUTPUT 718;"VARDEF P-MW,O;" Initializes variable P..MW to 0.<br />

40 OUTPUT 718;"TS;MKPK HI;" Fino!s highest peak of sweep.<br />

50 OUTPUT 718;"EXP P-MW,MKA,lO;" Divides the marker amplitude by 10, raises the<br />

value of the marker amplitude to the power of 10,<br />

60 OUTPUT 718;"P,MW?;"<br />

70 ENTER 718;Number<br />

80 DISP Number;"mW"<br />

90 END<br />

Example 2<br />

<strong>and</strong> stores the results in P-MN?<br />

Returns the value of PM to computer<br />

Assigns value to computer variable.<br />

Displays result on the computer screen.<br />

This example finds the natural exponential of anumber <strong>and</strong> uses the LOG comm<strong>and</strong> to return<br />

the original source value of the EXP function.<br />

10 OUTPUT 718;"VARDEF E,XP,O;" Dejlnes a variable called E-XI?<br />

20 OUTPUT 718;"EXP E,XP,2,2.30259;" Fino!s the natural exponential of 2.<br />

30 OUTPUT 718;"E,XP?;" Returns the natural exponent of 2.<br />

40 ENTER 718;Value<br />

50 PRINT Value<br />

60 OUTPUT 718;"LOG E-XP,E,XP,2.30259;"<br />

70 OUTPUT 718;"E_XP?;"<br />

80 ENTER 718;Logvalue<br />

90 PRINT Logvalue<br />

100 OUTPUT 718;"VARDEF E-XPY,O;"<br />

110 OUTPUT 718;"EXP E-XPY,-5,2.30259;"<br />

120 OUTPUT 718;"E_XPY?;"<br />

130 ENTER 718;Value2<br />

140 PRINT Value2<br />

150 OUTPUT 718;"LOG E,XPY,E-XPY,2.30259;"<br />

160 OUTPUT 718;"E_XPY?;"<br />

170 ENTER 718;Logval<br />

180 PRINT Logval<br />

190 END<br />

5-154 Programming Comm<strong>and</strong>s<br />

Prints the value of the exponential.<br />

Uses the log function on the exponential<br />

value.<br />

The log of the exponential value is approximately<br />

2.<br />

Prints value.<br />

Declares a variable called E-XPY<br />

Finds the natural exponential of -5.<br />

Returns the value of the natural exponential<br />

of -5.<br />

Prints the value of the exponential.<br />

Uses the log function on the exponential<br />

value.<br />

The log of the exponential value is approximately<br />

-5.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!