leak potassium current

The basics of how to develop, test, and use models.
Post Reply
thats_karlo

leak potassium current

Post 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
hines
Site Admin
Posts: 1711
Joined: Wed May 18, 2005 3:32 pm

Post 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
thats_karlo

Post by thats_karlo »

Ooops!!!! I really had a bad mistake!!!

Thank you so much for helping me!
Post Reply