[ns] NAM help

Roza Mavropodi rosa at unipi.gr
Mon Apr 18 07:16:16 PDT 2005


I think that you have two different problems. 1) your simulation didn't
prodused any nam file (you say = i can't find the nam file ) and 2) you
cannot execute the nam command (you say = bash:nam command not found).

I order to solve 1) you should have something like the following in your
*.tcl script

set namtrace [open test.nam w]
$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)

Don't gorget to close $namtrace at the end of the simulation

proc stop {} {
    global ns_ namtrace f
   close $namtrace
}
Look for your *.nam file in the same dir that your *.tcl file resides

In order to solve 2) I cannot help since I am working with Cygwin and
Win2000 but I am sure that nam command needs to be run under xwin
environment

I hope I helped

----- Original Message ----- 
From: "sathish kumar" <sathishkanna at gmail.com>
To: <ns-users at ISI.EDU>
Sent: Monday, April 18, 2005 3:59 PM
Subject: [ns] NAM help


>
> Hii Ns-users,
> Iam a newbie to this NS2 tool, i installed the all-in-one package in
> my fedora core 3 system. I can run ns simulations but i can't run nam,
> i get an error message bash:nam command not found. NAM is already
> installed in the system i can't find the nam file in the NAM-1.11
> directory.
> As anyone experienced such a problem before, Please help me how to run
> nam .Iam already stuck in this part for couple of weeks , i
> uninstalled and reinstalled NS-allione package, still nam is not
> working
>
> Please help me ..Any comments much appreciated.
>
> Thanx
> Sathish
>
> -- 
> The search is more important than the destination
>
>



More information about the Ns-users mailing list