LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-13-2012, 05:26 AM   #16
revathhy
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled

when i executed
Code:
ns tcl/ex/flooding.tcl
i got this error message.

Code:
running nam...
ns: finish: couldn't execute "nam": no such file or directory
    while executing
"exec nam flooding.nam &"
    (procedure "finish" line 8)
    invoked from within
"finish"
what does this means? how to rectify this.

thanks in advance.
 
Old 02-13-2012, 05:38 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Quote:
ns: finish: couldn't execute "nam"
Nam is a separate application. Any binary 'nam' can be used.
I guess you may have one that works, from one of your installs.

cd ns-allinone-2.<?>/nam-<?> ; su ; cp nam /usr/local/bin/

.
 
Old 03-07-2012, 11:47 AM   #18
revathhy
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
thanks knudl. nam is working fine.
In the codes scripts that i downloaded from the mannasim webpage (Flat homogeneous network TCL Script), i included the following lines for the nam visualisation.

Code:
set namtrace [open mannasim.nam w]
$ns_ namtrace-all-wireless $namtrace 500 500
and modified proc finish as

Code:
global ns_ traceFile namtrace
$ns_ flush-trace
close $traceFile
close $namtrace
exec nam mannasim.nam &
exit 0
when i execute the code, the nam animator is opening but is empty (it does not even show nodes).Why this problem arises? does mannasim support nam animator.

Last edited by revathhy; 03-07-2012 at 11:48 AM.
 
Old 03-07-2012, 12:27 PM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
The basic Template.tcl :
Code:
# start with these lines :

set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf

proc finish {} {
        global ns nf
        $ns flush-trace
        close $nf
        exec nam out.nam &
        exit 0
}

#######################
#
#    Write all other commands here.
#
#######################

# end with :

$ns at 5.0 "finish"
$ns run
I.e. nam is activated in a certain way.
.
 
Old 03-08-2012, 01:24 AM   #20
revathhy
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
i have exactly added the same code for nam activation. but still it is not working.
 
Old 04-05-2012, 03:14 PM   #21
ibrahym
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Unhappy

hi!
i installed ns 2.29 patched with mannasim evry thing seems working good but when i try to simulate mannasim-rede-hierarquica.tcl
that's what i have:


ibrahym@ibrahym-Compaq-610:~/ns-allinone-2.29/paulson/sample-codes/mannasim$ ns mannasim-rede-hierarquica.tcl
num_nodes is set 14
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "EnergyModel/Battery"
while executing
"EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2"
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 $energyModel_ $node $initialEnergy_ $l1 $l2"
invoked from within
"if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {..."
(procedure "_o3" line 106)
(Simulator create-wireless-node line 106)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_sink" line 8)
invoked from within
"create_sink"
(file "mannasim-rede-hierarquica.tcl" line 351)
ibrahym@ibrahym-Compaq-610:~/ns-allinone-2.29/paulson/sample-codes/mannasim$

please i need helpe
 
Old 04-07-2012, 12:18 AM   #22
revathhy
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thumbs up

hi ibrahym.

i too had the same problem once.
type

Code:
echo PATH
and see whether you have ~/ns-allinone-2.29/bin ,~/ns-allinone-2.29/tcl-<?>/unix,~/ns-allinone-2.29/tck-<?>/unix and ~/ns-allinone-2.29/nam-<?> in the PATH variable.

if not, do as stated in posts #14 and #17 in this thread.
 
Old 04-09-2012, 01:10 AM   #23
ibrahym
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by revathhy View Post
hi ibrahym.

i too had the same problem once.
type

Code:
echo PATH
and see whether you have ~/ns-allinone-2.29/bin ,~/ns-allinone-2.29/tcl-<?>/unix,~/ns-allinone-2.29/tck-<?>/unix and ~/ns-allinone-2.29/nam-<?> in the PATH variable.

if not, do as stated in posts #14 and #17 in this thread.
thank you very much for the reply, I reinstalled ubuntu and ns with mannasim and it works finally, but there is many warnings, please watch until the end:
PHP Code:
ibrahym@ibrahym-laptop:~/ns-allinone-2.29/paulson/sample-codes/mannasimns mannasim-rede-plana.tcl
num_nodes is set 12
warning
Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning
no class variable Node/MobileNode/SensorNode::sensingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Node/MobileNode/SensorNode::processingPower_

warning
no class variable Node/MobileNode/SensorNode::instructionsPerSecond_

INITIALIZE THE 
LIST xListHead
warning
no class variable Node/MobileNode/SensorNode::sensingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Node/MobileNode/SensorNode::processingPower_

warning
no class variable Node/MobileNode/SensorNode::instructionsPerSecond_

warning
no class variable Application/AccessPointApp::destination_id_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/AccessPointApp::request_type_

warning
no class variable Application/AccessPointApp::node_id_

warning
no class variable Application/AccessPointApp::diretorio

warning
no class variable Node/MobileNode/SensorNode::sensingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Node/MobileNode/SensorNode::processingPower_

warning
no class variable Node/MobileNode/SensorNode::instructionsPerSecond_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

Starting Simulation
...
Node 02 Temperature Data 24.785911 Time 9.134562
Node 07 
Temperature Data 25.325701 Time 9.216122
Node 09 
Temperature Data 25.204380 Time 9.229945
Node 04 
Temperature Data 23.910556 Time 9.309618
Node 08 
Temperature Data 25.342163 Time 9.318314
Node 03 
Temperature Data 25.244639 Time 9.481135
Node 05 
Temperature Data 26.523360 Time 9.666223
Node 10 
Temperature Data 24.646680 Time 9.780578
Node 11 
Temperature Data 25.706826 Time 9.782013
Node 06 
Temperature Data 24.633461 Time 9.906399
Common Node 7 
Disseminating data -  Time 11.216 Destination node 1
channel
.cc:sendUp Calc highestAntennaZ_ and distCST_
highestAntennaZ_ 
1.5,  distCST_ 129.1
SORTING LISTS 
...DONE!
Access point Received a message with 1 elements
Message received from node 7 with 2.004404 delay 
::: 9.216122 11.220526
Common Node 4 
Disseminating data -  Time 11.310 Destination node 1
Access point 
Received a message with 1 elements
Message received from node 4 with 2.004274 delay 
::: 9.309618 11.313892
Common Node 8 
Disseminating data -  Time 11.318 Destination node 1
Access point 
Received a message with 1 elements
Message received from node 8 with 2.004323 delay 
::: 9.318314 11.322637
Common Node 5 
Disseminating data -  Time 11.666 Destination node 1
Access point 
Received a message with 1 elements
Message received from node 5 with 2.004313 delay 
::: 9.666223 11.670536
Common Node 10 
Disseminating data -  Time 11.781 Destination node 1
Access point 
Received a message with 1 elements
Message received from node 10 with 2.004473 delay 
::: 9.780578 11.785051
Node 02 
Temperature Data 25.266990 Time 12.134562
Node 07 
Temperature Data 25.465053 Time 12.216122
Node 09 
Temperature Data 23.909440 Time 12.229945
Node 04 
Temperature Data 23.102247 Time 12.309618
Node 08 
Temperature Data 24.786141 Time 12.318314
Node 03 
Temperature Data 24.167327 Time 12.481135
Node 05 
Temperature Data 23.301923 Time 12.666223
Node 10 
Temperature Data 23.986573 Time 12.780578
Node 11 
Temperature Data 25.469016 Time 12.782013
Node 06 
Temperature Data 24.404964 Time 12.906399
NS EXITING
...
ibrahym@ibrahym-laptop:~/ns-allinone-2.29/paulson/sample-codes/mannasim
 
Old 04-09-2012, 05:10 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
#23
Code:
Starting Simulation...
Node 02 - Temperature Data 24.785911 - Time 9.134562
Node 07 - Temperature Data 25.325701 - Time 9.216122
Node 09 - Temperature Data 25.204380 - Time 9.229945
Node 04 - Temperature Data 23.910556 - Time 9.309618
Node 08 - Temperature Data 25.342163 - Time 9.318314
Node 03 - Temperature Data 25.244639 - Time 9.481135
Node 05 - Temperature Data 26.523360 - Time 9.666223
Node 10 - Temperature Data 24.646680 - Time 9.780578
Node 11 - Temperature Data 25.706826 - Time 9.782013
Node 06 - Temperature Data 24.633461 - Time 9.906399
Common Node 7 - Disseminating data -  Time 11.216 - Destination node 1
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 129.1
SORTING LISTS ...DONE!
Access point - Received a message with 1 elements
Message received from node 7 with 2.004404 delay ::: 9.216122 11.220526
Common Node 4 - Disseminating data -  Time 11.310 - Destination node 1
Access point - Received a message with 1 elements
Message received from node 4 with 2.004274 delay ::: 9.309618 11.313892
Common Node 8 - Disseminating data -  Time 11.318 - Destination node 1
Access point - Received a message with 1 elements
Message received from node 8 with 2.004323 delay ::: 9.318314 11.322637
Common Node 5 - Disseminating data -  Time 11.666 - Destination node 1
Access point - Received a message with 1 elements
Message received from node 5 with 2.004313 delay ::: 9.666223 11.670536
Common Node 10 - Disseminating data -  Time 11.781 - Destination node 1
Access point - Received a message with 1 elements
Message received from node 10 with 2.004473 delay ::: 9.780578 11.785051
Node 02 - Temperature Data 25.266990 - Time 12.134562
Node 07 - Temperature Data 25.465053 - Time 12.216122
Node 09 - Temperature Data 23.909440 - Time 12.229945
Node 04 - Temperature Data 23.102247 - Time 12.309618
Node 08 - Temperature Data 24.786141 - Time 12.318314
Node 03 - Temperature Data 24.167327 - Time 12.481135
Node 05 - Temperature Data 23.301923 - Time 12.666223
Node 10 - Temperature Data 23.986573 - Time 12.780578
Node 11 - Temperature Data 25.469016 - Time 12.782013
Node 06 - Temperature Data 24.404964 - Time 12.906399
NS EXITING...
That's an OK result. Warnings are information, not errors.
 
Old 04-09-2012, 10:52 AM   #25
ibrahym
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
#23
Code:
Starting Simulation...
Node 02 - Temperature Data 24.785911 - Time 9.134562
Node 07 - Temperature Data 25.325701 - Time 9.216122
Node 09 - Temperature Data 25.204380 - Time 9.229945
Node 04 - Temperature Data 23.910556 - Time 9.309618
Node 08 - Temperature Data 25.342163 - Time 9.318314
Node 03 - Temperature Data 25.244639 - Time 9.481135
Node 05 - Temperature Data 26.523360 - Time 9.666223
Node 10 - Temperature Data 24.646680 - Time 9.780578
Node 11 - Temperature Data 25.706826 - Time 9.782013
Node 06 - Temperature Data 24.633461 - Time 9.906399
Common Node 7 - Disseminating data -  Time 11.216 - Destination node 1
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 129.1
SORTING LISTS ...DONE!
Access point - Received a message with 1 elements
Message received from node 7 with 2.004404 delay ::: 9.216122 11.220526
Common Node 4 - Disseminating data -  Time 11.310 - Destination node 1
Access point - Received a message with 1 elements
Message received from node 4 with 2.004274 delay ::: 9.309618 11.313892
Common Node 8 - Disseminating data -  Time 11.318 - Destination node 1
Access point - Received a message with 1 elements
Message received from node 8 with 2.004323 delay ::: 9.318314 11.322637
Common Node 5 - Disseminating data -  Time 11.666 - Destination node 1
Access point - Received a message with 1 elements
Message received from node 5 with 2.004313 delay ::: 9.666223 11.670536
Common Node 10 - Disseminating data -  Time 11.781 - Destination node 1
Access point - Received a message with 1 elements
Message received from node 10 with 2.004473 delay ::: 9.780578 11.785051
Node 02 - Temperature Data 25.266990 - Time 12.134562
Node 07 - Temperature Data 25.465053 - Time 12.216122
Node 09 - Temperature Data 23.909440 - Time 12.229945
Node 04 - Temperature Data 23.102247 - Time 12.309618
Node 08 - Temperature Data 24.786141 - Time 12.318314
Node 03 - Temperature Data 24.167327 - Time 12.481135
Node 05 - Temperature Data 23.301923 - Time 12.666223
Node 10 - Temperature Data 23.986573 - Time 12.780578
Node 11 - Temperature Data 25.469016 - Time 12.782013
Node 06 - Temperature Data 24.404964 - Time 12.906399
NS EXITING...
That's an OK result. Warnings are information, not errors.
thanks a lot, that's ok
 
Old 07-31-2012, 10:35 PM   #26
alzaq
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by ibrahym View Post
thank you very much for the reply, I reinstalled ubuntu and ns with mannasim and it works finally, but there is many warnings, please watch until the end:
PHP Code:
ibrahym@ibrahym-laptop:~/ns-allinone-2.29/paulson/sample-codes/mannasimns mannasim-rede-plana.tcl
num_nodes is set 12
warning
Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning
no class variable Node/MobileNode/SensorNode::sensingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Node/MobileNode/SensorNode::processingPower_

warning
no class variable Node/MobileNode/SensorNode::instructionsPerSecond_

INITIALIZE THE 
LIST xListHead
warning
no class variable Node/MobileNode/SensorNode::sensingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Node/MobileNode/SensorNode::processingPower_

warning
no class variable Node/MobileNode/SensorNode::instructionsPerSecond_

warning
no class variable Application/AccessPointApp::destination_id_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/AccessPointApp::request_type_

warning
no class variable Application/AccessPointApp::node_id_

warning
no class variable Application/AccessPointApp::diretorio

warning
no class variable Node/MobileNode/SensorNode::sensingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Node/MobileNode/SensorNode::processingPower_

warning
no class variable Node/MobileNode/SensorNode::instructionsPerSecond_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

warning
no class variable Node/MobileNode/SensorNode::processingPower_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable Application/SensorBaseApp/CommonNodeApp::disseminating_interval_

warning
no class variable Application/SensorBaseApp/CommonNodeApp::destination_id_

warning
no class variable DataGenerator/TemperatureDataGenerator::sensing_type_

    see tcl
-object.tcl in tclcl for info about this warning.

warningno class variable DataGenerator/TemperatureDataGenerator::sensing_interval_

warning
no class variable DataGenerator/TemperatureDataGenerator::avg_measure

warning
no class variable DataGenerator/TemperatureDataGenerator::std_deviation

warning
no class variable DataGenerator/TemperatureDataGenerator::maximumTemperatureValue

Starting Simulation
...
Node 02 Temperature Data 24.785911 Time 9.134562
Node 07 
Temperature Data 25.325701 Time 9.216122
Node 09 
Temperature Data 25.204380 Time 9.229945
Node 04 
Temperature Data 23.910556 Time 9.309618
Node 08 
Temperature Data 25.342163 Time 9.318314
Node 03 
Temperature Data 25.244639 Time 9.481135
Node 05 
Temperature Data 26.523360 Time 9.666223
Node 10 
Temperature Data 24.646680 Time 9.780578
Node 11 
Temperature Data 25.706826 Time 9.782013
Node 06 
Temperature Data 24.633461 Time 9.906399
Common Node 7 
Disseminating data -  Time 11.216 Destination node 1
channel
.cc:sendUp Calc highestAntennaZ_ and distCST_
highestAntennaZ_ 
1.5,  distCST_ 129.1
SORTING LISTS 
...DONE!
Access point Received a message with 1 elements
Message received from node 7 with 2.004404 delay 
::: 9.216122 11.220526
Common Node 4 
Disseminating data -  Time 11.310 Destination node 1
Access point 
Received a message with 1 elements
Message received from node 4 with 2.004274 delay 
::: 9.309618 11.313892
Common Node 8 
Disseminating data -  Time 11.318 Destination node 1
Access point 
Received a message with 1 elements
Message received from node 8 with 2.004323 delay 
::: 9.318314 11.322637
Common Node 5 
Disseminating data -  Time 11.666 Destination node 1
Access point 
Received a message with 1 elements
Message received from node 5 with 2.004313 delay 
::: 9.666223 11.670536
Common Node 10 
Disseminating data -  Time 11.781 Destination node 1
Access point 
Received a message with 1 elements
Message received from node 10 with 2.004473 delay 
::: 9.780578 11.785051
Node 02 
Temperature Data 25.266990 Time 12.134562
Node 07 
Temperature Data 25.465053 Time 12.216122
Node 09 
Temperature Data 23.909440 Time 12.229945
Node 04 
Temperature Data 23.102247 Time 12.309618
Node 08 
Temperature Data 24.786141 Time 12.318314
Node 03 
Temperature Data 24.167327 Time 12.481135
Node 05 
Temperature Data 23.301923 Time 12.666223
Node 10 
Temperature Data 23.986573 Time 12.780578
Node 11 
Temperature Data 25.469016 Time 12.782013
Node 06 
Temperature Data 24.404964 Time 12.906399
NS EXITING
...
ibrahym@ibrahym-laptop:~/ns-allinone-2.29/paulson/sample-codes/mannasim
to remove the warnning, you have to edit the following file tcl/lib/ns-default.tcl
and add the following lines
Code:
#DataGenerator set sensing_interval_ 0.0
#DataGenerator set sensing_type_ 0

DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0
DataGenerator/TemperatureDataGenerator set sensing_type_ 0
DataGenerator/TemperatureDataGenerator set avg_measure 25.0
DataGenerator/TemperatureDataGenerator set std_deviation 1.0
DataGenerator/TemperatureDataGenerator set maximumTemperatureValue 00.0

DataGenerator/CarbonMonoxideDataGenerator set sensing_interval_ 0.0
DataGenerator/CarbonMonoxideDataGenerator set sensing_type_ 0
DataGenerator/CarbonMonoxideDataGenerator set avg_measure 3000.0
DataGenerator/CarbonMonoxideDataGenerator set std_deviation 100.0
DataGenerator/CarbonMonoxideDataGenerator set maximumCarbonMonoxideValue 0.0

Application/SensorBaseApp set disseminating_type_ 0
Application/SensorBaseApp set disseminating_interval_ 0.0
Application/SensorBaseApp set destination_id_ 0

Application/SensorBaseApp/CommonNodeApp set disseminating_type_ 0
Application/SensorBaseApp/CommonNodeApp set disseminating_interval_ 0.0
Application/SensorBaseApp/CommonNodeApp set destination_id_ 0

Node/MobileNode/SensorNode set sensingPower_ 0.5
Node/MobileNode/SensorNode set processingPower_ 0.5
Node/MobileNode/SensorNode set instructionsPerSecond_ 100000000

Application/AccessPointApp set outside_network_ 0
Application/AccessPointApp set request_type_ 0
Application/AccessPointApp set destination_id_ 0
Application/AccessPointApp set node_id_ 0
Application/AccessPointApp set diretorio 0
 
1 members found this post helpful.
Old 10-03-2013, 06:07 AM   #27
nasgelicvijay
LQ Newbie
 
Registered: Oct 2013
Posts: 12

Rep: Reputation: Disabled
Question Same Query_Please give me suggestions!!

couldn't open "mannasim-rede-hierarquica.tr": permission denied
while executing
"open mannasim-rede-hierarquica.tr w"
invoked from within
"set traceFile [open mannasim-rede-hierarquica.tr w]"
(file "man1.tcl" line 117)
lenovo@ubuntu:/usr/local/ns-allinone-2.35/paultsr/sample-codes$ su
Password:
root@ubuntu:/usr/local/ns-allinone-2.35/paultsr/sample-codes# ns man1.tcl
num_nodes is set 14
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "EnergyModel/Battery"
while executing
"EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2"
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 $energyModel_ $node $initialEnergy_ $l1 $l2"
invoked from within
"if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {..."
(procedure "_o3" line 115)
(Simulator create-wireless-node line 115)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_sink" line 8)
invoked from within
"create_sink"
(file "man1.tcl" line 351)
 
Old 10-03-2013, 08:17 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Post #27, @nasgelicvijay : Welcome to LQ.
Quote:
couldn't open "mannasim-rede-hierarquica.tr": permission denied
"permission denied" : The file is owned by root.


Quote:
# ns man1.tcl
What is "man1.tcl" ? ?
Please attach the file as man1.tcl.txt .
Attachments : The paper clip tool in the "Advanced Editor".


! Code / your error output must be shown in "code tags" !
I.e. type [/code] at text end, and [code] at text start.
http://www.linuxquestions.org/questi....php?do=bbcode
Please edit post #1 to use code tags.

-
 
  


Reply

Tags
mannasim, 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
make: CC: Command not found make: *** [main.o] Error 127 on opensuse 11.3 Leo89 Linux - Newbie 6 11-30-2012 06:13 PM
Can't build RRDTool on RHEL4 - 'make' command give error message Dialkia Linux - Newbie 3 03-22-2010 05:33 AM
glibc 2.5.1 errror @d4M Linux From Scratch 2 01-18-2009 01:06 AM
neat command not working azx_get_response timeout message in /var/log/message ninadshaha Red Hat 1 02-19-2008 03:32 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 08:55 PM


All times are GMT -5. The time now is 10:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration