Extracellular time varying input
Posted: Tue Jan 25, 2011 12:38 pm
Hi Ted, and Hi to all.
I'm a Phd student,
I'm working on network model. I wish to stimulate fibers and somas using the built in extracellular mechanism.
I managed to stimulate a fiber nodes sections with a single pulse of width pwd using the cvode.event code:
where V.x[nc] is a vector taken from an ASCII file. In this way I generated a single square pulse of width pwd.
Now I wish to stimulate the fiber with a sinusoidal or better with a square wave of a given frequency, pulse width and amplitude.
Is this possible using the extracellular mechanism?
Thanks
Marco
I'm a Phd student,
I'm working on network model. I wish to stimulate fibers and somas using the built in extracellular mechanism.
I managed to stimulate a fiber nodes sections with a single pulse of width pwd using the cvode.event code:
Code: Select all
proc init(){ finitialize(-78)
fih = new FInitializeHandler(0, "set_e_ext(0)")
}
proc set_e_ext() {
if ($1 == 0) {
for nc = 0, nnode-1 {
node[nc] {
e_extracellular = 0
}
}
cvode.event(del, "set_e_ext(1)")
} else if ($1 == 1) {
for nc = 0, nnode-1 {
node[nc] {
e_extracellular = V.x[nc]
}
}
cvode.event(del + pwd, "set_e_ext(2)")
} else if ($1 == 2){
for nc = 0, nnode-1 {
node[nc] {
e_extracellular = 0
}
}
cvode.event(0, "set_e_ext(0)")
}
}
Now I wish to stimulate the fiber with a sinusoidal or better with a square wave of a given frequency, pulse width and amplitude.
Is this possible using the extracellular mechanism?
Thanks
Marco