Displaying state variable initial conditions
Posted: Mon Jul 17, 2006 3:07 pm
Hi,
I am basically writing a script with the hoc file having the model of a simple soma.
In this soma, I need to insert some ionic currents ie HH type Na and K currents. ( and thus I have na.mod and k.mod files).
Within this K.mod and Na.mod files, I have blocks for calculating the Na and K currents. With regards to this I have 2 questions.
1. In the INITIAL block of the Na.mod file I have:
INITIAL {
rates()
m = minf
h = hinf
}
Would I be correct in assuming that this takes care of the initialization of the m and h gating variable for any v_init? And that if in the "Run" box in Neuron, I type v_init=-40mV, all the initial conditions for m and h will be re-computed to reflect the new initial conditions??
(I also have the other blocks like the "procedure" etc)
2. Secondly, how can I get these values (of the m and h) displayed on the main screen...
I tried oc>print m ( this did not work)
I tried oc>print minf ( this did not work)
note: minf is declared as "RANGE" in the NEURON block in the ".mod" file
I am guessing it has to do with the "m" is actually declared.
Thank you so much for your time! I really appreciate it....
Meena
I am basically writing a script with the hoc file having the model of a simple soma.
In this soma, I need to insert some ionic currents ie HH type Na and K currents. ( and thus I have na.mod and k.mod files).
Within this K.mod and Na.mod files, I have blocks for calculating the Na and K currents. With regards to this I have 2 questions.
1. In the INITIAL block of the Na.mod file I have:
INITIAL {
rates()
m = minf
h = hinf
}
Would I be correct in assuming that this takes care of the initialization of the m and h gating variable for any v_init? And that if in the "Run" box in Neuron, I type v_init=-40mV, all the initial conditions for m and h will be re-computed to reflect the new initial conditions??
(I also have the other blocks like the "procedure" etc)
2. Secondly, how can I get these values (of the m and h) displayed on the main screen...
I tried oc>print m ( this did not work)
I tried oc>print minf ( this did not work)
note: minf is declared as "RANGE" in the NEURON block in the ".mod" file
I am guessing it has to do with the "m" is actually declared.
Thank you so much for your time! I really appreciate it....
Meena