LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to access/print a variable in .cc file into tcl script ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-access-print-a-variable-in-cc-file-into-tcl-script-4175564674/)

lintreesa 01-21-2016 01:57 AM

how to access/print a variable in .cc file into tcl script ?
 
3 Attachment(s)
Hi

I have to change the value of the variable double sense_time_, double transmit_time_, which is declared and initialized in the classes SpectrumManager.h and SpectrumManager.cc files (see the attachment). I found the object for the class SpectrumManager is created in the file Mac-802_11.c file and the sense_time_ and transmit_time is initialized with values 0.1 and 1.0 respectively.

My question is how can I change the values of these variables through tcl script , so that I can change the values and run the simulation for different times.

Can any one please help me to solve this

Thanks in advance


All times are GMT -5. The time now is 11:53 AM.