When delay is more than 200 ms everything works fine.
I can send you a test model if you want.
Code: Select all
NEURON -- VERSION 7.2 (522:60f37c136abb) 2011-06-02
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
Code: Select all
NEURON -- VERSION 7.2 (522:60f37c136abb) 2011-06-02
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
Haven't seen this ever. I'm using 7.2 (524:1a4443872b11) and it doesn't happen. Suggest you try the very latest alpha version, which isKeivan wrote:ICamp injects current from t=0 if delay (of IClamp) is less than 200 ms.
When delay is more than 200 ms everything works fine.
Code: Select all
//initialize it to steady state
INITDUR = 300 // # ms to reach steady state
proc init() {
finitialize(v_init)
t = -2*INITDUR // jump to a time "before" 0
temp = cvode.active()
if (temp != 0) { // if cvode is on, turn it off
cvode.active(0)
dt = 0.025
}
while (t < INITDUR) {
fadvance()
}
if (temp != 0) { cvode.active(1) } // turn cvode back on if necessary
t = 0
if (cvode.active()) {
cvode.re_init()
} else {
fcurrent()
}
frecord_init()
}
Code: Select all
while (t < 0) {
fadvance()
}
Did the code I sent you really do this?Keivan wrote:I use this init() code you gave me before:
Code: Select all
INITDUR = 300 // # ms to reach steady state
proc init() {
. . .
t = -2*INITDUR // jump to a time "before" 0
. . .
while (t < INITDUR) {
Code: Select all
while (t < -INITDUR) {