Are there any outdated hoc codes?
Posted: Fri Oct 15, 2010 5:01 pm
I'm going through some of Destexhe models, when I double clicked on his hoc code to run it as to see what the out puts of the models are I get error messages like :
graphList not an array variable
in /cygdrive/C/Documents and Settings/_Irene_/My Documents/Research at WFUMC/Peer review papers/Destexhe_moedels/Dextche_Synapses/GABA_B_Receptor/gabaa.hoc near line 46
graphList[0].append(g[ii])
I looked up for "graphList" on the on-line help file (Programmers' reference manual), I did not find this term"graphList"
I commented out the lines that have "graphList[0].append(g)" and and tried to run it by double clicking on the model again it generated another error;
" nrniv: nrnmainmenu undefined function
in /cygdrive/C/Documents and Settings/_Irene_/My Documents/Research at WFUMC/Peer review papers/Destexhe_moedels/Dextche_Synapses/GABA_A_Receptor/gabaa2.hoc near line 54
}
^
nrnmainmenu( )"
I looked up for "nrnmainmenu" and could not find it again.
I added the "load_file("nrngui.hoc")" at the beginning of the his program, and opened the model by double clicking on it, this time there was no error, it opened with graphs and the Run Control button, but when I pressed the run button, there was no graph generated on any of the graphs, so I guess that might be related to the "graphList[0]" which I had commented out.
My question then is, are there old codes in hoc that are no longer conpartible with the current version of NEURON? and if there are what are the current equivalents?
Looking at Destexhe programs he did everything by "brute method" confirming what you said earlier that he begin using NEURONin its embroyonic stage
Thank you
Irene
graphList not an array variable
in /cygdrive/C/Documents and Settings/_Irene_/My Documents/Research at WFUMC/Peer review papers/Destexhe_moedels/Dextche_Synapses/GABA_B_Receptor/gabaa.hoc near line 46
graphList[0].append(g[ii])
I looked up for "graphList" on the on-line help file (Programmers' reference manual), I did not find this term"graphList"
I commented out the lines that have "graphList[0].append(g)" and and tried to run it by double clicking on the model again it generated another error;
" nrniv: nrnmainmenu undefined function
in /cygdrive/C/Documents and Settings/_Irene_/My Documents/Research at WFUMC/Peer review papers/Destexhe_moedels/Dextche_Synapses/GABA_A_Receptor/gabaa2.hoc near line 54
}
^
nrnmainmenu( )"
I looked up for "nrnmainmenu" and could not find it again.
I added the "load_file("nrngui.hoc")" at the beginning of the his program, and opened the model by double clicking on it, this time there was no error, it opened with graphs and the Run Control button, but when I pressed the run button, there was no graph generated on any of the graphs, so I guess that might be related to the "graphList[0]" which I had commented out.
My question then is, are there old codes in hoc that are no longer conpartible with the current version of NEURON? and if there are what are the current equivalents?
Looking at Destexhe programs he did everything by "brute method" confirming what you said earlier that he begin using NEURONin its embroyonic stage
Thank you
Irene