Then I tried to use the v.spikebin by using codes like this:
Code: Select all
spikevec=new Vector()
vrec=new Vector()
vrec.record(&toneA.i) //toneA.i is the value of the tone pulse
spikev = spikevec.spikebin(vrec,0.5)
Thanks in advance,
Henry
Code: Select all
spikevec=new Vector()
vrec=new Vector()
vrec.record(&toneA.i) //toneA.i is the value of the tone pulse
spikev = spikevec.spikebin(vrec,0.5)
Thank you Ted!ted wrote:What's a "tone pulse"? What are you trying to do: generate a stimulus in the middle of a simulation, or record results and analyze them after the end of a simulation?
Merely I want to generate a train of spikes with parameter I can control. Also I would like to check how I can set a threshold crossing. If you can give me some directions on what to look for in the NEURON documentations, I will appreciate that!ted wrote:So you merely want to generate a train of spikes, whose parameters (start time, ISI, number) you control? Or do you have experimental data that you want to pass through a filter whose output is a spike train in which the time of each spike is governed by some aspect of the experimental data (e.g. a positive going threshold crossing)?
If all you need is a train of events, use a NetStim. You'll want to read about how NEURON uses events to implement spike-triggered synaptic transmission, which is described in chapter 10 of The NEURON Book. You'll also want to readhenrychen1986 wrote:I want to generate a train of spikes with parameter I can control.