C-code to read/convert Neuroscan 3.x (and partially 4.x?) AVG, EEG and CNT datafiles
This page gives the c-code to some applications and functions which read the Neuroscan EEG data format. A part of this code comes from the Neuroscan website, a part was written by myself. The code is completely free (as in free beer) and it comes with no license or conditions of use. I give it to you in the hope that it will be useful. However, I do not accept any responsibility for the correctness and usefullness of this code.
You might also be interested in reading the information on different versions of the Neuroscan data format on their site.
Header files:
- sethead.h , general header format
- eegdef.h
- matrix_m.h , memory allocation
- matrix2m.h , newer version for memory allocation
- ns_cnt.h
Source code files:
- avgtoasc.c , convert average data to ascii
- cnttoasc.c , convert continuous data to ascii
- cnttobin.c , convert continuous data to int16 binary
- eegtoasc.c , convert epoch data to ascii
- getavg.c , function to read average data
- getepoch.c , function to read epoch data
- ns_cnt.c , code to read continuous data
- matrix2m.c , code for memory allocation
- matrix_m.c , newer version of code for memory allocation
- errmes.c , generic error messages and handling
You can also download all of the code in a single zip file.
hi,
i am doing a research on the various file formats such as edf,bdf, etc…
i have downloaded the C-code to read/convert Neuroscan 3.x (and partially 4.x?) AVG, EEG and CNT datafiles…. to test these codes i m in need of sample .eeg, .avg and .cnt files would you plz suggest me where would i be able to get some sample files of the above mentioned formats.. it would be very helpfull for me if you help me on this.
regards
yogi
Hi Yogi,
I do not use the formats any more, and looking up old files would me too much hassle for me. If you want to implement Neuroscan support in your software, you should ask the Neuroscan company (www.neuro.com) or maybe browse their website if they have demo files available. Or you can ask on the Neuroscan email discussion list (google for “scanlist neuro”, the list is hosted somewhere in Hungary).
I also want to point you to the BIOSIG initiative, which implements a large number of EEG file formats (biosig.sf.net) and Neuroshare (neuroshare.sf.net) which implements other electrophysiological (i.e. mainly intracranial recordings) file formats. Maybe you could team up with them instead of starting another project.
best regards,
Robert
Hi Yogi,
I have some cnt files and I can send them to you.
Additionally I have problem in converting cnt files to a format that I can import to MATLAB. Can you help me?
Hi
I am trying to figure out a way to convert and EEG collection from neuroscan into an edf file. I’m not sure if there is a way to do this. Any information would be greatly appreciated!
Please have a look at the FieldTrip documentation on http://fieldtrip.fcdonders.nl/faq/how_can_i_convert_one_dataformat_into_an_other