Page 1 of 1

changing a variable at specific times

Posted: Thu May 18, 2006 4:25 pm
by jtmoyer
what's the most efficient way to turn change a variable at a given time? i want to up-regulate a current at a specific time, leave it there for a few milliseconds, and then turn it back down. the best i can come up with is putting a few if statements in the advance block, but it seems like there must be a better way.

Posted: Thu May 18, 2006 4:43 pm
by ted
the best i can come up with is putting a few if statements in the advance block
Crude but effective.
but it seems like there must be a better way.
You bet there is. See
How to change parameters during a simulation
under "Hot tips" https://www.neuron.yale.edu/phpBB2/viewforum.php?f=28

Posted: Fri May 19, 2006 10:10 am
by jtmoyer
that is pretty cool.