communication between .mod files
Posted: Sun Jan 21, 2007 9:10 am
I have a calcium channel mechanism, CaE.mod, that writes ica_CaE. Also I have an intracellular calcium mechanism that sets the intracellular calcium concentration, cad.mod. These can be found in modeldb:
CaE is not the only calcium channel in the system. But I only care about CaE for now.
CaE writes ica_CaE. I wish cad to be able to "read" ica_CaE. I tried this line in cad.mod:
USEION ca READ ica,cai,ica_CaE WRITE cai
This did not work.
Then I found on this forum the notion of POINTER. And read the threads and documentation on this etc and tried to implement it. But I cant get it working.
I have put this in the NEURON block of CaE.mod:
POINTER mu
And mu is assigned as ica in the BREAKPOINT block:
mu = ica
And mu is declared in the ASSIGNMENT block.
THIS COMPILES OK.
In cad.mod I have made a new variable called msg which I have declared in the ASSIGNMENT BLOCK and then use it in a loop in the BREAKPOINT block:
if(msg < -0.02 ) { }
THIS COMPILES OK
Then in hoc:
section {
setpointer mu_CaE, msg_cad
}
BUT when running the hoc file it returns an error. I think bad syntax. I am really not sure what I am doing. I know there are a lot of templates for this in the documentation and modeldb. But they tend to be dealing with synapses and objrefs etc. I dont know how that syntax relates to my situation.
I tried the more direct in hoc.
mu_CaE = msg_cad
But couldnt get this working either. In the simulation the msg_cad had a value of 0. The values didnt seem to be pulling through from mu_CaE.
CaE.mod in modeldb:
http://senselab.med.yale.edu/senselab/m ... nj\CaE.mod
cad.mod in modeldb:
http://senselab.med.yale.edu/senselab/m ... lciumP.mod
CaE is not the only calcium channel in the system. But I only care about CaE for now.
CaE writes ica_CaE. I wish cad to be able to "read" ica_CaE. I tried this line in cad.mod:
USEION ca READ ica,cai,ica_CaE WRITE cai
This did not work.
Then I found on this forum the notion of POINTER. And read the threads and documentation on this etc and tried to implement it. But I cant get it working.
I have put this in the NEURON block of CaE.mod:
POINTER mu
And mu is assigned as ica in the BREAKPOINT block:
mu = ica
And mu is declared in the ASSIGNMENT block.
THIS COMPILES OK.
In cad.mod I have made a new variable called msg which I have declared in the ASSIGNMENT BLOCK and then use it in a loop in the BREAKPOINT block:
if(msg < -0.02 ) { }
THIS COMPILES OK
Then in hoc:
section {
setpointer mu_CaE, msg_cad
}
BUT when running the hoc file it returns an error. I think bad syntax. I am really not sure what I am doing. I know there are a lot of templates for this in the documentation and modeldb. But they tend to be dealing with synapses and objrefs etc. I dont know how that syntax relates to my situation.
I tried the more direct in hoc.
mu_CaE = msg_cad
But couldnt get this working either. In the simulation the msg_cad had a value of 0. The values didnt seem to be pulling through from mu_CaE.
CaE.mod in modeldb:
http://senselab.med.yale.edu/senselab/m ... nj\CaE.mod
cad.mod in modeldb:
http://senselab.med.yale.edu/senselab/m ... lciumP.mod