![]() |
Hi ayaan,
you do not execute the tcl files individually. you run the leach_test file in your command prompt. |
hi i am getting this error in leach.err
couldn't read file "tcl/lib/ns-mobilenode.tcl": no such file or directory while executing "source.orig tcl/lib/ns-mobilenode.tcl" ("uplevel" body line 1) invoked from within "uplevel source.orig[list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig[list $fileName] ..." (procedure "source" line 8) invoked from within "source tcl/lib/ns-mobilenode.tcl" (file "tcl/ex/wireless.tcl" line 184) plz reply soon |
hi I have installed Ns-2.27 and mit leach protocol . But when I Execute ./test it gives following error in leach.err file .I have seen that file is present at that location.
couldn't read file "mit/uAMPS/ns-leach.tcl": no such file or directory while executing "source.orig mit/uAMPS/ns-leach.tcl" ("uplevel" body line 1) invoked from within "uplevel source.orig[list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig[list $fileName] ..." (procedure "source" line 8) invoked from within "source mit/uAMPS/ns-leach.tcl" (file "leach.tcl" line 7) please reply quickly |
# 212, @ayaan
The "sh test" command must be done in ns-allinone-2.34/ns-2.34/ for the files to be found. # 213, @kinjal_patel : Probably the same as above. And : This thread is not about LEACH + ns-2.27. Please start a new thread, if you have further questions. ( Or : http://www.linuxquestions.org/questi...2-27-a-785379/ ) Please read the ns-2.27 thread too. . |
Hi all , ( I'm new to Linux and NS2)
I got LEACH installed properly (with the help of posts in this forum, thanks to knudfl). leach.out and leach.err are okay... But how Can we get the LEACH on nam console i.e, which tcl file should I execute to see the topology on NAM console? Please help me through this .. :-( @knufdl thanks for all the help. Please get back to me with solution. |
hi,
Thanks everyone. I've been able to integrate LEACH with your help. can anyone tell me if it possible anyway to view the simulation results in 'nam'. I also want to know if anyone can help me in integrating SPIN. I've searched many threads with no success so far. Please help me out. Thanks. |
Please help me!!! First I got the simulation successfully but later I dont find any result in leach.out
Please help me :( :( leach.err has the following Code:
couldn't read file "tcl/lib/ns-mobilenode.tcl": no such file or directory |
Hey everyone .I'm trying to simulate the LEACH-C but getting the following errors, Leach works perfectly!can any one help me to solve this problem.
can't read "env(uAMPS_LIBRARY)": no such variable while executing "source $env(uAMPS_LIBRARY)/ns-leach.tcl" (file "tcl/mobility/leach-c.tcl" line 7) invoked from within "source.orig tcl/mobility/leach-c.tcl" ("uplevel" body line 1) invoked from within "uplevel source.orig[list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig[list $fileName] ..." (procedure "source" line 8) invoked from within "source tcl/mobility/$opt(rp).tcl" (file "tcl/ex/wireless.tcl" line 187) |
Hi,
I have been trying to run leach protocol on ns-2.34 using ubuntu 10.10 as platform for quite sometime now but am stuck with some problems please be kind enough to help me. I have been referring to posts # 51,52,53,56,58 of this thread since i was facing similar errors but to no avail. I have edited my uAMPs.tcl as in the mentioned posts in this way Code:
############################################################################ Code:
couldn't read file "/opt/ns-allinone-2.34/ns-2.34/mit/rca/ns-ranode.tcl": no such file or directory Please help me out. Regards |
Hi
I have solved this problem of mine.Lot of mistakes on my part.My bad.Just another doubt the leach.out file although tells me that the simulation is complete it includes a lot of warnings such as this Code:
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff Thank you so much.This thread has been really helpful :) |
Quote:
|
LEACH in ns2.34
hey guys,
after following all the instructions, iam at 'make' now..and getting following error:: mac/mac-802_11.cc: In constructor ‘Mac802_11::Mac802_11()’: mac/mac-802_11.cc:190: error: no matching function for call to ‘BeaconTimer::BeaconTimer()’ mac/mac-timers.h:97: note: candidates are: BeaconTimer::BeaconTimer(Mac802_11*) mac/mac-timers.h:95: note: BeaconTimer::BeaconTimer(const BeaconTimer&) mac/mac-802_11.cc:190: error: no matching function for call to ‘ProbeTimer::ProbeTimer()’ mac/mac-timers.h:105: note: candidates are: ProbeTimer::ProbeTimer(Mac802_11*) mac/mac-timers.h:103: note: ProbeTimer::ProbeTimer(const ProbeTimer&) make: *** [mac/mac-802_11.o] Error 1 kindly help!! |
# 222.
Wrong OS ? Wrong compiler ? Please specify. I.e the used Linux OS should be specified by every question .. http://www.linuxquestions.org/linux/...Ask_a_Question http://linuxsilo.net/docs/smart-questions_en.html . |
How to analyse data in leach on ns2.34
Hi
I want to know that how to work with leach.out file and leach.tr file I want to plot graph for avg. energy consumption ,control overhead, network lifetime,avg.delivery ratio, load balancing at each node...etc..... I have awk file for leach which can be used for end-to-end delay and throughput http://mohittahiliani.blogspot.in/20...s-for-ns2.html total no.of dropped packets are 0 and end to end delays is also always 0 when I measure with my leach.tr file can anyone please help me? Leach protocol also generate TDMA schedule but i dont knw how can we use for our analysis? Please its urgent.... |
#222,
scoder, I think you are using the wrong MAC layer Did you include the mac files written for LEACH ? |
All times are GMT -5. The time now is 10:23 AM. |