write number of frames and period in file header

This commit is contained in:
Dhanya Maliakal
2016-11-11 16:08:18 +01:00
parent c364b28922
commit 45fc87240f
2 changed files with 36 additions and 2 deletions

View File

@ -243,6 +243,13 @@ class UDPStandardImplementation: private virtual slsReceiverDefs, public UDPBase
*/
void closeFile(int ithread = 0);
/**
* Activate / Deactivate Receiver
* If deactivated, receiver will write dummy packets 0xFF
* (as it will receive nothing from detector)
*/
int setActivate(int enable = -1);
private:
/*************************************************************************
* Getters ***************************************************************
@ -601,7 +608,7 @@ private:
/** If file created successfully for all Writer Threads */
bool fileCreateSuccess;
const static int FILE_HEADER_SIZE = 400;
const static int FILE_HEADER_SIZE = 500;
char fileHeader[MAX_NUMBER_OF_WRITER_THREADS][FILE_HEADER_SIZE];