Hi,
Add the following
set val(engmodel) EnergyModel
set val(txPower) 1.0 ;# transmitting power consumed in mW
set val(rxPower) 1.0 ;# receiving power consumed in mW
set val(initeng) 1000.0 ;# Initial energy in Joules
$ns node-config -energyModel $val(engmodel) \
-initialEnergy $val(initeng) \
-rxPower $val(rxPower) \
-txPower $val(txPower) \
With Regards
S.Shyam Sundar
On Thu, Apr 22, 2010 at 4:13 PM, jeni martin <[email protected]> wrote:
>
>
>
> --- On Thu, 4/22/10, jeni martin <[email protected]> wrote:
>
>
>
>
>
>
>
>
> hi all,
>
> i want to add an energy model to my scenario, could anyone tell me how to
> add it?
> is it enough to add these???
>
> set opt(energymodel) EnergyModel ;
> set opt(initialenergy) 1000
>
> but it dosen't work for me.
>
> thanks a lot
>
>
>
>
>