So currently I'm creating a .mod file for several voltage-gated currents that read built-in ion concentrations such as Na and K. Here is an example of my code to write a NaP channel. Here are my NEURON, ASSIGNED, and BREAKPOINT of my .mod file (it includes other blocks too)
Code: Select all
NEURON{
SUFFIX nap
USEION na READ ena WRITE ina
RANGE gnap, gnapbar
GLOBAL winf, tauw
}
ASSIGNED{
ina (mA/cm2)
winf
gnap
tauw
}
BREAKPOINT{
SOLVE states METHOD cnexp
gnap=gnapbar*w
ina = gnap*(v-ena)
}
Now, when I'm trying to plot this NaP current in the session, it gave me ina current. However, I created another .mod for the hh Na channel, and it uses ina as well. So how do I plot the specific NaP current, even though this channel uses the same ions as the hh Na current? In other words, how do I plot these two Na currents separately? I tried to use NONSPECIFIC_CURRENT but it seems like it's adding another current into my channel, not outputing it. I feel like this should be a very simple step, but I couldn't find the answer anywhere. Thank you!