Page 1 of 1

IClamp template

Posted: Fri Jun 24, 2011 4:41 pm
by magpie
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.

Re: IClamp template

Posted: Fri Jun 24, 2011 5:06 pm
by ted
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.

Re: IClamp template

Posted: Sat Jun 25, 2011 8:25 am
by magpie
Thanks so much Ted. I got it.

Re: IClamp template

Posted: Sat Jun 25, 2011 12:13 pm
by ted
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.