Skip to content
Browse files

Added header size info to header

  • Loading branch information...
1 parent 07cd577 commit 7eefc27e98dd4df9178ffee235e5fc1984ddb6ed Josh Siegle committed Dec 4, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 Source/Processors/RecordNode.cpp
View
8 Source/Processors/RecordNode.cpp
@@ -370,6 +370,10 @@ String RecordNode::generateHeader(Channel* ch)
String header = "header.format = 'OPEN EPHYS DATA FORMAT v0.0'; \n";
+ header += "header.header_bytes = ";
+ header += String(HEADER_SIZE);
+ header += ";"
+
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";
@@ -396,9 +400,9 @@ String RecordNode::generateHeader(Channel* ch)
header += "header.channelType = 'Continuous';\n";
- header += "header.sampleRate = '";
+ header += "header.sampleRate = ";
header += String(ch->sampleRate);
- header += "';\n";
+ header += ";\n";
}
header += "header.bitVolts = ";

0 comments on commit 7eefc27

Please sign in to comment.
Something went wrong with that request. Please try again.