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..
hoc output
Moderator: wwlytton
-
- Site Admin
- Posts: 6299
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
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).
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).