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

Moderator: wwlytton

Post Reply
neuroman

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

Post by neuroman » Tue Sep 06, 2005 7:31 am

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.

Raj
Posts: 219
Joined: Thu Jun 09, 2005 1:09 pm
Location: Hanze University of Applied Sciences
Contact:

Compiling a self-defined integrate-fire MOD file.

Post by Raj » Tue Sep 06, 2005 8:00 am


ted
Site Admin
Posts: 5592
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted » Tue Sep 06, 2005 10:03 am

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

neuroman

Thanks!

Post by neuroman » Fri Sep 09, 2005 8:29 am

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?

ted
Site Admin
Posts: 5592
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

load nrnmech.dll automatically

Post by ted » Fri Sep 09, 2005 10:50 am

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!

neuroman

Post by neuroman » Fri Sep 09, 2005 9:37 pm

Great, it's fixed now.

Post Reply