I was attempting to use the insert command in order to add active properties to an axon hillock. I have the axon properties in a separate mod file and am trying to load those properties into my hoc code. It keeps giving me an error when I attempt to insert the channels. I have attached the code I am trying to use as well as the error message. As you can probably guess, I am definitely a beginner when it comes to using hoc.
forsec "ah" {
insert pas
g_pas=0.00025
e_pas=-70
cm=1.4
Ra=70
insert NafIs
gnabar_NafIs=0.887
}
/Applications/NEURON-7.4/nrn/x86_64/bin/nrniv: syntax error
in Biophysics.hoc near line 23
insert NafIs
^