Does it make a difference if a single compartment is soma or
Posted: Tue Aug 24, 2010 2:32 pm
I know soma is used to build single compartment model. I am working through the on-line course (handson), HH axon. The instruction is to create axon with given specifications, and insert current pulse. Here is my code
When I run this code there is no action potential generated (V vs t). just a horizontal line on the V vs t graph
Please what is wrong with this code?
I have second question,
In a single compartment (soma) model
I inserted two electrodes, such that the current pulse from the second electrode will be injected when the pulse from the first electrode ends. (expecting to see two pulses,one ffrom each of the electrodes)
Unfortunately there was only one pulse that corresponds to the parameters of the first pulse from the first electrode. Here is the code I wrote;
load_file("nrngui.hoc")
create soma
access soma
soma {
nseg = 1
diam = 50
L = 50
insert hh
}
objectvar stim, stim1
stim = new IClamp(0.5)
stim1 = new IClamp(0.5)
stim.del = 1
stim.dur = 1
stim.amp = 1.0
stim1.del = 3
stim.dur = 1
stim.amp = 1.0
tstop = 5.
Please what is the best way to generate multiple pulses? or insert multiple electrodes in a model?
Thank you
Irene
Code: Select all
create axon
access axon
axon {
nseg = 75
diam = 100
L = 20000
insert hh
}
objectvar stim
stim = new IClamp(0.5)
stim.del = 1.0
stim.dur = 1.0
stim.amp = 1.0
Tstop = 5Please what is wrong with this code?
I have second question,
In a single compartment (soma) model
I inserted two electrodes, such that the current pulse from the second electrode will be injected when the pulse from the first electrode ends. (expecting to see two pulses,one ffrom each of the electrodes)
Unfortunately there was only one pulse that corresponds to the parameters of the first pulse from the first electrode. Here is the code I wrote;
load_file("nrngui.hoc")
create soma
access soma
soma {
nseg = 1
diam = 50
L = 50
insert hh
}
objectvar stim, stim1
stim = new IClamp(0.5)
stim1 = new IClamp(0.5)
stim.del = 1
stim.dur = 1
stim.amp = 1.0
stim1.del = 3
stim.dur = 1
stim.amp = 1.0
tstop = 5.
Please what is the best way to generate multiple pulses? or insert multiple electrodes in a model?
Thank you
Irene