Permalink
Browse files

Updated header format

  • Loading branch information...
1 parent 631850a commit 07cd5779642fffd93a116ca40d7d75dbf3a3e432 Josh Siegle committed Dec 4, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 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();

0 comments on commit 07cd577

Please sign in to comment.