NET_RECEIVE block for STDP
Posted: Mon Jun 19, 2006 10:59 am
Hi,
I'm a very new user of neuron and I try to simulate spike-timing-dependent-plasticity in a very simple neuron network.
I found a hinces' code (stdp.mod) and I build mine starting with it.
I decided to not use FOR_NETCONS (if i understood FOR_NETCONS utility, and I'm not sure of that, Hinces uses FOR_NETCONS in case of post-synaptic event after multi pre-synaptic onces, what don't interst me now)
Each time I refer to a NET_RECEIVE argument for my post-synaptic case, my simulation stops with a segmentation violation..I just want to now why?
Should I need to use FOR_NETCONS ?
if I do, what NEURON version should I get?
Thank you,
Guillaume
Here's a bit of my code :
NET_RECEIVE (w (uS), dw, tpre (ms) ) {
INITIAL { dw = 0 tpre = 0 }
if (flag == 0) { : presynaptic spike
g = g + w + dw
tpre = t
dw = - exp((tpost - t)/tauQ)
} else if (flag == 2) { : postsynaptic spike
g = g + w + dw
tpost = t
dw = exp((t - tpre)/tauP)
....
I'm a very new user of neuron and I try to simulate spike-timing-dependent-plasticity in a very simple neuron network.
I found a hinces' code (stdp.mod) and I build mine starting with it.
I decided to not use FOR_NETCONS (if i understood FOR_NETCONS utility, and I'm not sure of that, Hinces uses FOR_NETCONS in case of post-synaptic event after multi pre-synaptic onces, what don't interst me now)
Each time I refer to a NET_RECEIVE argument for my post-synaptic case, my simulation stops with a segmentation violation..I just want to now why?
Should I need to use FOR_NETCONS ?
if I do, what NEURON version should I get?
Thank you,
Guillaume
Here's a bit of my code :
NET_RECEIVE (w (uS), dw, tpre (ms) ) {
INITIAL { dw = 0 tpre = 0 }
if (flag == 0) { : presynaptic spike
g = g + w + dw
tpre = t
dw = - exp((tpost - t)/tauQ)
} else if (flag == 2) { : postsynaptic spike
g = g + w + dw
tpost = t
dw = exp((t - tpre)/tauP)
....