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
interruptting
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
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
record(statement)
syntax to halt the simulation when a spike occurs. See
http://www.neuron.yale.edu/neuron/stati ... tml#record
Thanks Ted, it worksted 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