Reading and writing neuroexplorer data files – Multichannel Systems NeuroExplorer User Manual

Page 25

Advertising
background image

1.9. Reading and Writing NeuroExplorer Data Files


NeuroExplorer Data file has the following structure:


file header


variable header 1


variable header 2


...


data for variable i


data for variable j


...


Each variable header contains the size of the array that stores the variable data as well as the
location of this array in the file.


The pseudo-code for reading NeuroExplorer data file looks like this:

open file in binary mode

read file header

for each variable

read variable header

end for

for each variable header

seek to the file offset specified in the variable header

read variable data

end for


The C++ source code of the program that reads and writes NeuroExplorer data files is available at
NeuroExplorer web site:

http://www.neuroexplorer.com/updates/HowToReadAndWriteNexFiles.zip



There is also a Matlab script that reads NeuroExplorer data files:

http://www.neuroexplorer.com/updates/HowToReadNexFilesInMatlab.zip


Page 23

Advertising