# myfirst_ns.tcl
# create a simulator
set ns [new simulator]
create a trace file
set mytrace [open out.tr w]
$ns trace-all $mytrace
create a NAM trace file
set myNAM [open out.nam w]
$ns namtrace-all $myNAM
define a procedure finish
proc finish {} {
global ns mytrace myNAM
Hi Soares,
Try writing simulator with capital S instead of small s.
Try this tutorial for your first experience. Run the examples in it. They'll
help you get used to the simulator.
http://www.isi.edu/nsnam/ns/tutorial/
Kind regards,
Nicholas Mbonimpa
On Wed, Aug 31, 2011 at 7:46 AM, Bety