Code: Select all
NEURON {
POINT_PROCESS Isyn
RANGE gmax, g, i,e
GLOBAL alpha,beta,thetasyn
NONSPECIFIC_CURRENT i
POINTER vpre
}
UNITS {
(nA) = (nanoamp)
(mV) = (millivolt)
(uS) = (microsiemens)
}
PARAMETER {
gmax=0.00001 (uS)
alpha=15 (/ms)
beta=0.11 (/ms)
e=-80 (mV)
thetasyn=0 (mV)
}
ASSIGNED { vpre (mV) v (mV) i (nA) g (uS) }
STATE { s }
INITIAL {
s = alpha*F(vpre)/(alpha*F(vpre)+beta)
}
BREAKPOINT {
g = gmax * s
i = g*(v - e)
}
DERIVATIVE state {
s' = alpha*F(vpre)*(1-s) - beta*s
}
FUNCTION F (w (mV)) {
UNITSOFF
F = 1/(1+ exp(-(w-thetasyn)/2))
UNITSON
}
What I want is simply to set say a new variable z = s(t-delay) and then make g=gmax*z or else keep "s" as it is and make a delay in the pointer vpre, ie make it represent the voltage of my presynaptic cell a delayed time ago.
Can you help me?
Thank you for your attention!