Professional Documents
Culture Documents
NPFun 32 Help
NPFun 32 Help
Author:
Matti Manninen
1. GENERAL
The network planning function library for Excel 97 is created mainly to help
network planners maintain the existing models created in Excel 5.0. Like with
the standard functions it is important to know the input arguments and place
them properly. In some cases there are limitations for the range of one or
more of the input arguments (e.g. for Okumura-Hata or Walfish-Ikegami cell
range calculations) which are internally checked, but the user should be
aware that "garbage in - garbage out" rule is valid. The names very often
give a hint about the output or the purpose of functions and arguments.
The library was originally developed by Jordan Kalev for Excel 4. The most of
the functions are kept unchanged in this version. However, there are some
new functions and some old functions have new inputs.
This version is coded with Microsoft Visual C++ version 5.0. The library is
compiled to Excel stand-alone DLL (extension *.XLL).
2. VERSION
The current version of the function library is 1.0a. Note, that the file name is
kept the same (NPFun32.xll) when new releases are introduced.
3. INSTALLATION
3.1.
OPEN COMMAND
The function library can be open and activated by choosing the Open
command in File menu. The DLL will register all the functions in the library
but will not create any menus.
3.2.
XLSTART DIRECTORY
The NPFun32.xll file can be placed in Excel 97s XLStart directory. All the
files in that directory are open automatically every time Excel is opened. The
directory is (usually) located in ..\Microsoft Office\Office directory.
3.3.
ADD-INS MANAGER
Maybe the most conveniet way to install the function library is to place the file
NPFun32.xll in users home directory and use Add-Ins Manager to register
the DLL. The location of the file can be selected freely because with Add-Ins
Manager the file can be browsed by selected Add-Ins in the Tools menu.
If the function library does not appear on the list of Add-Ins Manager (text
NPfun32 version 1.0a) press Browse button and find the file NPfun32.xll.
Once the library is activated it is loaded automatically every time when Excel
is opened.
4. UPDATE
If you have previously installed NPFun32.xll, you should simply replace the
old file with the new one. Make sure that EXCEL is switched off before you
do the update!
DESCRIPTION
To make the description more compact the following notation has been used
for the arguments and the return values: Real , Integer (I), String , Logical ,
Percent (%). Note that the percent values must always be in the 0.0-1.0
range!
A very simple notation has been used for the base stations, so that all the
relevant info is given in the name. The string may have two or three fields
separated with # and is constructed like this:
BTS#D#211
where the first field is BTS, the second is optional field for Diversity, RF head,
Booster, Cema or pre-Amplifier, and the third field gives the TRXs per sector
one after another. In case of 10 TRX per sector 0 must be used instead. Here
are several correct examples of base station names:
BTS#2
BTS#A#21
4.1.
npLocProb(mar,dev,slope)
Parameters:
mar
dev
slope
and 5
Returns:
corresponds to 0.94
npSFMargin(lpc,dev,slope)
Parameters:
lpc
Location probability
dev
slope
and 5
Returns:
4.2.
ERLANG FORMULAE
npErlbChs(traf,prob)
Parameters:
traf
Traffic in Erl
prob
corresponds to 0.02
Returns: (I) The number of traffic channels needed
npErlbProb(traf,chs)
Parameters:
traf
Traffic in Erl
chs
Returns:
Blocking probability
npErlbTraf(prob,chs)
Parameters:
prob
chs
Returns:
4.3.
PROGAPAGION MODELS
npRangeOH(freq,hbs,hms,ploss)
Parameters:
freq
Frequency in MHz
hbs
hms
ploss
Returns:
npRangeWI(freq,hbs,hms,ploss,rw,ro,bs,bh)
Parameters:
freq
Frequency in MHz
hbs
hms
ploss
rw
ro
bs
bh
Returns:
4.4.
npGsmTchs(trx,hr)
Parameters:
trx
hr
npGsmTrx(chs,hr)
Parameters:
chs
hr
Returns:
npGsmTraffic(trx,prob,hr)
Parameters:
trx
Number of TRXs
prob
hr
Returns:
4.5.
COORDINATE FUNCTIONS
npRectX(lo,la,cm)
Parameters:
lo
Longitude in degree
la
Latitude in degree
cm
Returns:
means Y!
npRectY(lo,la,cm)
Parameters:
lo
Longitude in degree
la
Latitude in degree
cm
Returns:
npDistance(x1,y1,x2,y2)
Parameters:
x1
y1
x2
y2
Returns:
4.6.
npSiteAreaK(site)
Parameters:
site
npSiteCells(site)
Parameters:
site
npSiteTRX(site)
Parameters:
site
npSiteTraf(site)
Parameters:
site
bp
hr
Returns:
4.7.
npIsDir(site)
Parameters:
site
Returns:
npIsDiv(site)
Parameters:
site
Returns:
if
diversity
is
implemented
otherwise,
i.e.
otherwise,
i.e.
otherwise,
i.e.
otherwise,
i.e.
npIsRFHead(site)
Parameters:
site
Returns:
if
RF
Head
is
implemented
npIsAmplifier(site)
Parameters:
site
Returns:
if
Amplifier
is
implemented
npIsCEMA(site)
Parameters:
site
Returns:
if
CEMA
is
implemented
npIsBooster(site)
Parameters:
site
Returns:
if
Booster
is
implemented
otherwise,
i.e.