I have written a .mod file which simulates a POINT_PROCESS that accomplish all the activity of a single neuron.
For me to start, I try to connect two of these neurons and I do it using the NetCon. I apply a stimulative current in the first neuron and observe the consequenses on the second one.
The strange is that when I use the same .mod file for the two neurons, the results are different (and for sure wrong as the neuron has a sort of anodal break excitation mechanism) than when I copy the .mod file to another wordpad (exactly the same), save it with a new name and let the second neuron use the "new" .mod file.
It seems as if there is a form of conflict when using the same .mod file.
I present the hoc files:
Code: Select all
load_file("nrngui.hoc")
//-----------------------------------------------------
// setup the cell
create cell_1, cell_2
access cell_1
objref neuron_1, neuron_2, nc1, fresh1
cell_1 neuron_1 = new MECH(0.5)
cell_2 neuron_2 = new MECH(0.5)
//-----------------------------------------------------
// I setup the stimulative current to neuron_1 with -500nA untill 400msec
// and then 0nA till the end of the simulation
fresh1 = new FInitializeHandler("IsendFirst()")
proc IsendFirst(){
Isend1 (0,-500)
Isend1 (400, 0)
}
proc Isend1 () {
sprint(tstr,"neuron_1.I=%g cvode.re_init()",$2)
cvode.event($1,tstr)
}
//-----------------------------------------------------
// connection() connects the two neurons with neuron_1
// being the source and neuron_2 the target
proc connection () {
nc1 = new NetCon(neuron_1,neuron_2)
nc1.delay = 0
nc1.weight = 0.8
}
//-----------------------------------------------------
connection()
xopen("test2.ses")Code: Select all
objref neuron_1, neuron_2, nc1, fresh1, fresh2
cell_1 neuron_1 = new MECH(0.5)
cell_2 neuron_2 = new MECH_NEW(0.5)
The results I take from the two simulations are (jpeg images):
The right one when using the two .mod files
http://www.nikaia-church.gr/neolaia/Perakis/Normal.JPG
and the wrong one when using the single .mod file
http://www.nikaia-church.gr/neolaia/Per ... normal.JPG
Many Thanks in Advance