Page 1 of 1

Simple Question Output File

Posted: Thu Jan 21, 2010 3:42 pm
by dcox
I am new today to NEURON and have a simple question. After I do a simulation of say an action potential, how do I get the action potential out into a file I can use in other programs. That is, how can I export the action potential as a binary file or an ascii file or something useful? Any help would be appreciated.



Re: Simple Question Output File

Posted: Thu Jan 21, 2010 4:35 pm
by ted
Quick and dirty method is to use the Print & File Manager's "Print / ASCII". To learn how, go to the FAQ list
and look for the question
How do I print a hard copy of a NEURON window?

Re: Simple Question Output File

Posted: Mon Jan 25, 2010 5:43 am
by Raj
You might want to look at Konstantin Miller's post: ... antin#p290

This solution works very well with matlab, but it should be possible to port it to other environments. I would like to hear it if someone has a python implementation ready.

In my work I found it easiest to keep things simple and stick to one variable per output file, so no complicated processing of the header of the binary is necessary and you can use Konstantin's code as is. With parameter scans and networks this can be a bit of a problem and you have to make sure that your file system can handle the number of files generated, but splitting the output over several directories can also solve problems.