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

Re: [ns] share code???



Hi Nipul,

what I should do is the following:

- look if a queue size variable exists and how it is called
- find out how to access this variable during a simulation
- write a procedure in your TCL script that writes this variable (and the
time) at a certain rate in a file

After the simulation you will have a file which you can plot with a program
you like (xgraph, gnuplot, perhaps Excel)

good luck,

Onno


Nipul Jayvant Shah wrote:

> hi,
>
> If anyone has made plots of queue size vs time, could you please share the
> code or give hints regarding how to go about doing that. I tried using
> queue monitor, but I couldnt make much use of the trace file as i couldnt
> parse it for necessary information
>
> any help will be sincerely appreciated.
>
> thanks
>
> ns