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

[ns] Read input variable in tcl file



Hi NS-users.

Actually I have one file.tcl and I would like to
collect simulation results by keeping the execution file 
and just modifying input
parameters from outside.

Let me give you an example.
Here is file.tcl code which get input parameters from
outside. (link_speed, link_delay alike)

If we make it with C code only not NS,
...a.out 1(Mbps) 1(sec)... and before the execution
 we should make some reading blocks inside C code.

How can I make it with NS. I want to be able to do it 
inside tcl code.
Here is my imagination. It can be false.
...  ns file.tcl 1(Mbps) 1(sec)...
we need some coding in file.tcl for the above execution.

Thanks in advance.

Sincerely Yours,
Tai Suk Kim