Re: [ns] example simulation static wireless

2009-04-17 Thread Gisane Michelon

ok, don't occurs the error, but to serves this line?
      $ns_ initial_node_pos $node_($i) 20
thanks very much


2009/4/16 Mark Kosinski kosins...@ainfosec.com:
 Hello,

 You're missing one line of code. To make this work you need to add the 
 following line to your for loop.

        $ns_ initial_node_pos $node_($i) 20

 The above line of code is to be the last line of code in the for loop you 
 have shown here in your email.

 Sincerely,

 Mark

 -Original Message-
 From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf Of 
 Gisane Michelon
 Sent: Thursday, April 16, 2009 9:35 AM
 To: Luís Barreto; ns-users@ISI.EDU
 Subject: Re: [ns] example simulation static wireless


 I already tryed but haven't.
 I am try to make, however occurs the following error:
   node 1 not definded... node 2 not defined...node 3 not defined...
 my function that define nodes is:
        for {set i 0} {$i  $val(nn) } {incr i} {
                set node_($i) [$ns_ node]
                $node_($i) random-motion 0     ;# disable random motion
        }

  and position initial modilenodes is:
 $node_(0) set X_ 5.0
 $node_(0) set Y_ 2.0
 $node_(0) set Z_ 0.0
 $node_(1) set X_ 490.0
 $node_(1) set Y_ 285.0
 $node_(1) set Z_ 0.0
 $node_(2) set X_ 150.0
 $node_(2) set Y_ 240.0
 $node_(2) set Z_ 0.0
 $node_(3) set X_ 105.0
 $node_(3) set Y_ 210.0
 $node_(3) set Z_ 0.0
 Need something more to define node statics?

 thanks

 2009/4/16 Luís Barreto lmcbarr...@gmail.com:
 HI,

 You can find one in the ns directory, in ns-xxx/tcl/ex!

 Where xxx is the version!

 Regards,

 Luís

 On Thu, Apr 16, 2009 at 2:02 PM, Gisane Michelon gisan...@gmail.com wrote:

 Somedoby has um simple example of simulation static wireless network ?
 Already tried very but didn't find.
 Ane




Re: [ns] example simulation static wireless

2009-04-17 Thread Luís Barreto

This is just for defining node size in nam visualization!

Luís

On Fri, Apr 17, 2009 at 1:18 PM, Gisane Michelon gisan...@gmail.com wrote:


 ok, don't occurs the error, but to serves this line?
   $ns_ initial_node_pos $node_($i) 20
 thanks very much


 2009/4/16 Mark Kosinski kosins...@ainfosec.com:
  Hello,
 
  You're missing one line of code. To make this work you need to add the
 following line to your for loop.
 
 $ns_ initial_node_pos $node_($i) 20
 
  The above line of code is to be the last line of code in the for loop you
 have shown here in your email.
 
  Sincerely,
 
  Mark
 
  -Original Message-
  From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On
 Behalf Of Gisane Michelon
  Sent: Thursday, April 16, 2009 9:35 AM
  To: Luís Barreto; ns-users@ISI.EDU
  Subject: Re: [ns] example simulation static wireless
 
 
  I already tryed but haven't.
  I am try to make, however occurs the following error:
node 1 not definded... node 2 not defined...node 3 not defined...
  my function that define nodes is:
 for {set i 0} {$i  $val(nn) } {incr i} {
 set node_($i) [$ns_ node]
 $node_($i) random-motion 0 ;# disable random motion
 }
 
   and position initial modilenodes is:
  $node_(0) set X_ 5.0
  $node_(0) set Y_ 2.0
  $node_(0) set Z_ 0.0
  $node_(1) set X_ 490.0
  $node_(1) set Y_ 285.0
  $node_(1) set Z_ 0.0
  $node_(2) set X_ 150.0
  $node_(2) set Y_ 240.0
  $node_(2) set Z_ 0.0
  $node_(3) set X_ 105.0
  $node_(3) set Y_ 210.0
  $node_(3) set Z_ 0.0
  Need something more to define node statics?
 
  thanks
 
  2009/4/16 Luís Barreto lmcbarr...@gmail.com:
  HI,
 
  You can find one in the ns directory, in ns-xxx/tcl/ex!
 
  Where xxx is the version!
 
  Regards,
 
  Luís
 
  On Thu, Apr 16, 2009 at 2:02 PM, Gisane Michelon gisan...@gmail.com
 wrote:
 
  Somedoby has um simple example of simulation static wireless network ?
  Already tried very but didn't find.
  Ane
 




Re: [ns] example simulation static wireless

2009-04-16 Thread Gisane Michelon

I already tryed but haven't.
I am try to make, however occurs the following error:
  node 1 not definded... node 2 not defined...node 3 not defined...
my function that define nodes is:
for {set i 0} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}

  and position initial modilenodes is:
$node_(0) set X_ 5.0
$node_(0) set Y_ 2.0
$node_(0) set Z_ 0.0
$node_(1) set X_ 490.0
$node_(1) set Y_ 285.0
$node_(1) set Z_ 0.0
$node_(2) set X_ 150.0
$node_(2) set Y_ 240.0
$node_(2) set Z_ 0.0
$node_(3) set X_ 105.0
$node_(3) set Y_ 210.0
$node_(3) set Z_ 0.0
Need something more to define node statics?

thanks

2009/4/16 Luís Barreto lmcbarr...@gmail.com:
 HI,

 You can find one in the ns directory, in ns-xxx/tcl/ex!

 Where xxx is the version!

 Regards,

 Luís

 On Thu, Apr 16, 2009 at 2:02 PM, Gisane Michelon gisan...@gmail.com wrote:

 Somedoby has um simple example of simulation static wireless network ?
 Already tried very but didn't find.
 Ane






-- 
Gisane A. Michelon
Prof. Ms. Assistente A
Departamento de Ciência da Computação - DECOMP
Universidade Estadual do Centro-Oeste - UNICENTRO



Re: [ns] example simulation static wireless

2009-04-16 Thread saiful islam

Give a pause time greater then simulation time then the scenario will be
static.

On Thu, Apr 16, 2009 at 7:02 PM, Gisane Michelon gisan...@gmail.com wrote:


 Somedoby has um simple example of simulation static wireless network ?
 Already tried very but didn't find.
 Ane




-- 
Mohammad Saiful Islam
CSE, BUET