Hi,
it happened to me to use nam to visualize nodes movement, and I had no problems in doing that. These are the settings I used: set file (nam) [open "out.nam" w] $ns_ namtrace-all $file(nam) $ns_ namtrace-all- wireless $file(nam) $opt(x) $opt(y) $ns_ nam-end-wireless $opt(stop) Hope it helps. bye, Marco >----Messaggio originale---- >Da: [EMAIL PROTECTED] >Data: 27-set-2007 3.13 PM >A: <[email protected]> >Ogg: Re: [ns] About random mobility of wireless nodes > > >HI Gabrial, > >I am not sure if nam is the perfect way to look at your wireless >scenario. As far as I know, nam is not really supporting motion... > >Also, do you have the following line in you node-config? > >$ns_ node- config -movementTrace ON > >Hope that helps. > >Claus > >Gabrial Monty wrote: >> Hi all, >> >> I am trying to simulate the an ad hoc network using the random mobility model for the wireless nodes. I have enabled the random motion as follows: >> >> $node_($i) random- motion 1 >> $node_($i) start >> >> It works and give me results (eagrding the aggregate throughput) but the mobility of nodes and the generated traffic are not captured or recorded in the nam trace, where the nodes are appear static and no traffic is shown. I have added the following line: >> >> $node_($i) namattach $namtrace >> >> >> but nothing change, How can I make nam display the exact scenario with the mobility of nodes? >> >> thanx in advance for your help. >> >> >> --------------------------------- >> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. > >-- >Claus Christmann >Graduate Research Assistant > >Georgia Institute of Technology >270 Ferst Drive >Atlanta, GA 30332- 0150 > >http://uav.ae.gatech.edu > >
