i dont know how to use the STDP mechanism
It's a synaptic mechanism with STDP. Use it like any other synaptic mechanism. Attach it to the target neuron wherever you want to put it, then connect spike sources to it with NetCons.
Here are some suggestions that may help with future program development and debugging. You already appear know most of this, so what follows is largely for the benefit of others who may read this discussion thread.
The recommended outline for specifying the properties of a model cell generally follows the sequence that is embodied in the radio button menu at the top of the CellBuilder.
- Code: Select all
1. Topology--create all sections, then connect sections
Connect child section to parent section, e.g. connect dend(0), soma(1).
Connecting parent to child will make shape plots look strange,
and will violate somaotfugal order when iterating with forall for (x).
2. Subsets (optional)--append sections with shared properties to SectionLists
3. Geometry--specify length and diameter of each section
4. Biophysics
specify Ra and cm of each section
insert density (distributed) mechanisms and specify their parameters
5. Specify nseg. d_lambda rule is suggested.
It is best to defer attachment of synaptic mechanisms and other point processes until
after cell properties have been completely specified--and certainly after nseg has been specified.