Connect a custom spikegenerator instead of NetSim

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
anandhupresannan
Posts: 9
Joined: Tue Feb 26, 2019 10:13 am

Connect a custom spikegenerator instead of NetSim

Post by anandhupresannan » Thu Mar 07, 2019 5:11 am

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: 5633
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 » Thu Mar 07, 2019 11:52 am

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