Talk:Blackrock eeg

From SCCN
Jump to: navigation, search

The folks at Blackrock were kind enough to send me the following information regarding their custom NEV and NSx formats.

First, they directed me to download the company's NPMK toolkit from sourceforge (sourceforge.net/projects/npmk/). (NPMK, for neural processing matlab kit.) I did this and added the NPMK directory and subfolders to my MATLAB path.

To read these files in MATLAB, I then followed their directions, which were as follows:

So for example, if you use openNSx('read') to load an NS5 file, it will create a structure called "NS5" in Matlab. This structure contains fields describing certain parameters of the recording (sampling rate, channel numbers, etc) as well as a "Data" field that has the continuous data. To save this data matrix out as a Matlab array, you would use the command save('CerebusData.mat','-struct','NS5','Data'). If you want to export an ASCII file, you need an additional step because Matlab can only export double format data to an ASCII file, and the NS5 is int16 format. You would use the commands Data_double = double(NS5.Data), thensave('CerebusData.txt','Data_double','-ascii'). You can save whatever data you want in whatever format you want once you load the files into Matlab."

They sent me sample NEV and NSx files, and I was able to import both and save them as .mat files.

Paul Fishback -- Professor of Mathematics, Grand Valley State University National Secretary-Treasurer for the Pi Mu Epsilon National Honorary Mathematics Society

Dept. of Math GVSU 1 Campus Dr. Allendale, MI 49401 fishbacp at mail.gvsu.edu