Hi, You can use awk or perl to extract information form trace file. And than u can run it from tcl code.
Good luck Bilge On 10/17/07, Cristiane Amaral <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > My program in Tcl in the following line: > > $ns_ node-config -adhocRouting $val(rp) \ > -llType $val(ll) \ > -macType $val(mac) \ > -ifqType $val(ifq) \ > -ifqLen $val(ifqlen) \ > -antType $val(ant) \ > -propType $val(prop) \ > -phyType $val(netif) \ > -topoInstance $topo \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace ON \ > -movementTrace ON \ > #-energyModel "EnergyModel" \ > #-initialEnergy 1 \ > #-rxPower 0.3 \ > #-txPower 0.3 \ > -channel $chan_1_ > > I´m working with 802.15.4 and AODV and I would analyze the parameters: > Average Average Initial Energy and Energy Used, but how I analyse this in > the trace file (. tr)? > I have to insert some other parameter in Tcl? > > Thank you, > Cristiane > _________________________________________________________________ > AVISO > Esta mensagem é destinada exclusivamente a(s) pessoa(s) indicada(s) > como destinatário(s), podendo conter informações confidenciais, > protegidas por lei. > A transmissão incorreta da mensagem não acarreta a perda de sua > confidencialidade. > Caso esta mensagem tenha sido recebida por engano, solicitamos que > seja devolvida ao remetente e apagada imediatamente de seu sistema. É > vedado a qualquer pessoa que não seja destinatário, usar, revelar, > distribuir ou copiar ainda que parcialmente esta mensagem. > _________________________________________________________________ > DISCLAIMER > This message is destined exclusively to the intended receiver. It may > contain confidential or legally protected information. > The incorrect transmission of this message does not mean loss of its > confidentiality. > If this message is received by mistake, please send it back to the > sender and delete it from your system immediately. It is forbidden to > any person who is not the intended receiver to use, reveal, > distribute, or copy any part of this message. > _________________________________________________________________ >
