[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] How to change default values (listed in ns-default.tcl)?



>Hello,
>
>I want to change some of the default values in NS (such as CBR packet
>size, Phy/WirelessPhy bandwidth).  I've modified the following 
>lines in ns-default.tcl:
>		Application/Traffic/CBR set packetSize_ 210
>		Phy/WirelessPhy set bandwidth_ 2e6
>to
>		Application/Traffic/CBR set packetSize_ 1000
>		Phy/WirelessPhy set bandwidth_ 1e6
>
>However, when I run my simulation, NS still usese the default values
>instead of the new values.  Can anyone please tell me how to change 
>the default values in NS?

Other people have pointed you compiling issues.

If you want to change these defaults for a single script though,
you can plance these commands in YOUR script.  There they should
override the values in ns-defaults.tcl (to avoid the need to rebuild
ns).

   -John Heidemann