Page 1 of 1

interruptting

Posted: Sat Dec 01, 2007 4:24 am
by SarahJansky
Hi all

I use a stochastic neuron model, and I am simulating the neuron for 500 trial and detect the first spike timing. for this pupose, I take the simulatiıon time 250 ms and first spikes occurs earlier this time. My question is this: how can the program interrupt the simulation after detecting the first spike to avoid waiting 250 ms simulation duruation and start the other trial. This procedure go until trial number is 500.
regards

Posted: Mon Dec 03, 2007 12:49 pm
by ted
Attach a NetCon to the cell that is supposed to spike, and use the NetCon class's
record(statement)
syntax to halt the simulation when a spike occurs. See
http://www.neuron.yale.edu/neuron/stati ... tml#record

Posted: Mon Dec 03, 2007 2:02 pm
by SarahJansky
ted wrote:Attach a NetCon to the cell that is supposed to spike, and use the NetCon class's
record(statement)
syntax to halt the simulation when a spike occurs. See
http://www.neuron.yale.edu/neuron/stati ... tml#record
Thanks Ted, it works