Transform AlphaSynapse to Exp2Syn
Posted: Tue Apr 01, 2014 8:36 am
Hi,
I know there are several posts about the question I'm about to ask, but I still don't know how to adapt the answers to my specific case. So, sorry for the repetition of a same topic.
I am trying to transform an AlphaSynapse into "Exp2Syn" because I want to be able to vary the rise time constant and the decay time constant of the synaptic response independantly, which sounds simple. But when I do the following modifications,
(where I only added Exp2Syn, TAU1 and TAU2), I get this error message: " onset is not a public member of Exp2Syn".
I then thought that the problem is comming from the loop "for ii ". So I trasformed it to the following:
And I did the same everywhere synExc_head[ii] is throughout my code.
The result is then that the model works. But I get a strange shape of the EPSPs and varying TAU1 and TAU2 doesn't affect the shape (only Rm does).
Do you have any clue?
Thanks in advance.
I know there are several posts about the question I'm about to ask, but I still don't know how to adapt the answers to my specific case. So, sorry for the repetition of a same topic.
I am trying to transform an AlphaSynapse into "Exp2Syn" because I want to be able to vary the rise time constant and the decay time constant of the synaptic response independantly, which sounds simple. But when I do the following modifications,
Code: Select all
objref synExc_head[4][MAX_NUM_STIM]
for i = 0, 3 {
for ii = 0,MAX_NUM_STIM-1 {
head[i] synExc_head[i][ii] = new Exp2Syn(0.5)
if (ii < num_stim_exc[i]) {
synExc_head[i][ii].onset = SYN_EXCIT_DEL + isi_exc*ii // ms
} else {
synExc_head[i][ii].onset = 2*T_MAX // i.e. never happens
}
synExc_head[i][ii].tau1 = TAU1_exc // ms
synExc_head[i][ii].tau2 = TAU2_exc // ms
synExc_head[i][ii].gmax = UNITARY_G_exc * num_syn_exc // nS
synExc_head[i][ii].e = E_syn // mV
synExc_head[i][ii].i = 0
}
}
I then thought that the problem is comming from the loop "for ii ". So I trasformed it to the following:
Code: Select all
objref synExc_head[4]
for i = 0, 3 {
head[i] synExc_head[i] = new Exp2Syn(0.5)
synExc_head[i].tau1 = TAU1_exc // ms
synExc_head[i].tau2 = TAU2_exc // ms
synExc_head[i].e = E_syn // mV
synExc_head[i].i = 0
}
The result is then that the model works. But I get a strange shape of the EPSPs and varying TAU1 and TAU2 doesn't affect the shape (only Rm does).
Do you have any clue?
Thanks in advance.