Mg block of NMDA receptors
Posted: Fri Sep 06, 2013 2:04 pm
I am trying to implement Mg2+ block of NMDA receptors but am having a hard time figuring out where to put the equation for block. Right now I have the equation for block in the INITIAL block. m is the block equation in the code below. Otherwise the mod file for the synapse is similar to Exp2Syn except that this mod file has five exponential terms.
I get an error message when I try to compile:
Translating MFnfast.mod into MFnfast.c
syntax error:
Illegal expression:
Illegal block at line 60 in file MFnfast.mod
m = k/(k + exp1)
^
make: *** [MFnfast.c] Error 1
Why is this illegal and where is a better place to put the block equation? I tried putting m and exp1 in FUNCTION blocks as in the mod files for voltage-dependent channels, but I got an error message as well.
Code: Select all
INITIAL {
LOCAL tp, exp1
tp = 9.8330
factor = exp(-tp/tau1) -4*exp(-tp/tau2) +6*exp(-tp/tau3) -4*exp(-tp/tau4) +exp(-tp/tau5)
factor = 1/factor
exp1 = exp((-2*FARADAY*v*frac)/(R*1000*(273.15 + celsius))
m = k/(k + exp1)
A = 0
B = 0
C = 0
D = 0
E = 0
}
Translating MFnfast.mod into MFnfast.c
syntax error:
Illegal expression:
Illegal block at line 60 in file MFnfast.mod
m = k/(k + exp1)
^
make: *** [MFnfast.c] Error 1
Why is this illegal and where is a better place to put the block equation? I tried putting m and exp1 in FUNCTION blocks as in the mod files for voltage-dependent channels, but I got an error message as well.