IClamp template

NMODL and the Channel Builder.

IClamp template

Postby magpie » Fri Jun 24, 2011 4:41 pm

Hi all,

Is there anybody who has IClamp template used in NEURON? I am trying to customize some methods in IClamp class. Thanks a lot.
magpie
 
Posts: 23
Joined: Mon Jan 29, 2007 5:13 pm

Re: IClamp template

Postby ted » Fri Jun 24, 2011 5:06 pm

IClamp is specified by NMODL code, not hoc. The file is stim.mod, and you will find it in c:\nrnxx\src\nrnoc under MSWin, or, if you're using UNIX/Linux/OS X, get the tar.gz source code for NEURON from http://www.neuron.yale.edu/neuron/download and look in nrn-x.x/src/nrnoc/stim.mod

If you are absolutely certain that you cannot accomplish what you want by assigning parameter values from hoc, then copy stim.mod into the directory where your hoc files for this particular project are located, rename the file, and also edit the file to change the name of the class (by changing
POINT_PROCESS IClamp
to
POINT_PROCESS SomethingElse
} so it won't conflict with NEURON's built-in IClamp class.
ted
Site Admin
 
Posts: 3591
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: IClamp template

Postby magpie » Sat Jun 25, 2011 8:25 am

Thanks so much Ted. I got it.
magpie
 
Posts: 23
Joined: Mon Jan 29, 2007 5:13 pm

Re: IClamp template

Postby ted » Sat Jun 25, 2011 12:13 pm

You might find it useful and interesting to examine the contents of the other mod files in that directory. They're the source code for the built-in mechanisms.
ted
Site Admin
 
Posts: 3591
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine


Return to Adding new mechanisms and functions to NEURON

Who is online

Users browsing this forum: No registered users and 1 guest

cron