Connect a custom spikegenerator instead of NetSim

NMODL and the Channel Builder.
Post Reply
anandhupresannan
Posts: 11
Joined: Tue Feb 26, 2019 10:13 am

Connect a custom spikegenerator instead of NetSim

Post 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.
ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Connect a custom spikegenerator instead of NetSim

Post 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
Post Reply