leak potassium current
Posted: Tue Jul 24, 2007 12:35 pm
Hi,
for leak potassium current, i worte the following code:
but it gives this error:
Could you tell me where is my error?
and if we have several potassium current in the model, in "ASSIGNED" should we use the same name for all (e.g ik)?
I found another potassium leak *.mod file, which people use "pointprocesss" to define potassium leak current! which i don't know why?
await for your help!
karlo
for leak potassium current, i worte the following code:
Code: Select all
TITLE K leak current
NEURON {
SUFFIX Kl
USEION K READ ek WRITE ik
RANGE gkl
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
INDEPENDENT {t FROM 0 TO 1 WITH 100 (ms)}
PARAMETER {
ek = -90 (mV)
gkl = 0.001 (mho/cm2) : initialized conductance
}
ASSIGNED {
ik (mA/cm2)
}
BREAKPOINT {
ik = gkl*(v - ekl)
}
nocmodl I_kl
Translating I_kl.mod into I_kl.c
ek is not a valid ionic variable for K at line 6 in file I_kl.mod
RANGE gkl
^
Could you tell me where is my error?
and if we have several potassium current in the model, in "ASSIGNED" should we use the same name for all (e.g ik)?
I found another potassium leak *.mod file, which people use "pointprocesss" to define potassium leak current! which i don't know why?
await for your help!
karlo