beb stop acquisiion return, some minor changes, increased the check time for receiver frame after detector read out done using acquisiingDone variable

This commit is contained in:
Dhanya Maliakal
2015-06-12 17:45:43 +02:00
parent b193237df3
commit b11b7c1c09
6 changed files with 8 additions and 7 deletions

View File

@@ -568,6 +568,7 @@ int Beb_StopAcquisition()
*(ptrl+7) = 0;
*(ptrr+7) = 0;
close(fd);
return 1;
}
int Beb_RequestNImages(unsigned int beb_number, int ten_gig, unsigned int dst_number, unsigned int nimages, int test_just_send_out_packets_no_wait){
@@ -637,9 +638,8 @@ int Beb_RequestNImages(unsigned int beb_number, int ten_gig, unsigned int dst_nu
ptrl = (u_int32_t*)(CSP0BASE);
ptrr = (u_int32_t*)(CSP0BASE+0x100);
int i;
#ifdef MARTIN
int i;
for (i=0; i < 10; i++)
printf("%X\n",*(ptrl+i));
#endif

View File

@@ -1,6 +1,6 @@
CC = powerpc-4xx-softfloat-gcc
CCX = powerpc-4xx-softfloat-g++
CFLAGS += -Wall -DDACS_INT -DMARTIN -DEIGERD -DSLS_DETECTOR_FUNCTION_LIST -DDACS_INT -DSTOP_SERVER #-DVERBOSE #-DVIRTUAL -DPCCOMPILE -DMARTIN
CFLAGS += -Wall -DDACS_INT -DEIGERD -DSLS_DETECTOR_FUNCTION_LIST -DDACS_INT -DSTOP_SERVER #-DVERBOSE #-DVIRTUAL -DPCCOMPILE -DMARTIN
LDLIBS += -lm -lstdc++
PROGS = eigerDetectorServer

View File

@@ -530,6 +530,7 @@ int stopStateMachine(){
printf("Going to stop acquisition\n");
if(Feb_Control_StopAcquisition() & Beb_StopAcquisition())
return OK;
printf("failed to stop acquisition\n");
return FAIL;
}
@@ -537,7 +538,7 @@ int stopStateMachine(){
int startReadOut(){
//RequestImages();
int ret_val = 0, i;
int ret_val = 0;
dst_requested[0] = 1;
while(dst_requested[on_dst]){
//waits on data