Hi.
I have plotted a graph then by clicking right on this graph, selecting “Pick Vectorâ€
pick vector
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
First, use the Vector class's record() method to tell NEURON's run time system that it must
capture the time sequence of the variable(s) of interest.
After every simulation run, the specified vectors will hold the time course of your variables.
Hint: you might also want to use another vector to capture the values of t.
Once you have the data in vectors, you can use the Vector class's printf() method to write
them to one or more files.
You can get as fancy with this as you like, e.g. automating the process by creating a
file called autosavedata.hoc that contains the following:
and including this line at the end of your own hoc program, after all variables that are to
be recorded have been created:
The Programmer's Reference
http://www.neuron.yale.edu/neuron/stati ... rence.html
contains all the necessary documentation of the Vector class, the File class, and sprintf
capture the time sequence of the variable(s) of interest.
After every simulation run, the specified vectors will hold the time course of your variables.
Hint: you might also want to use another vector to capture the values of t.
Once you have the data in vectors, you can use the Vector class's printf() method to write
them to one or more files.
You can get as fancy with this as you like, e.g. automating the process by creating a
file called autosavedata.hoc that contains the following:
Code: Select all
. . . whatever Vector record() statements you need . . .
proc run() {
stdinit()
continuerun(tstop)
savedata()
}
proc savedata() {
. . . your code that
1. increments a "run number"
2. uses this to generate new file name(s) (by using sprint to
concatenate the "run number" with a base string)
3. opens the file(s) and uses the Vector class's printf() method to write results
4. closes the file(s)
. . .
}
be recorded have been created:
Code: Select all
load_file("autosavedata.hoc")
http://www.neuron.yale.edu/neuron/stati ... rence.html
contains all the necessary documentation of the Vector class, the File class, and sprintf