LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2015, 05:29 AM   #1
hbenlabbes
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Rep: Reputation: Disabled
Problems in energy model ns2


Hello everyone.
I try to run the model of enegy in NS2, the error that appear as follows:

warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
invalid command name "-energyModel"
while executing
"-energyModel $opt(energymodel) \
-rxPower 0.3 \
-txPower 0.6 \
-initialEnergy $opt(initialenergy)"

help me to solve this problem.
Thanks in advance

Last edited by hbenlabbes; 12-11-2015 at 05:32 AM.
 
Old 12-11-2015, 06:32 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Please read ....
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://www.catb.org/~esr/faqs/smart-questions.html
... I.e. some more information is required :
* The command you are using, like $ ns 1-simple.tcl
* ( The simulation file name is unknown.)

Finding files with EnergyModel, and -energyModel :
$ cd ns-2.xx/tcl/ex/ && grep -in energyModel *

All simulation files : all_tcl-examples-2.tar.gz ( ~2,000 files, 41.8 MB )
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd **All-examples/ && grep -in energyModel *

-
 
  


Reply

Tags
energy model, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
implementation of energy model in NS2 ali_it Programming 3 07-07-2015 11:43 AM
Trace for energy Model in ns2.31 ines8989 Linux - Networking 5 01-30-2014 11:13 AM
ns2 segmentation fault when using energy model edsionwang Programming 0 04-27-2013 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration