Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Open Ephys data format (version 0.4)

...

  hdr = fread(fid, 1024, 'char*1');
eval(char(hdr'));
info.header = header;



This is actually pretty handy, since any changes to the header format (which will probably happen often) won't affect the code for reading data files. However, note that reading files using this method also creates a security risk if there is any doubt as to the origin of the file, since reading the header involves executing a portion of the file as MATLAB code. Therefore, be careful if you are working with files in one of these formats that you did not create yourself.

...

  • format = 'Open Ephys Data Format'
  • version = 0.4
  • header_bytes = 1024
  • description = '(String describing the header)'
  • date_created = 'dd-Mmm-yyyy hhmmss'
  • channel = '(String with channel name)'
  • channelType = '(String describing the channel type)'
  • sampleRate = (integer sampling rate)
  • blockLength = 1024
  • bufferSize = 1024
  • bitVolts = (floating point value of voltsmicrovolts/bit)

For those not using MATLAB, each header entry is on a separate line with the following format:

...