Hi, Currently I am developing my own protocol on NS-2 in wireless networks.
I try to execute a tcl command in my C++ code to add a box on an existing nodes. I use the following command: Tcl& tcl = Tcl::instance(); sprintf(tcl.buffer(), "$node_(%d) add-mark m0 red box", id); And I check the .nam file, there is such a record there at certain time to add a red box to a node. However, when I actually running the Nam to show the progress, I find that nam does not read every line in the .nam file and show it. So, in my case, sometimes even there is the line in the .nam file to add a red box, but it does not add a red box in the animation. And most time, some nodes has a red box but some do not have. So I guess when you set your step speed very fast, nam actually skip some lines in the .nam file. So, is there any way to let nam actually read every line and show it in the animation? Or could I specify certain lines that nam will not skip? Or can I let nam not skip the line that add a box to a node? Thank you. Best Regards, Yi Gong