interruptting

The basics of how to develop, test, and use models.
Post Reply
SarahJansky

interruptting

Post 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
ted
Site Admin
Posts: 6305
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post 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
SarahJansky

Post 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
Post Reply