LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2017, 01:51 AM   #1
yaya12345
LQ Newbie
 
Registered: Mar 2017
Posts: 1

Rep: Reputation: Disabled
Error in Running NS-2 ( Invalid command name "DataGenerator/HeartrateDataGenerator")


Hi.

I'm newbie in using NS2.

I tried to write own cc file. However, I got error of invalid command name. I'd added class name DataGenerator/HeartrateDataGenerator in ns-default.tcl in both ns-allinone & ns-allinone-mannasim folders.


Below is the error in detail:
$ ./ns235-mannasim ../../../enac/coding/heartrateaida.tcl

num_nodes is set 30
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "DataGenerator/HeartrateDataGenerator"
while executing
"DataGenerator/HeartrateDataGenerator create _o84 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new DataGenerator/HeartrateDataGenerator"
(procedure "create_heartrate_data_generator" line 2)
invoked from within
"create_heartrate_data_generator 3.0 0 25.0 1.0"
(procedure "create_common_node" line 54)
invoked from within
"create_common_node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(n_common)} {incr i} {
create_common_node
}"
(file "../../../enac/coding/heartrateaida.tcl" line 345)





Your kind assistance is in need. Thank you.


Best Regards,
yaya12345
 
  


Reply

Tags
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
invalid command name "config_link". NS2 error. mariio Linux - Networking 10 05-09-2016 07:41 AM
invalid command name "-llType" while executing "-llType $val(ll) \ " -----error dalalami21 Linux - Software 0 03-02-2013 12:44 PM
"Invalid Command" error running .sh script nixanwin Linux - Newbie 4 07-18-2011 10:49 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
Apache2 Error on Start "Invalid Command" Salen Linux - Newbie 1 12-29-2005 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:23 AM.

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