Hi, If you want to see wireless topology in nam your have to do following addition to your scripts
first, you have to use set namtrace [open wireless.nam w] $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) where val(x) n val(y) should be having your grid range. or you can specilfy it directly here like 800 800 second, just after where you declare initial node positions, you need to add following code for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 30 ; } where val(nn) would be containing number of nodes. node_($i) is node array and 30 denotes the size of node displayed in nam. After this much, after simulation run, there 'll be file wireless.namcreated. you can execute it by typing "nam wireless.nam" or you can add a line in your finish procedure "exec nam wireless.nam &" Thats it as for as topology is concerned, or node movements but unfortunately you can't see packet flow of wireless simulation in nam. For Xgraph files etc... See marc Greis tutorial section VIII. Creating output files for XGraph. Best of luck. -- Love not soldiers because they die young...