AG
Code: Select all
proc catch_it(){
print t
}
// ---< function triggered (catch_it()) when a pre-synaptic event is detected
soma nclist.object(0).record("catch_it()")
Moderator: wwlytton
Code: Select all
proc catch_it(){
print t
}
// ---< function triggered (catch_it()) when a pre-synaptic event is detected
soma nclist.object(0).record("catch_it()")
Your own code excerptAG wrote:My purpose is to call a procedure every time a post-synaptic event arises, taking its associated delay into account. For example, if at time t a signal is sent from a source cell and that it takes n ms to reach the destination cell, I would like a procedure to be called at time t+n ms.
Code: Select all
proc catch_it(){
print t
}
// ---< function triggered (catch_it()) when a pre-synaptic event is detected
soma nclist.object(0).record("catch_it()")
Code: Select all
soma nclist.object(0).record("insert_delay(delx)")
proc insert_delay() {
cvode.event(t + $1, "catch_it()") // execute catch_it() at time t+$1
}
Thanks !Exp2Syn
ExpSyn
A syn model of my own ... and
APCount
Code: Select all
NET_RECEIVE(weight (uS)) {
state_discontinuity(g, g + weight)
}
Code: Select all
NET_RECEIVE(weight (uS)) {
state_discontinuity(g, g + weight)
net_event(t)
}