stu2010 wrote:I am a bit confused on how to implement NetCon
Suggest you (re-)read the Programmer's Reference documentation of the NetCon class and work through the Network Builder tutorials at
http://www.neuron.yale.edu/neuron/docs
how can I actually view the contents of the variable?
What contents of what variable?
should there be a vector for times and voltages?
The Programmer's Reference entry on NetCon starts with
Code: Select all
NetCon.record()
Syntax:
netcon.record(Vector)
. . .
Description:
Records the event times at the source the netcon connects to.
Try it and see what happens. Then decide if you want to record voltage (what voltage would be relevant, and why?).
whats the difference between using vector class vs NetCon vs cvode records?
What do the relevant Programmer's Reference entries tell you?
Here's what I have so far, not sure how to proceed, or if I am even going in the right direction.
Stop writing code. Read documentation and code that works. In particular, you might find it useful to read parts of this article (ignore the stuff about parallelization; you just need to see simple, clean code that works):
Hines, M.L. and Carnevale, N.T.
Translating network models to parallel hardware in NEURON.
J. Neurosci. Methods 169:425-455, 2008.
(available from a link at
http://www.neuron.yale.edu/neuron/nrnpubs)
Then, when you think you're ready, proceed by
Code: Select all
REPEAT
1. write just a few lines of code that you think you understand
2. run a test to verify that (a) you do understand what the code does
and (b) it does what you want it to do
If either (a) or (b) is false, revise and test again
UNTIL your program is complete and works properly
To answer previous question
Initial burst time: Time between ending of stimulus and first action potential
That's just the time of the first spike. You know the answer to this one.