Hi.
Try putting a semicolon before the comment # run every 0.1 second.

2008/8/25 Hector Agustin Cozzetti <[EMAIL PROTECTED]>


> Hello everybody!
> There is an error  in the log movement. I have used the procedure indicated
> in this link to display the log movement:
> http://www.isi.edu/nsnam/ns/doc/node174.html
>
> When I call this procedure in my tcl file I obtain this error:
>
> *wrong # args: should be "_o183 self class proc delay"
>    (Timer sched line 1)
>    invoked from within
> "$logtimer sched 0.1       # run every 0.1 second"
>    (procedure "log-movement" line 15)
>    invoked from within
> "log-movement"*
>
> Any suggestion???
> Thanks you very much for all the help!!!
> Agus
>
> This is a part of tcl file:
>
> ...
> *# log-movement procedure*
> *proc log-movement {} {*
>
> *    global logtimer ns_ ns*
> *    set ns $ns_*
> *    source /home/agus/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl*
> *     Class LogTimer -superclass Timer*
> *    LogTimer instproc timeout {} {*
> *        global val node_;*
> *        for {set i 0} {$i < $val(nn)} {incr i} {*
> *            $node_($i) log-movement*
> *        }*
> *        $self sched 0.1*
> *     }*
> *    set logtimer [new LogTimer]*
> *    $logtimer sched 0.1       # run every 0.1 second*
> *}*
>
>
-- 
Regards
Huang Wentao
Shanghai, China

Reply via email to