Re: [ns] delaySamp_ object and Delay samples

2006-09-09 Thread Renata Vidal

Hi Filippos,

Did you solve your problem? Can you help me?
I'm trying to get Delay Samples from monitor-queue, with these commands:

set qm [$ns monitor-queue $n1 $n2 $qt 0.5]
set integratorObjectDelay [$qm get-delay-samples]
set delayfila [$integratorObjectDelay set delaySamp_]

but when I run, I get the error:

ns: queueLog: invalid command name ""
while executing
"$integratorObjectDelay get delaySamp_"
(procedure "queueLog" line 20)
invoked from within
"queueLog"

According to NS DOC, the object it returns is delaySamp_.

Any clue!?

On 8/6/06, Filippos Kolovos <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> has anybody used, or tried to use the delaySamp_ object
> that is provided with a queuemonitor object?
>
> In the manual it states that this object can be used to measure queue delays
> (page 76 of ns-manual).
> It has two methods:
>
> $queuemonitor get-delay-samples, which says it returns a Samples object
> delaySamp_ to record delays about queues and
>
> $queuemonitor set-delay-samples , is to set up the delay samples
> object to record delay statistics about queues. Also,  it states that
> delaySamp_ is a handle to a samples object, which must have been previously
> created (supposedly with the get-delay-samples method above).
>
> However I have the following code:
>
> #Setting a queue-monitor object for a specific queue
> set monitorQueue2_3  [$simulation monitor-queue $node2 $node3 stdout]
> #Setting the integrator for the average queue size - this works ok
> set integratorObject [$monitorQueue2_3 get-pkts-integrator]
>
> #using the get-delay-samples method of the queuemonitor object to "get" a
> delay samples
> set delaySamples [$monitorQueue2_3 get-delay-samples]
> #using the set-delay-samples method on, supposedly, the "returned" object to
> set-it up,
> #according to the manual
> $monitorQueue2_3 set-delay-samples delaySamples
>
> 
> 
> more code
>
> When I simulate the tcl code I get the following error:
>
> (_o59 cmd line 1)
> invoked from within
> "_o59 cmd set-delay-samples delaySamples"
> invoked from within
> "catch "$self cmd $args" ret"
> invoked from within
> "if [catch "$self cmd $args" ret] {
> set cls [$self info class]
> global errorInfo
> set savedInfo $errorInfo
> error "error when calling class $cls: $args" $..."
> (procedure "_o59" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$monitorQueue2_3 set-delay-samples delaySamples"
> (file "simulation-Class-AverageQueue.tcl" line 80)
>
> What Could be the cause of this? I use ddd as my debugger and I have come to
> the conclusion that the get-delay-samples method does not return anything,
> since
> the delaySamp_ object is initialized to NULL upon initialization of the
> queuemonitor object.
> The code is in the queue-monitor.cc file in /tools/
>
> How can one use the delaySamp_ objects of queuemonitor to measure queue
> delays?
> Am I correct, or I am erroneously using these methods?
>
> Any help would be appreciated.
>
> Kind Regards,
>
> -Fk
>
>
> --
> Filippos N Kolovos
>
> Software Systems Analyst & Engineer
> M.Sc. (Eng.) in Data Communications
>
> Automation & Networking Department
> University of Macedonia Library
> Egnatia 156, P.O.Box 1591
> 540 06 Thessaloniki, Greece
>
> E-Mail: [EMAIL PROTECTED],
>[EMAIL PROTECTED]
> Phone: +30-2310-891-826
> --
>


-- 
Renata Vidal
"Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
TSU – pg 102)"



[ns] Tracing Energy Levels

2006-09-09 Thread Denis Vella

Hi,

I'm trying to use Node Energy Level Tracing with the New-Trace
Tracefiles, but the reading is always -1.0.  I have set the energy
model and power levels etc, but I still get nothing.

Any pointers to what I'm missing?

Thanks,
Denis


The information contained in this email is confidential and may be privileged. 
It is intended for the addressee only, if you are not the intended recipient 
please notify the sender and delete the email immediately. The contents of this 
email must not be disclosed or copied without the senders consent.
We cannot accept any responsibility for viruses.
Any views expressed in this message are those of the individual sender, except 
where the sender specifically states them to be the view of Philip Toledo 
Limited



Re: [ns] xGraph Installation Problem

2006-09-09 Thread Mohadig Rousstia

hi Kumar,
  
  First of all, you can check the update in XFreeBSD package in your  cygwin 
installation(if you are using Windows), or the updates of that X  files in your 
Linux's update website(if you're using Linux); then  install it.
  Hoping it will help.
  
  rgds
  
  Mohadig

Harish Kumar <[EMAIL PROTECTED]> wrote:  
I tried to install xgraph, but got following message:

gcc -g -o xgraph  xgraph.o xgX.o
hard_devices.o dialog.o hpgl.o ps.o idraw.o xtb.o st.o
params.o alloc.o draw.o init.o read.o tgif.o
derivative.o -lX11 -lm

/usr/bin/ld: cannot find -lX11

collect2: ld returned 1 exit status

make: *** [xgraph] Error 1

Any method to solve it

harish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail.