array of pointer in NModl
Posted: Tue Feb 14, 2006 3:32 am
Hello,
I would like to develop a model of IntFire neuron with independent alpha-synapses (and each one having proper internal mechanisms, such as weight changes depending on the pre- and post-synaptic activity for instance).
Thus, I was thinking of designing in NMODL each synapse as a Point_Process with a 'psp' value as output (the post-synpatic potential change induced in the soma somehow), and the cell body mechanism as another Point_Process, with an array of Pointers to catch the values of the synaptic 'psp' when necessary. I wrote the following code (that is not accepted by mknrndll.exe, the array of pointer throws an error):
"
DEFINE N_SYN_MAX 3
NEURON {
ARTIFICIAL_CELL IntFire
POINTER psp[N_SYN_MAX]
RANGE tau, n_syn, m
}
PARAMETER {
tau = 10 (ms)
n_syn = 0
}
ASSIGNED {
m
t0 (ms)
psp[N_SYN_MAX]
}
INITIAL {
t0 = t
m = 0
}
BREAKPOINT { LOCAL j
m = m * exp((t0 - t)/tau)
t0 = t
FROM j=0 TO n_syn-1 {m = m + psp[j]}
}
"
Is there any known solution for programming such a pointer array in NModl without using a section and ingoing NONSPECIFIC_CURRENT?
Thanks,
Matthieu
I would like to develop a model of IntFire neuron with independent alpha-synapses (and each one having proper internal mechanisms, such as weight changes depending on the pre- and post-synaptic activity for instance).
Thus, I was thinking of designing in NMODL each synapse as a Point_Process with a 'psp' value as output (the post-synpatic potential change induced in the soma somehow), and the cell body mechanism as another Point_Process, with an array of Pointers to catch the values of the synaptic 'psp' when necessary. I wrote the following code (that is not accepted by mknrndll.exe, the array of pointer throws an error):
"
DEFINE N_SYN_MAX 3
NEURON {
ARTIFICIAL_CELL IntFire
POINTER psp[N_SYN_MAX]
RANGE tau, n_syn, m
}
PARAMETER {
tau = 10 (ms)
n_syn = 0
}
ASSIGNED {
m
t0 (ms)
psp[N_SYN_MAX]
}
INITIAL {
t0 = t
m = 0
}
BREAKPOINT { LOCAL j
m = m * exp((t0 - t)/tau)
t0 = t
FROM j=0 TO n_syn-1 {m = m + psp[j]}
}
"
Is there any known solution for programming such a pointer array in NModl without using a section and ingoing NONSPECIFIC_CURRENT?
Thanks,
Matthieu