communication between different NMODL mechanisms
Posted: Fri Mar 03, 2006 8:17 am
Hello,
I'm implementing a receptor in NMODL ("recept"). This (distributed) mechanism needs to know the local agonist concentration. So I wrote another NMODL mechanism ("agon") which simply supplies the agonist concentration as a range variable("conc_agon").
But now I can't seem to access this variable from within the receptor mechanism. I specified it as conc_agon in the ASSIGNED block of the recept mod file and assumed that it would be read from neuron just like voltage.
It works fine when I specify the agonist concentration within the recept.mod file, but this is logically not satisfying because one could imagine another mechanism which wants to access the same agonist concentration.
So my two general questions are:
*) is it possible for an NMODL mechanism to access variables from another NMODL mechanism?
*) is there a way to specify dependencies between NMODL mechanisms? In my example, it would be nice if as soon as I insert the receptor, the agonist is inserted automatically (in case it isn't already inserted). - For ions, this seems to exist: if you have a USEION statement in an NMODL file, the ion is automatically inserted into the membrane as well.
Thank you and best wishes,
Christian.
I'm implementing a receptor in NMODL ("recept"). This (distributed) mechanism needs to know the local agonist concentration. So I wrote another NMODL mechanism ("agon") which simply supplies the agonist concentration as a range variable("conc_agon").
But now I can't seem to access this variable from within the receptor mechanism. I specified it as conc_agon in the ASSIGNED block of the recept mod file and assumed that it would be read from neuron just like voltage.
It works fine when I specify the agonist concentration within the recept.mod file, but this is logically not satisfying because one could imagine another mechanism which wants to access the same agonist concentration.
So my two general questions are:
*) is it possible for an NMODL mechanism to access variables from another NMODL mechanism?
*) is there a way to specify dependencies between NMODL mechanisms? In my example, it would be nice if as soon as I insert the receptor, the agonist is inserted automatically (in case it isn't already inserted). - For ions, this seems to exist: if you have a USEION statement in an NMODL file, the ion is automatically inserted into the membrane as well.
Thank you and best wishes,
Christian.