Variable names as variables
Posted: Mon Aug 14, 2006 11:50 am
I am trying to implement a general cross-correlation GUI where the user types in the variable names to be cross-correlated. I have two problems.
1) How can I make a field where the user can type the name of the variable? Alternatively, how can I interface with the variable window that comes up in the "Plot What?" of a graph to obtain variables/ variable names?
2) Given a user-defined variable as just described, how can I then use it in cvode.record()? The problem is that I can hard-code a variable name in hoc code, but I do not see a way to have the first parameter dynamically assigned.
Thanks,
Tom
1) How can I make a field where the user can type the name of the variable? Alternatively, how can I interface with the variable window that comes up in the "Plot What?" of a graph to obtain variables/ variable names?
2) Given a user-defined variable as just described, how can I then use it in cvode.record()? The problem is that I can hard-code a variable name in hoc code, but I do not see a way to have the first parameter dynamically assigned.
Thanks,
Tom