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

Re: QueueMonitor question



Your syntax is wrong. Check tcl/lib/ns-lib.tcl and you'll find 

Simulator instproc monitor-queue { n1 n2 qtrace { sampleInterval 0.1 } } {

You need to supply a queue trace file handle. If you don't want any,
simply pass an empty string "". 

- Haobo

On Wed, 4 Aug 1999, Paul McAvoy wrote:

> Hi, I am trying to use the QueueMonitor object in NS, and am unclear on how to
> acquire a handle to the object.
> 
> I am doing the folowing and don't know if this is correct:
> 
> 
> set qm [$ns monitor-queue $n0 $n1]
> 
> I then run ns to see if it works and get the following error:
> 
> no value given for parameter "qtrace" to "_o3"
>     (Simulator monitor-queue line 1)
>     invoked from within
> "$ns monitor-queue $n0 $n1 "
>     (file "test.tcl" line 89)
> 
> ..
> Looking at the man page for ns, it appears that what I did is the correct
> method to get a queuemonotor object.  There was no sample cod that I could
> find in the ns source tree.
> 
> Any help or comments on where to look would be appreciated.  Thanks for your
> time.
> 
> Paul
>