Skip to content
Snippets Groups Projects
Commit 7eefc27e authored by Josh Siegle's avatar Josh Siegle
Browse files

Added header size info to header

parent 07cd5779
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment