Page 1 of 1

Connect a custom spikegenerator instead of NetSim

Posted: Thu Mar 07, 2019 5:11 am
by anandhupresannan
Hi,

I am working on a multi-compartmental neuron in neuron + python , is there any other spike generator mechanism which can replace the NetSim(). I have a pointprocess (a modfile) Spikegenerator but I don't know how to connect with a cell in python, please help me.

Thank you.

Re: Connect a custom spikegenerator instead of NetSim

Posted: Thu Mar 07, 2019 11:52 am
by ted
You're not going to replace NetStim or any other built-in mechanism. You're going to add a new mechanism. Compile the mod file* that specifies the properties of your new mechanism, and it will be automatically available to NEURON the next time you start NEURON in the directory where you compiled the mod file (or the next time you start Python in that directory and then
from neuron import h
).
*--If you're using MSWin, use mknrndll. If you're using Linux, use nrnivmodl. You might find it helpful to read the item
How do I compile mod files?
in the FAQ list
https://neuron.yale.edu/neuron/faq/general-questions