| 1 |
COMMENT |
| 2 |
Current-based version of the conductance-based model exp1syn (refer to the exp1syn.mod) |
| 3 |
In this model the synatic current is defined as i = g*e, whereas in the conductance based model i = g*(v - e). |
| 4 |
Since the current is proportional to conductance, this model may be used to report the values of conductance by recording the current. |
| 5 |
|
| 6 |
|
| 7 |
Implemented by Sergey L. Gratiy |
| 8 |
|
| 9 |
ENDCOMMENT |
| 10 |
|
| 11 |
NEURON { |
| 12 |
POINT_PROCESS exp1isyn |
| 13 |
RANGE tau, e, i |
| 14 |
NONSPECIFIC_CURRENT i |
| 15 |
} |
| 16 |
|
| 17 |
UNITS { |
| 18 |
(nA) = (nanoamp) |
| 19 |
(mV) = (millivolt) |
| 20 |
(uS) = (microsiemens) |
| 21 |
} |
| 22 |
|
| 23 |
PARAMETER { |
| 24 |
tau = 0.1 (ms) <1e-9,1e9> |
| 25 |
e = 0 (mV) |
| 26 |
} |
| 27 |
|
| 28 |
ASSIGNED { |
| 29 |
v (mV) |
| 30 |
i (nA) |
| 31 |
} |
| 32 |
|
| 33 |
STATE { |
| 34 |
g (uS) |
| 35 |
} |
| 36 |
|
| 37 |
INITIAL { |
| 38 |
g=0 |
| 39 |
} |
| 40 |
|
| 41 |
BREAKPOINT { |
| 42 |
SOLVE state METHOD cnexp |
| 43 |
i = g*e |
| 44 |
} |
| 45 |
|
| 46 |
DERIVATIVE state { |
| 47 |
g' = -g/tau |
| 48 |
} |
| 49 |
|
| 50 |
NET_RECEIVE(weight (uS)) { |
| 51 |
g = g + weight |
| 52 |
} |