Hi ns-users,

I am trying to use the 'example-trace' file located in the ns-2.28/tcl/ex/
directory for generating traffic. I am using the following commands in my
tcl script, but the trace file generated after the simulation is blank.

Please help!
Thanks!

set tfile [new Tracefile]
$tfile filename example-trace
set t1 [new Application/Traffic/Trace]
$t1 attach-tracefile $tfile

I have put the file 'example-trace' in the directory from where  I am
running ns.

Reply via email to