Current record and plot
Posted: Tue May 07, 2013 2:01 pm
Hello
I made new current stimulation named "IClamp2" which is injecting the exponential current in the cell. Now I want to check it and be sure of it's correctness, but I don't know how record current and plot it in the graph. here is my code of "IClamp2" if it's helping:
: Exponential Current Clamp
NEURON {
POINT_PROCESS IClamp2
RANGE del, dur, amp, tau, i
ELECTRODE_CURRENT i
}
UNITS { (nA) = (nanoamp) }
PARAMETER {
del (ms)
dur (ms) <0, 1e9>
tau (ms)
amp (nA)
}
ASSIGNED { i (nA) }
INITIAL { i = 0 }
BREAKPOINT {
at_time(del)
at_time(del+dur)
if (t < del + dur && t > del) {
i = amp*(1-2.718^(-(t-del)/tau))
} else {
i = 0
}
}
I made new current stimulation named "IClamp2" which is injecting the exponential current in the cell. Now I want to check it and be sure of it's correctness, but I don't know how record current and plot it in the graph. here is my code of "IClamp2" if it's helping:
: Exponential Current Clamp
NEURON {
POINT_PROCESS IClamp2
RANGE del, dur, amp, tau, i
ELECTRODE_CURRENT i
}
UNITS { (nA) = (nanoamp) }
PARAMETER {
del (ms)
dur (ms) <0, 1e9>
tau (ms)
amp (nA)
}
ASSIGNED { i (nA) }
INITIAL { i = 0 }
BREAKPOINT {
at_time(del)
at_time(del+dur)
if (t < del + dur && t > del) {
i = amp*(1-2.718^(-(t-del)/tau))
} else {
i = 0
}
}