On 10/7/06, Bilal AbuQadous <[EMAIL PROTECTED]> wrote:
>
> Dear ns users,
>
> would you please tell me how I can change the parameters without stopping
> the simulation.
>
> as eg.
>
> how I can change the delay in the following command without stopping the
> simulation and make that automatic until the end.
>
>
>
> $ns make-lan "$TCP_BS $TCPr" 2mb 0.001ms LL Queue/DropTail Mac
>
>
>
> if I will make a test with different delay starting from 0.001, 0.01, 0.01,1,
> 10, 100, 150 ms, how I could make these changes automatically without
> entering new delay parameter by stop the simulation.
>
>
> I need this thing To save the time and the effort.
>
> thank you in advance

If your make-lan object allows commands then you make a proc
and call that proc at a time.

proc change_delay { } {

#now re-schedule our self
$ns at [expr $now+$time] "change_delay"
}

$ns at 0.0 "change_delay"

Reply via email to