IClamp template

NMODL and the Channel Builder.
Post Reply
magpie

IClamp template

Post 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.
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: IClamp template

Post 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.
magpie

Re: IClamp template

Post by magpie »

Thanks so much Ted. I got it.
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: IClamp template

Post 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.
Post Reply