LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


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


Reply


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


All times are GMT -5. The time now is 12:47 PM.

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