So I'm working with a NEURON model that my supervisor handed me and I have very little experience with NEURON itself. I was asked to implement a method of intraellular stimulation that would use an IClamp to inject current into the soma of a target cell according to a pre-defined frequency. I figured out how to do all the setup work, but I'm at a bit of a loss as to how to implement the actual train. Someone else helped me to create the following code to perform intracellular stimulation on the target cell:
- Code: Select all
if (TC_in==1) {
soma[0] {
TC_stim=new IClamp()
TC_stim.loc(.5) //inject current in the center of the node//
TC_stim.del=BASE // BASE is the time till the first stimulation pulse
TC_stim.dur=PW
TC_stim.amp=100 //nA//
}
}
My question is what the most efficient way to expand this into a pulse train is? I was hoping that I would be able to simply use a vector of time as the TC_stim.del variable, but the documentation seems to suggest otherwise. The other idea that I had was to use a for loop around the entire intracellular stimulation code block to create a separate IClamp with
- Code: Select all
for i=0:numpulses {
soma[0] {
TC_stim=new IClamp()
TC_stim.loc(.5) //inject current in the center of the node//
TC_stim.del=BASE+i*PW*2 // BASE is the time till the first stimulation pulse
TC_stim.dur=PW
TC_stim.amp=100 //nA//
}
}
However this seemed like a really wasteful approach. Are there any better approaches to doing this?
Thanks!
