Page 1 of 1

leak potassium current

Posted: Tue Jul 24, 2007 12:35 pm
by thats_karlo
Hi,
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)
}
but it gives this error:
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

Posted: Sun Jul 29, 2007 4:29 pm
by hines

Code: Select all

USEION K READ ek WRITE ik
need lower case K for the ion name,
otherwise the associated variables are
eK, iK, Ki, Ko

Posted: Tue Jul 31, 2007 4:56 pm
by thats_karlo
Ooops!!!! I really had a bad mistake!!!

Thank you so much for helping me!