Simple Question Output File

The basics of how to develop, test, and use models.
Post Reply
Posts: 1
Joined: Thu Jan 21, 2010 3:34 pm

Simple Question Output File

Post 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.


Site Admin
Posts: 5819
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: Simple Question Output File

Post 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?
Posts: 220
Joined: Thu Jun 09, 2005 1:09 pm
Location: Hanze University of Applied Sciences

Re: Simple Question Output File

Post 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.
Post Reply