Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-21-2016, 01:57 AM   #1
LQ Newbie
Registered: Apr 2013
Posts: 16

Rep: Reputation: Disabled
how to access/print a variable in .cc file into tcl script ?


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 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
Attached Files
File Type: txt mac-802_11.txt (48.5 KB, 7 views)
File Type: txt SpectrumManager.txt (6.6 KB, 12 views)
File Type: txt SpectrumManager1.txt (6.6 KB, 5 views)


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
used a same name variable in differents file TCL bayefalle Linux - General 3 12-10-2014 02:28 PM
How to import a variable from C++ program to TCL script? THX haiying7 Linux - Software 4 09-24-2012 07:31 PM
Need help with script writing: Storing cmd in variable, print variable, then exe cmds Arodef Programming 3 01-17-2012 12:26 AM
Imp for me: How to pass a variable from .tcl file to Makefile sun_sun Programming 6 11-27-2007 05:26 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration