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

Re: ns_to_nam




Yun Wang wrote:
> Hi,
> 
> Could anyone tell me how to convert a ns trace file to nam format?

Why don't you use the built in functionality to create a nam-trace
file?!

E.g somthing like this:

set outputfile [open out.tr w] ;# Ordinary trace file
$ns trace-all $outputfile

set namfile [open out.nam w]   ;# Nam trace file
$ns namtrace-all $namfile

-- 
/m.v.h. Ingela

//The highway of life is always under construction. //

 	        |\      _,,,--,,_  ,)
                /,`.-'`'   -,  ;-;;' 
               |,4-  ) )-,_ ) /\
              '---''(_/--' (_/-'