mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 13:57:13 +02:00
writing frame number to the file for eiger
This commit is contained in:
@ -499,7 +499,8 @@ protected:
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
unsigned char num1[4];
|
unsigned char num1[4];
|
||||||
unsigned char num2[4];
|
unsigned char num2[3];
|
||||||
|
unsigned char num3[1];
|
||||||
} eiger_packet_header;
|
} eiger_packet_header;
|
||||||
|
|
||||||
/** max number of listening threads */
|
/** max number of listening threads */
|
||||||
|
@ -2306,8 +2306,13 @@ void UDPStandardImplementation::writeToFile_withoutCompression(char* buf,int num
|
|||||||
if((enableFileWrite) && (sfilefd)){
|
if((enableFileWrite) && (sfilefd)){
|
||||||
|
|
||||||
offset = HEADER_SIZE_NUM_TOT_PACKETS;
|
offset = HEADER_SIZE_NUM_TOT_PACKETS;
|
||||||
if(myDetectorType == EIGER)
|
if(myDetectorType == EIGER){
|
||||||
offset += EIGER_HEADER_LENGTH;
|
offset += EIGER_HEADER_LENGTH;
|
||||||
|
(*(uint32_t*)(((eiger_packet_header *)((char*)(buf + offset)))->num1)) = framenum;
|
||||||
|
//cprintf(RED, "framenum:0x%x\n", (*(unsigned int*)(((eiger_packet_header *)((char*)(buf + offset)))->num1)));
|
||||||
|
//cprintf(RED, "2packetnumber:0x%x\n", (*(uint16_t*)(((eiger_packet_header *)((char*)(buf + offset)))->num3)));
|
||||||
|
//cprintf(RED, "22packetnumber:0x%x\n",(*(uint16_t*)(((eiger_packet_header *)((char*)(buf + offset +1040)))->num3)));
|
||||||
|
}
|
||||||
while(numpackets > 0){
|
while(numpackets > 0){
|
||||||
|
|
||||||
//for progress and packet loss calculation(new files)
|
//for progress and packet loss calculation(new files)
|
||||||
|
Reference in New Issue
Block a user