Hi every one! When I run my tcl file it gives the following Error Starting Simulation... Total Number of Nodes... 100 Total Number of Interfaces... 1 Total Number of Channels... 8 Total Number of Acs Channels... 5
--------------------------------------------------- ns: _o24 manage-channels 8 5: (_o24 cmd line 1) invoked from within "_o24 cmd manage-channels 8 5" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o24" line 2) (SplitObject unknown line 2) invoked from within "_o24 manage-channels 8 5" and the C++ code is below, help me what should I do if(strcmp(argv[1], "manage-channels") == 0) { cout<<"In AODV.cc, magange-channels "<<endl; aodv_total_channels = atoi(argv[2]); aodv_acs_channels = atoi(argv[3]); Calculate_TTL(); Manage_Channels(); Initialize_Global_Variables(); return TCL_OK; } and the TCL code is here $ns_ at 0.0 "$ragent_(0) manage-channels $val(channum) $val(acschan)"; # manage channels at network layer