FUNCTION in NMODL (vtrap/SafeExp)
Posted: Thu Dec 14, 2006 4:42 pm
Hi,
I'm trying to modify a sodium channel mod file, and i keep getting error messages for the units. I was hoping that you could help me understand the following function. In the hh.mod file it is called vtrap, and it is similar, but in this specific mod file it is called SafeExp:
The error message refers to the malpha line:
Thank you,
Natalie
I'm trying to modify a sodium channel mod file, and i keep getting error messages for the units. I was hoping that you could help me understand the following function. In the hh.mod file it is called vtrap, and it is similar, but in this specific mod file it is called SafeExp:
Code: Select all
FUNCTION SafeExp(x, y, Vm) {
if(fabs(Vm) > 1e-6) {
SafeExp = (x * Vm)/(exp(Vm/y) - 1)
} else {
SafeExp = x/((Vm/y/2) - 1)
}
}
PROCEDURE settables(v (mV)) {
TABLE malpha, mbeta, halpha, hbeta, minf, mtau, hinf, htau
FROM -100 TO 100 WITH 200
malpha = SafeExp(0.1,10,-(v+35))
mbeta = 4*exp(-(v+60)/18)
Code: Select all
units: 0.001 m2-kg/sec2-coul
The units of the previous two expressions are not conformable
at line 74 in file ./SlowNa.mod
malpha = SafeExp(0.1,10,-(v+35+MSHFT<<ERROR>>))
Natalie