12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

# <strong>The</strong> simul<strong>at</strong>ion ru<strong>ns</strong> for 3s.# <strong>The</strong> simul<strong>at</strong>ion comes to an end when the scheduler invokes the finish{} procedure below.# This procedure closes all trace files, <strong>and</strong> invokes nam visualiz<strong>at</strong>ion on one of the trace files.$<strong>ns</strong> <strong>at</strong> 3.0 "finish"proc finish {} {global <strong>ns</strong> f nf$<strong>ns</strong> flush-traceclose $fclose $nf}puts "running nam..."exec nam out.nam &exit 0# Finally, start the simul<strong>at</strong>ion.$<strong>ns</strong> run15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!