OwenDuffy.net 


Software for HP calculators

Binary objects for download are tested on HP50g, and should also work on HP-49*. The text format should load and run on HP-48*.

VSWR

Directory object containing a set of VSWR related functions written in User RPL.

Download: binary, text

VSWR object  source code in text format.
%%HP: T(3)A(R)F(.);
DIR
FRLVSWR
\<< FRLrho rVSWR
\>>
LOVSWR
\<< LOrho rVSWR
\>>
VLVSWR
\<< SWAP Vrho SWAP rLrho rVSWR
\>>
rLrho
\<< 10. / ALOG * DUP
IF 1. >
THEN DROP "INVALID rho" DOERR
END \->NUM
\>>
LOrho
\<< LOGAMMA ABS
\>>
LOGAMMA
\<< DUP 3 ROLLD SWAP DUP 4 ROLLD + 3 ROLLD - / INV \->NUM
\>>
FRLrho
\<< 3 ROLLD / \v/ INV SWAP rLrho
\>>
Vrho
\<< DUP 1. + SWAP 1. - SWAP / \->NUM
\>>
rVSWR
\<< DUP 1. + SWAP 1. - ABS / \->NUM
\>>
FRrho
\<< / \v/ INV \->NUM
\>>
SLLOSS
\<< DUP 3. ROLLD 2. / VLVSWR SWAP MLLOSS
\>>
MLLOSS
\<< SWAP DUP 2. * SWAP SQ 1. + SWAP / *
\>>
LLLOSS
\<< DUP 3. ROLLD -2. / VLVSWR SWAP MLLOSS
\>>
END

 

FRLVSWR

Calculates VSWR at a remote point.

Argument Notes
Forward Power Watts
Reverse Power Watts
Loss from the point of measurement to the remote point dB, +ve in load direction, -ve in source direction

LOVSWR

Calculates VSWR.

Argument Notes
Zl Complex load impedance
Zo Complex characteristic impedance

 

VLVSWR

Calculates VSWR at a remote point.

Argument Notes
VSWR  
Loss from the point of measurement to the remote point dB, +ve in load direction, -ve in source direction

 

rLrho

Calculates rho (magnitude of the complex reflection coefficient) at a remote point.

Argument Notes
rho magnitude of complex reflection coefficient
Loss from the point of measurement to the remote point dB, +ve in load direction, -ve in source direction

 

LOrho

Calculates rho (magnitude of the complex reflection coefficient).

Argument Notes
Zl Complex load impedance
Zo Complex characteristic impedance

 

LOGAMMA

Calculates Gamma (complex reflection coefficient).

Argument Notes
Zl Complex load impedance
Zo Complex characteristic impedance

 

FRLrho

Calculates rho (magnitude of the complex reflection coefficient) at a remote point.

Argument Notes
Forward Power Watts
Reverse Power Watts
Loss from the point of measurement to the remote point dB, +ve in load direction, -ve in source direction

 

Vrho

Calculates rho (magnitude of the complex reflection coefficient).

Argument Notes
VSWR  

 

rVSWR

Calculates VSWR.

Argument Notes
rho magnitude of complex reflection coefficient

 

FRrho

Calculates rho (magnitude of the complex reflection coefficient).

Argument Notes
Forward Power Watts
Reverse Power Watts

 

SLLOSS

Calculates approximate line loss under mismatch.

Argument Notes
Source end VSWR  
Loss of line section dB

 

MLLOSS

Calculates approximate line loss under mismatch.

Argument Notes
Midpoint VSWR  
Loss of line section dB

 

LLLOSS

Calculates approximate line loss under mismatch.

Argument Notes
Load end VSWR  
Loss of line section dB

© Copyright: Owen Duffy 1995, 2021. All rights reserved. Disclaimer.