sir how to change the color of nodes when the energy of a node
decrease? i read ns2 existing tcl but i didnot get any idea.can
anybody help me please

On Tue, Aug 9, 2011 at 5:00 PM,  <[email protected]> wrote:
> Send Ns-users mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mailman.isi.edu/mailman/listinfo/ns-users
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ns-users digest..."
>
>
> Today's Topics:
>
>   1. Tracefile format (Payaswini Nayak)
>   2. mannasim using (ANAS AMER)
>   3. : cmu-scen-gen (zmezm 14)
>   4. Re: warning: Please use -channel as shown in
>      tcl/ex/wireless-mitf.tcl syntax error in expression "$i $val(nn)
>      ": extra tokens at end of expression while executing
>      (nicholas mbonimpa)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 9 Aug 2011 11:51:35 +0530 (IST)
> From: Payaswini Nayak <[email protected]>
> Subject: [ns] Tracefile format
> To: NS-user <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=iso-8859-1
>
> hi..
> If anybody?knows the tracefile format of MIH please send the link for me..
>
> ------------------------------
>
> Message: 2
> Date: Tue, 9 Aug 2011 09:20:56 +0000
> From: ANAS AMER <[email protected]>
> Subject: [ns] mannasim using
> To: <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="windows-1256"
>
>
> Dear NS2 users  I have been working on NS2.34  to simulate a wireless sensor 
> networks with Directed Diffusion as routing protocol Can any one tell me if 
> Mannasim is compatible with ns2.34 Regards Anas
>
> ------------------------------
>
> Message: 3
> Date: Tue, 9 Aug 2011 06:53:31 -0700 (PDT)
> From: zmezm 14 <[email protected]>
> Subject: [ns] : cmu-scen-gen
> To: "[email protected]" <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=iso-8859-1
>
>
>
>
>
>
> Hi and good day
>
>
> i want to use the " cmu-scen-gen" node movement generator , to create a 
> movement node file
>
> i already made the file using this path " 
> $NS2_HOME/indep-utils/cmu-scen-gen/setdest. "
>
> and i follow this instruction
>
> ./setdest [-n
> num_of_nodes] [-p pausetime] [-M maxspeed] [-t simtime] [-x maxx] [-y maxy]
>> [scenario_output_file]so now when i run this commend
>
> ./setdest -n 100
> -p 2.0 -M 20.0 -t 250 -x 330 -y 220> scen-100
> i get the file inside the setdest. folder in the ns-2.29 directory , but when 
> i copy it and past it in the ns-2.29/tcl/mobility/scene dose not run?
> so my question is after i create the file using the cmu-scen-gen , should i 
> just copy it from the setdest folder and put on the scene folder or should i 
> do something first like configure the ns-2 or is there any other way to make 
> the ns2 recognize and read the movement file that i created?
> thanks
>
>
> # ======================================================================
> #??????????????????????? Define options
> # ======================================================================
>
> set opt(tr-ns)???
>  100nswimax-out.tr????????????? ;# set trace file's name
> set opt(tr-nam)? 100nswimax-out.nam????????????? ;# set nam's name
> set opt(chan)?? Channel/WirelessChannel????????? ;# channel type
> set opt(prop)?? Propagation/TwoRayGround???????? ;# radio-propagation model
> set opt(netif)? Phy/WirelessPhy/OFDM???????????? ;# network interface type
> set opt(mac)??? Mac/802_16?????????????????????? ;# MAC type
> set opt(ifq)??? Queue/DropTail/PriQueue????????? ;#
>  interface queue type
> set opt(ll)???? LL?????????????????????????????? ;# link layer type
> set opt(ant)??? Antenna/OmniAntenna????????????? ;# antenna model
> set opt(ifqlen)???????? 50?????????????????????? ;# max packet in ifq
> set opt(nn)???????????? 100????????????????????? ;# number of mobilenodes
> set opt(adhocRouting)??
>  NOAH???????????????????? ;# routing protocol
>
> set opt(cp)???? ""?????????????????????????????? ;# cp file not used
> set opt(sc)???? "../tcl/mobility/scene/scen-100" ;# node movement file.
>
> set opt(x)????? 1500???????????????????????????? ;# x coordinate of topology
> set opt(y)?????
>  1500???????????????????????????? ;# y coordinate of topology
> set opt(stop)?? 250????????????????????????????? ;# time to stop simulation
>
> set opt(ftp1-start)????? 0.01??????????????????? ;# time to start ftp
> set num_wired_nodes????? 2
>
> ------------------------------
>
> Message: 4
> Date: Tue, 9 Aug 2011 15:43:54 +0000
> From: nicholas mbonimpa <[email protected]>
> Subject: Re: [ns] warning: Please use -channel as shown in
>        tcl/ex/wireless-mitf.tcl syntax error in expression "$i $val(nn) ":
>        extra tokens at end of expression while executing
> To: manishsingh chaudhary <[email protected]>
> Cc: [email protected]
> Message-ID:
>        <CADgWGVWS9yG=3snzgdf8r4amjby2s37yc__gmqah5d-fljb...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Manish,
>
> Do not worry about the warning message. If your setup is ok, the simulation
> will run well.
>
> >From a look at the code lines you've pasted here, the error message is most
> probably due to a missing operator in the line below.
>
> {$i  $val(nn) }
>
> This is because both "i" and "val(nn)" are variables and there should be an
> operator relating them if the for loop is to make sense.
>
>
> for {set i 0} {$i  $val(nn) } {incr i}
>
> That aside, you are most probably running a wireless or wired-cum-wireless
> simulation. Depending on how your ns is installed, your simulation may not
> run, if you are using the random scene generating files. If that happens,
> copy your script to the directory "~/tcl/ex/" and run it there. It will
> work.
>
> I hope this will help.
>
> Kind regards,
>
> Nicholas Mbonimpa
>
>
>
> On Fri, Aug 5, 2011 at 4:44 PM, nicholas mbonimpa <[email protected]>wrote:
>
>> Hi Manish,
>>
>> Do not worry about the warning message. If your setup is ok, the simulation
>> will run well.
>>
>> From a look at the code lines you've pasted here, the error message is most
>> probably due to a missing operator in the line below.
>>
>>  {$i  $val(nn) }
>>
>> This is because both "i" and "val(nn)" are variables and there should be an
>> operator relating them if the for loop is to make sense.
>>
>>
>> for {set i 0} {$i  $val(nn) } {incr i}
>>
>> That aside, you are most probably running a wireless or wired-cum-wireless
>> simulation. Depending on how your ns is installed, your simulation may not
>> run, if you are using the random scene generating files. If that happens,
>> copy your script to the directory "~/tcl/ex/" and run it there. It will
>> work.
>>
>> I hope this will help.
>>
>> Kind regards,
>>
>> Nicholas Mbonimpa
>>
>>
>> On Fri, Aug 5, 2011 at 3:17 PM, manishsingh chaudhary <
>> [email protected]> wrote:
>>
>>>
>>> hi
>>> to all,
>>>
>>> *sub- the following  giving an error statement like as under:-
>>> *
>>> num_nodes is set 8
>>> *warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
>>> syntax error in expression "$i  $val(nn) ": extra tokens at end of
>>> expression*
>>>    *while executing*
>>> *"for {set i 0} {$i  $val(nn) } {incr i} {
>>>        set node_($i) [$ns_ node]
>>>        $node_($i) random-motion 0        ;# disable random motion
>>>    }"
>>>
>>>
>>> please sort out above error.**warning: Please use -channel as shown in
>>> tcl/ex/wireless-mitf.tcl
>>> syntax error in expression "$i  $val(nn) ": extra tokens at end of
>>> expression*
>>>    *while executing*
>>> *
>>>
>>> with regards
>>> manish
>>> *
>>>
>>
>>
>
>
> ------------------------------
>
> _______________________________________________
> Ns-users mailing list
> [email protected]
> http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
> End of Ns-users Digest, Vol 92, Issue 9
> ***************************************
>



-- 
Thanking You.

best wishes and regards,

yours sincerely,

Srinivas.Kanakala
Assistant Professor
Department of Computer Science
Vaagdevi College of Engineering

www.vagdevieng.com

Warangal,AndhraPradesh,INDIA-506002

contact no:91-9966343560


All the power is with in u,u can do any thing and every thing

Reply via email to