Page 1 of 1

How to compile a self-defined integrate-fire MOD file?

Posted: Tue Sep 06, 2005 7:31 am
by neuroman
I have just finished editting a integrate-fire MOD file, but I don't know how to compile it and integrate it into the embedded procedure sets like intfire1, intfire2 and so on. Please reply this message if you know.

Compiling a self-defined integrate-fire MOD file.

Posted: Tue Sep 06, 2005 8:00 am
by Raj

Posted: Tue Sep 06, 2005 10:03 am
by ted
The Gillies & Sterratt tutorial is very good, but if you're planning to do
serious NMODL development work, you should browse
Adding new mechanisms and functions to NEURON
https://www.neuron.yale.edu/phpBB2/viewforum.php?f=16
especially the post entitled
Where to learn about mod files and NMODL

Thanks!

Posted: Fri Sep 09, 2005 8:29 am
by neuroman
Thank you for your help, ted and Raj.

I wonder if you tested the network sample in Chapter 11. The question I face now is that after I added the mod file into the nrnoc directory and compiled them with mknrndll, it just didn't show in the artificial cell group (open "new" item). Have you met the situation?

load nrnmech.dll automatically

Posted: Fri Sep 09, 2005 10:50 am
by ted
Under MSWin, when NEURON starts, it loads the nrnmech.dll file that it finds
in thecurrent working directory, and prints the names of the mod files for any
mechanisms that it finds in that nrnmech.dll. If you don't see such a message
in NEURON's xterm window, then NEURON is not starting in the directory that
contains the nrnmech.dll.

The easiest way to get NEURON to start in a particular directory is to double
click on a hoc file in that directory. So create a file called init.hoc that contains
this statement
load_file("nrngui.hoc")
(this makes NEURON load a bunch of very useful code, including the standard
run and standard GUI libraries). Be sure to save init.hoc into the desired directory.
Then double click on it, and you're off to the races!

Posted: Fri Sep 09, 2005 9:37 pm
by neuroman
Great, it's fixed now.