[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Problems with bind...



Hi,

I have some variables in my C++ program, for which I need input from the
tcl file.
So I declared them in the header file and then tried binding them from
the .cc file.

1) declaration: (in .h)
 double rho_targ ;  /* this is in the structure aro_p, and aro_p_ is of
type aro_p */

2) binding(in .cc)
bind("rho_targ_", &aro_p_.rho_targ);

3) in ns-default.tcl file
Queue/ARO set rho_targ_ 0.9

4) And in simulation  tcl file
Queue/ARO set rho_targ_ 0.8

But the problem I am facing is that, this new value of 0.8 isnt binded
to the C++ variable rho_targ. It still has the default value.
How can I come over this?

Thanks
-Ganesh



--