NEURON BOOK Chapter 8 (Initializing the mechanism)
Posted: Tue Sep 21, 2010 3:41 pm
I am working through the chapter eight of the NEURON book, sec 8.4.4.2 and repeating the hoc codes in the chapter as to help me understand what is being discussed in that chapter but I am running into difficulties, please I will need some help to understand the excericses.
I created the mod file of the "capmp" wrote the hoc code for one compartment (soma), inserted hh, and capmp into it., ran the simulation and plotted the graph of the time course of Cashell (cashell) and pump current (IIcapump). Saved all in a session file for ease of retrieval
As to help me understnad how the initialization of ca_init affects the time course of the parameters (plotted above).
I wrote the hoc code (called it initiCa) you have in the book (but only defined and assigned value for ca_init )as shown below :
objref ca_init
cashell = ca_init
ca_init = 0.2
proc init() {
cashell_capmp = ca_init
finitalize(v_init)
}
When I open the saved session file described above and then load the hoc "initiCa.hoc", and ran the simulation it gives me error message :
"bad stack access: expecting (double); really (Unknown)
nrniv: interpreter stack type error
in initia1.hoc near line 3
cashell = ca_init"
I have no clue what that means and what I have done wrong, If Itry to change the value of the ca_init from the interpreter, it closes (which confirms to me that there is an error)
Though the above initilaization method was not supposed to have any effect on the time course of the cashell and pump current as explained, but I have the same result when I load this version of the initiCa.hoc:
objref ca_init
ca_init = 0.4
proc init() {
finitialize(v_init)
cashell_capmp = ca_init
// we've change a state, so the following are needed
if (cvode.active()) {
cvode.re_init()
} else {
fcurent()
}
frecod_init()
}
Please I will appreciate you help to understand what I have not done right.
Thank you
I created the mod file of the "capmp" wrote the hoc code for one compartment (soma), inserted hh, and capmp into it., ran the simulation and plotted the graph of the time course of Cashell (cashell) and pump current (IIcapump). Saved all in a session file for ease of retrieval
As to help me understnad how the initialization of ca_init affects the time course of the parameters (plotted above).
I wrote the hoc code (called it initiCa) you have in the book (but only defined and assigned value for ca_init )as shown below :
objref ca_init
cashell = ca_init
ca_init = 0.2
proc init() {
cashell_capmp = ca_init
finitalize(v_init)
}
When I open the saved session file described above and then load the hoc "initiCa.hoc", and ran the simulation it gives me error message :
"bad stack access: expecting (double); really (Unknown)
nrniv: interpreter stack type error
in initia1.hoc near line 3
cashell = ca_init"
I have no clue what that means and what I have done wrong, If Itry to change the value of the ca_init from the interpreter, it closes (which confirms to me that there is an error)
Though the above initilaization method was not supposed to have any effect on the time course of the cashell and pump current as explained, but I have the same result when I load this version of the initiCa.hoc:
objref ca_init
ca_init = 0.4
proc init() {
finitialize(v_init)
cashell_capmp = ca_init
// we've change a state, so the following are needed
if (cvode.active()) {
cvode.re_init()
} else {
fcurent()
}
frecod_init()
}
Please I will appreciate you help to understand what I have not done right.
Thank you