Using Pointers with Distributed Mechanisms
Posted: Tue Jul 11, 2006 1:57 pm
Hi There,
I am trying to use the setpointer (hoc syntax) with the POINTER (mod syntax) to set a variable used in a distributed Mechanism (Schannel) from value of v elsewhere in the model.
The mod file is:
The relevant (I think) hoc statments are:
When I run the hoc, I get a syntax error on the line "setpointer mus.Schannel, VB11posterior1.v(0.5) "
I think that the problem is caused because the syntax is for use with a point process not a distributed mechanism. However, I am not sure what I need to change to get it to work.
Any help greatly appreciated
Amelia
I am trying to use the setpointer (hoc syntax) with the POINTER (mod syntax) to set a variable used in a distributed Mechanism (Schannel) from value of v elsewhere in the model.
The mod file is:
Code: Select all
TITLE stretch gated Na+ membrane channel
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
(S) = (siemens)
}
NEURON {
SUFFIX Schannel
USEION na READ ena WRITE ina
POINTER mus
RANGE g, e, stretch
}
PARAMETER {
g = .00002 (S/cm2) <0,1e19>
e = 50 (mV)
}
ASSIGNED {
v (mV)
i (mA/cm2)
gna (S/cm2)
ina (mA/cm2)
ena (mV)
stretch
mus (mV)
}
BREAKPOINT {
if (mus>0){
stretch = (mus+35)*10
}
gna = g*(1/(1+exp((50-stretch)/10)))
ina = gna*(v - ena)
}
Code: Select all
DB10posterior2{
diam = 0.3
L = 90
insert pas1
insert Schannel
nseg = 51
DB10.append()
setpointer mus.Schannel, VB11posterior1.v(0.5)
}
VB11posterior1{
diam = 0.3
L = 90
insert pas1
nseg = 101
VB11.append()
}
I think that the problem is caused because the syntax is for use with a point process not a distributed mechanism. However, I am not sure what I need to change to get it to work.
Any help greatly appreciated
Amelia