Code running differently (...) [SOLVED]
Posted: Tue Apr 12, 2011 5:29 am
Hello everyone,
I have just begun working with NEURON, and I have been studying the book and looking at examples of code from people at my lab
one of these examples, however, fails to run on my computer (which is on windows vista), though it works on the ubuntu computer on which it was written
if (xopen("PARAM.hoc")) {}
begintemplate simpleIAFneuron
public soma
public IAF
create soma
objref IAF
proc init() {
soma {
IAF = new Gmodel(0.5)
IAF.Qe = IAF_QE
IAF.Qi = IAF_QI
IAF.tauE = IAF_TAUE
IAF.tauI = IAF_TAUI
IAF.Gl = IAF_GL
IAF.C = IAF_C
IAF.Vthre = IAF_VTHRE
IAF.Vreset = IAF_VRESET
IAF.Ei = IAF_EI
IAF.Ee = IAF_EE
IAF.El = IAF_EL
IAF.refrac = IAF_REFRAC
IAF.start = TSTART
}
}
endtemplate simpleIAFneuron
faulty part is bolded and italicised
capsed variables are actually defined in a parameter file (PARAM.hoc) which is loaded at the beginning of the program via xopen("param.hoc")
but, nrngui says:
nrniv: undefined variable IAF_QE, etc ...
what I really don't understand is that variables defined in PARAM.hoc are accessible pretty much anywhere in my programs except in templates, and that seems to be the case only in windows !
I hope my problem is clear enough: I can provide clarifications if need be
thank you very much for your time !
edit: SOLVED
I have just begun working with NEURON, and I have been studying the book and looking at examples of code from people at my lab
one of these examples, however, fails to run on my computer (which is on windows vista), though it works on the ubuntu computer on which it was written
if (xopen("PARAM.hoc")) {}
begintemplate simpleIAFneuron
public soma
public IAF
create soma
objref IAF
proc init() {
soma {
IAF = new Gmodel(0.5)
IAF.Qe = IAF_QE
IAF.Qi = IAF_QI
IAF.tauE = IAF_TAUE
IAF.tauI = IAF_TAUI
IAF.Gl = IAF_GL
IAF.C = IAF_C
IAF.Vthre = IAF_VTHRE
IAF.Vreset = IAF_VRESET
IAF.Ei = IAF_EI
IAF.Ee = IAF_EE
IAF.El = IAF_EL
IAF.refrac = IAF_REFRAC
IAF.start = TSTART
}
}
endtemplate simpleIAFneuron
faulty part is bolded and italicised
capsed variables are actually defined in a parameter file (PARAM.hoc) which is loaded at the beginning of the program via xopen("param.hoc")
but, nrngui says:
nrniv: undefined variable IAF_QE, etc ...
what I really don't understand is that variables defined in PARAM.hoc are accessible pretty much anywhere in my programs except in templates, and that seems to be the case only in windows !
I hope my problem is clear enough: I can provide clarifications if need be
thank you very much for your time !
edit: SOLVED