I have edited the 'new-trace' itself (I have appended an additional information for it, So in additional to the original info displayed by it there is the data rate). Regarding 'make clean' every time I run it it give error "cannot delet tcl it is directory" I do not know why that? By your argument do you mean that I must write a new trace format and add what I need it? and I sould not edit the 'new-trace' format? Thanx, Ghada
Matthias Kuhnert <[EMAIL PROTECTED]> wrote: I did not understand, what you exactly modified/tried to do. To get the new trace format, you have to include in your tcl script a statement similar to "$ns_ use new-trace", depending how you named your simulator instance in the script. Then via some statements in the cmu-trace implementation the new trace file format is taken. You don't have to and must not change anything of the cmutrace for that purpose! The newtrace variable is initialised via the tcl, so it will be set on runtime - therefore a change of the variable in the c++ part doesn't change the behaviour of the trace during runtime... The configure is superfluous, if you did not add anything new! If you changed anything on the files, the only command additional to make, is a "make clean", to resolve on dependencies! -------- Original-Nachricht -------- > Datum: Wed, 19 Sep 2007 04:09:18 -0700 (PDT) > Von: Ghada Al-Mashaqbeh > An: ns-users@ISI.EDU > Betreff: [ns] Modify the trace file format in ns-2 > > Dear all, > > I have moified the mac trace file format (new trace foramt for wireless) > to record the the data rate used to transmit the packet (since I am using > multirate mac layer). I have added the modifications to cmu-trace.cc file > only, then I have run in the ns directory 'configure' then 'make', but still > I get the original trace format (the changes were not recognized). > > Can anybody help me please? > > Thanx, > > Ghada > > > --------------------------------- > Boardwalk for $500? In 2007? Ha! > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! > Games. -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.