Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated header format

  • Loading branch information...
commit 07cd5779642fffd93a116ca40d7d75dbf3a3e432 1 parent 631850a
Josh Siegle authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 Source/Processors/RecordNode.cpp
View
10 Source/Processors/RecordNode.cpp
@@ -369,7 +369,15 @@ String RecordNode::generateHeader(Channel* ch)
{
String header = "header.format = 'OPEN EPHYS DATA FORMAT v0.0'; \n";
- header += "header.description = 'each record contains one 64-bit timestamp, one 16-bit sample count (N), and N 16-bit samples'; \n";
+
+ if (ch->isEventChannel)
+ {
+ header += "header.description = 'each record contains one 64-bit timestamp, one 16-bit sample position, one uint8 event type, one uint8 processor ID, one uint8 event ID, and one uint8 event channel'; \n";
+
+ } else {
+ header += "header.description = 'each record contains one 64-bit timestamp, one 16-bit sample count (N), N 16-bit samples, and one 10-byte record marker (0 0 0 0 0 0 0 0 0 255)'; \n";
+ }
+
header += "header.date_created = '";
header += generateDateString();
Please sign in to comment.
Something went wrong with that request. Please try again.