1.25

Example: The following program, EIZ, constructs a custom menu to emulate the HP Solve application for a capacitive electrical circuit. The program uses the equation E = IZ, where E is the voltage, I is the current, and Z is the impedance.

Because the voltage, current, and impedance are complex numbers, you can’t use the HP Solve application to find solutions. The custom menu in EIZ assigns a direct solution to the leftshifted menu key for each var iable, and assigns store and recall functions to the unshifted and rightshifted keys — the actions are analogous to the HP Solve application. The custom menu is automatically stored in CST, replacing the previous custom menu — you can press

to restore the menu.

Program:

Comments:

 

 

«

 

DEG 15 SF 16 SF

Sets Degrees mode. Sets flags –15 and –16 to

2 FIX

display complex numbers in polar form. Sets

 

the display mode to 2 Fix.

{

Starts the custom menu list.

{ "E" { « 'E' STO »

Builds menu key 1 for E.

« I Z * DUP 'E' STO

Unshifted action: stores the object in E. Left

"E: " SWAP + CLLCD

shift action: calculates I × Z, stores it in E, and

1 DISP 3 FREEZE »

displays it with a label. Rightshift action: recal ls

« E » } }

the object in E.

 

{ "I" { « 'I' STO »

Builds menu key 2.

« E Z / DUP 'I' STO

 

"I:"SWAP + CLLCD

 

1 DISP 3 FREEZE »

 

« I » } }

 

{ "Z"{ « 'Z' STO »

Builds menu key 3.

« E I / DUP 'Z' STO

 

"Z:" SWAP + CLLCD

 

1 DISP 3 FREEZE »

 

« Z » } }

 

}

Ends the list.

MENU

Displays the custom menu.

»

 

 

 

`OEIZ

Stores the program in EIZ.

 

 

 

For a 10volt power supply at phase angle 0°, you m easure a current of 0.37amp at phase angle 68°. Fi nd the impedance of the circuit using EIZ.

@·J%EIZ%

Key in the voltage value. 10 ~@6 0

154 RPL Programming

Page 78
Image 78
HP 50g Graphing, 48gII Graphing manual @·J%Eiz%