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

Re: Problem running nam-example.tcl



> Hi,
> 
> This is junnaini again.
> 
> I encounter this error while running nam-example.tcl
> 

not sure which version of the script you're running, the script runs fine
with me... may be you need to add the following command to your script:
Simulator set NumberInterfaces_ 1

just before the line:

set ns [new MultiSim]

hope this helps,

Regards,
-Ahmed

> ns: _o3 run-mcast: invalid command name "0"
>     while executing
> "[$link set ifacein_] set intf_label_"
>     (procedure "_o30" line 3)
>     (Node get-oif line 3)
>     invoked from within
> "$self get-oif $link"
>     (procedure "_o30" line 5)
>     (Node init-outLink line 5)
>     invoked from within
> "$node init-outLink"
>     (procedure "_o3" line 5)
>     (Simulator run-mcast line 5)
>     invoked from within
> "_o3 run-mcast"
> 
> 
> 
> Thank you for your kind help.
> 
> Junnaini Ismun
> Fac. of Engrg,
> Univ of Malaya
> 50603 Kuala Lumpur
> Malaysia
> 
> 
> below is the part of the content of out.nam
> 
> V -t * -v 1.0b6 -a 0
> A -t * -n 1 -p 0 -o 255 -c 15 -a 1
> A -t * -h 1 -m 127 -s 8
> c -t * -i 0 -n blue
> c -t * -i 1 -n red
> c -t * -i 2 -n white
> n -t * -a 0 -s 0 -S UP -v circle -c black
> n -t * -a 1 -s 1 -S UP -v circle -c black
> n -t * -a 2 -s 2 -S UP -v circle -c black
> n -t * -a 3 -s 3 -S UP -v circle -c black
> l -t * -s 0 -d 2 -S UP -r 5000000 -D 0.002 -o right-up
> l -t * -s 1 -d 2 -S UP -r 5000000 -D 0.002 -o right-down
> l -t * -s 2 -d 3 -S UP -r 1500000 -D 0.01 -o right
> q -t * -s 3 -d 2 -a 0.5
> q -t * -s 2 -d 3 -a 0.5
> + -t 1 -s 0 -d 2 -p cbr -e 210 -c 0 -i 0 -a 0 -x {0.0 3.1 0 ------- (null)}
> - -t 1 -s 0 -d 2 -p cbr -e 210 -c 0 -i 0 -a 0 -x {0.0 3.1 0 ------- (null)}
> h -t 1 -s 0 -d 2 -p cbr -e 210 -c 0 -i 0 -a 0 -x {0.0 3.1 -1 ------- (null)}
> r -t 1.00234 -s 0 -d 2 -p cbr -e 210 -c 0 -i 0 -a 0 -x {0.0 3.1 0 ------- (null)}
> + -t 1.00234 -s 2 -d 3 -p cbr -e 210 -c 0 -i 0 -a 0 -x {0.0 3.1 0 ------- (null)}
> 
> 
> 
> 
> 
>