My beleive is whenever I run the ns command for my tcl file, the nam file for that tcl file is overwritten, am I wrong?
>From: [EMAIL PROTECTED] >CC: ns-users@ISI.EDU >Subject: Re: [ns] Random motion for ad-hoc network >Date: Tue, 08 Aug 2006 14:14:14 +0930 > > >sara MA wrote: > > hello: > > > > I'm using these codes for creating random motion in an ad-hoc network: > > > > for {set i 0} {$i < $val(nn) } {incr i} { > > set node_($i) [$ns_ node] > > $node_($i) random-motion 1 } > > > > for {set i 0} {$i < $val(nn) } {incr i} { > > $node_($i) start } > > > > The distribution of my nodes looks random, but my problem is every time >I > > run the nam file, the initial positions of nodes is the same as last >time, > > and they even move in the same way they moved as last time. > > > > Do you know what maybe the problem? > > > > Thanks: > > Sara > > > > _________________________________________________________________ > > Express yourself instantly with MSN Messenger! Download today it's FREE! > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > > > > >Hi sara, > >Running NAM against the same namfile will always produce the same node >mobility. > >I suggest that you look at Marc Greis' tutorial Chapter XI. > >P. > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/