Navigate to the directory containing the desired mod files.and the "mknrndll" script will create a nrnmech.dll file which contains the HHk model.
Select "Make nrnmech.dll".
nrnivmodlThis will create a new executable called "special" which is a complete copy of NEURON and also includes the HHk model.
Under MSWin, double clicking on a hoc file opens that file using NEURON which automatically looks in the working directory for a nrnmech.dll file.
Alternatively, you can launch nrngui from the icon in the NEURON program group and use NEURONMainMenu/File/WorkingDir or RecentDir to navigate to the directory containing the nrnmech.dll file.
when you run the script nrngui in a working directory, it will automatically look for the special i.e. x86_64/special, that you created with nrnivmodl in the previous step. If it doesn't find one, it will execute the standard nrniv, which contains only the "built-in" mechanisms (hh, pas, IClamp etc..).Bring up a single compartment model with surface area of 100 um2 (NEURON Main Menu / Build / single compartment) and toggle the HHk button in the Distributed Mechanism Inserter ON. Verify that the new HHk model (along with the Na portion of the built-in HH channel) produces the same action potential as the built-in HH channel (using both its Na and K portions).