how to add a stimulation signal from a txt file to the model
Posted: Fri Aug 27, 2010 8:21 am
hello sir,
i am a new learner of neuron. I use comsol to get the voltage distribution along the nerve and saved in a txt file, now i want to use this voltage distribution as the stim for a existed model. but i dont know how to add this to the model.
nomally, in the model the way to add stimulation to the nerve is like
" objef stim
stim= new IClamp(.5)
stim.dur=.12
stim.amp=1"
so how should i do if the stim is saved in a txt file which is the voltage function of time for a given point of the nerve or voltage for different points at a given time?
thanks a lot.
i am a new learner of neuron. I use comsol to get the voltage distribution along the nerve and saved in a txt file, now i want to use this voltage distribution as the stim for a existed model. but i dont know how to add this to the model.
nomally, in the model the way to add stimulation to the nerve is like
" objef stim
stim= new IClamp(.5)
stim.dur=.12
stim.amp=1"
so how should i do if the stim is saved in a txt file which is the voltage function of time for a given point of the nerve or voltage for different points at a given time?
thanks a lot.