open-ephys / analysis-tools

Archived code for reading data saved by the Open Ephys GUI
59 stars 176 forks source link

Importing OpenEphys .event in Matlab / neuroexplorer4 #82

Open alfonsogravante opened 4 years ago

alfonsogravante commented 4 years ago

Hello,

I’m trying to import data from open ephys to neuroexplorer 4.

I first import data in matlab using load_open_ephys_data.m or load_open_ephys_data_faster.m. Then, to bypass the well known import issues, I import data in neuroexplore by means of nex script GetMatlabVectorAsContVar.nsc for continuous variables and GetMatlabTimestampVector.nsc for events variables.

Everything works fine for .continuous data, but I have problems when trying to import .events.

In particular, I can import in Matlab only 1 column of data. In this column each number represents the number of channel-line changing phase in time (e.g. if I switch on dig 2, then dig 3 and then off 3 and 2 I’ll read 2332). However I cannot import timestamps and the flag (1 or 0, on/off). Note that importing data with the demo version of neuroexplorer 5 and sending to Matlab, I have as a result a matrix of 5 columns: 1 timestmps; 2 event type; 3 processor ID; 4 event ID (i.e. 1 or 0 of the dig. Channel); 5 event channel, thus I believe all data are present in the .event file.

Do you think it is a problem in our Open-ephys configuration? Did someone else had the same problem? Any solution or suggestion?

Thanks in advance for help