The hh mechanism is built into NEURON. All you have to do is create a section, then
insert hh, and you have a model with Hodgkin-Huxley membrane properties. You can
do this by writing hoc code or by using the GUI.
To do this by writing hoc code, create a plain text file. Call it anything you like; perhaps
simplehh.hoc
The file should contain these statements:
Code: Select all
load_file("nrngui.hoc")
create soma
access soma
L = 10
diam = 10
Save the file to disk.
If you are using MSWin, double click on the file; if OS X, drag and drop the hoc file onto
the nrngui icon; if UNIX, at the command prompt type
nrngui simplehh.hoc
Then use the NEURON Main Menu toolbar to create a RunControl panel, a
PointProcessManager configured as an IClamp, and a voltage axis graph (if you need
to see how, go to the Documentation page
http://www.neuron.yale.edu/neuron/docs
and work through the tutorial
Construction and Use of Models: Part 1. Elementary Tools).