vladimirov wrote:if there was another NetStim spike scheduled (with interval 500 ms) before the interval has been updated (to, say, 20 ms), the program keeps waiting about 500 ms for the older spike to happen, then it changes NetStim() state to 0, and only then it updates the spike interval to 20 ms. Is there any way to make NetStim() update (reset) its spiking interval immediately?
No. NetStim works by launching self-events; arrival of a self-event triggers an output event. None of NEURON's built-in artificial spiking cells can act as a V->F converter with instantaneous response to changes in V because calculation of the next time at which a cell will spike is done only when that cell receives an event.
If it is true that
"V will only change at a few times"
then I suppose it would be possible to come up with an artificial spiking cell model that is designed to respond to a very particular input event (say, events associated with a particular weight) by using the current value of V to update the time of the next spike. Then you'd have to contrive to make sure that every time V changes, you also, after a very brief interval, deliver a "special" event to the artificial spiking cell that tells it to respond to the change of V.
If instead V changes continuously in a simulation, a different strategy (not quite sure what at this instant) might be more efficient.