Non square IClamp
Posted: Thu Aug 17, 2006 10:48 pm
I want to make an Iclamp that is not really square but instead it follows a sigmoidal at time "del" until it reaches a steady current and then it follows the same sigmoidal inversely at time "del+dur". So far I can make the first sigmoidal but I can't join it with the downward sigmoidal. Here is the code:
COMMENT
Sigmoidal current
ENDCOMMENT
NEURON {
POINT_PROCESS IClampr
RANGE del,a,b,dur,amp,i
ELECTRODE_CURRENT i
}
UNITS {(nA)= (nanoamp)}
PARAMETER {
del=10 (ms)
a=1.5 (ms)
b=0.12 (ms)
dur=30 (ms) <0,1e9>
amp=-0.03 (nA)
}
ASSIGNED {i (nA)}
INITIAL {i=0}
BREAKPOINT {
: for (t<dur/2){
i=amp+(-amp/(1+exp((t-a)/b)))
: }
: for (t>dur/2){
i=amp/(1+exp((t-a)/b))
: }
}
I would also like to know where I can find a complete manual of MODL.
COMMENT
Sigmoidal current
ENDCOMMENT
NEURON {
POINT_PROCESS IClampr
RANGE del,a,b,dur,amp,i
ELECTRODE_CURRENT i
}
UNITS {(nA)= (nanoamp)}
PARAMETER {
del=10 (ms)
a=1.5 (ms)
b=0.12 (ms)
dur=30 (ms) <0,1e9>
amp=-0.03 (nA)
}
ASSIGNED {i (nA)}
INITIAL {i=0}
BREAKPOINT {
: for (t<dur/2){
i=amp+(-amp/(1+exp((t-a)/b)))
: }
: for (t>dur/2){
i=amp/(1+exp((t-a)/b))
: }
}
I would also like to know where I can find a complete manual of MODL.