Page 1 of 1
hoc output
Posted: Mon Nov 06, 2006 2:19 am
by Amal Afzal Shaikh
i developed a network using gui and got the ho c code for it by the network buider.. i saved the hoc file on the desktop.. whn i open it only the main menu and command window pop up.. hw do i get to view the network and also the output as like in gui? can i make changes in the hoc file and thn hw do i view the output?
thanx in advance..
Posted: Tue Nov 07, 2006 7:44 pm
by ted
The quickest and easiest thing to do is use the NetCon class's record() method
http://www.neuron.yale.edu/neuron/stati ... tml#record
(in particular either the
netcon.record(tvec, idvec)
or
netcon.record(tvec, idvec, id)
syntax) to record spike times during a simulation. Then after the run completes, use the
Vector class's mark() method
http://www.neuron.yale.edu/neuron/stati ... .html#mark
to fill a Graph with raster plots (by calling
idvec.mark(g, tvec, "|")
which draws a vertical line in Graph g at every (tvec.x, idvec.x) pair).