: IClamp2.mod codes step current injection during current-clamp recoding.
:
: Takaki Watanabe
: wtakaki@m.u-tokyo.ac.jp
NEURON {
POINT_PROCESS IClamp2
RANGE del, dur, invl, amp, i
ELECTRODE_CURRENT i
}
UNITS {
(nA) = (nanoamp)
}
PARAMETER {
del (ms)
dur (ms) <0,1e9>
invl (ms) <0,1e9>
amp (nA)
}
ASSIGNED { i (nA) }
INITIAL {
i = 0
}
BREAKPOINT {
at_time(del)
at_time(del+dur)
if (t < del + dur && t >= del ) {
i = amp
}else{
i = 0
}
}