INDEPENDENT {t FROM 0 TO 1 WITH 1 (ms)}
NEURON {
POINT_PROCESS lg_mcn1syn
POINTER vpre
RANGE gmax, g, e, i
NONSPECIFIC_CURRENT i
}
UNITS {
(nA) = (nanoamp)
(mV) = (millivolt)
(umho) = (micromho)
}
PARAMETER {
gmax=0 (umho)
e=0 (mV)
v (mV)
}
STATE { synon synoff
}
ASSIGNED {
i (nA)
g (umho)
vpre (mV)
}
BREAKPOINT {
SOLVE syn METHOD sparse
g = gmax *synon
i = g*(v - e)
}
KINETIC syn {
~ synoff <-> synon (syninf(vpre)/tausyn(vpre),(1-syninf(vpre))/tausyn(vpre))
}
FUNCTION syninf(v){
syninf = 1/(1+exp(-2*(v+30)))
}
FUNCTION tausyn(v){
tausyn = 30
}