Dear all
Can anybody help me in the following error in multiple channels.
num_nodes is set 2
can't read chan(1): no such element in array
while executing
return $chan($index)
(procedure _o3 line 3)
(Simulator get-channel line 3)
invoked from within
$ns get-channel [expr $t*$channelnum+$j]
(procedure _o15 line 14)
(Node/MobileNode add-interface line 14)
invoked from within
$node add-interface $chan([expr $i*$channum_]) $propInstance_
$llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_
$topoInstance_ $inerrProc_ $...
(procedure _o3 line 77)
(Simulator create-wireless-node line 77)
invoked from within
_o3 create-wireless-node
(eval body line 1)
invoked from within
eval $self create-wireless-node $args
(procedure _o3 line 23)
(Simulator node line 23)
invoked from within
$ns node
(for body line 2)
invoked from within
for {set i 0 } {$i $val(nn) } { incr i } {
set node_($i) [$ns node]
--
Regards
Khan
Department of Electrical Electronics and Information Engineering,
Nagaoka University of Technology, Nagaoka-shi, Niigata-ken, Japan
Cell # +8180 3474 4286