mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
pulse chip fixed
This commit is contained in:
parent
c097dfc8b3
commit
8ae1e812e6
@ -1777,13 +1777,13 @@ int Feb_Control_PulseChip(int npulses){
|
||||
cprintf(RED,"some wait error\n");
|
||||
}
|
||||
Feb_Control_SetExternalEnableMode(on,1);
|
||||
counter_bit = ~0;
|
||||
counter_bit = (on?0:1);
|
||||
printf("counter_bit:%d\n",counter_bit);
|
||||
|
||||
if(on)
|
||||
printf("Pulse chip success\n");
|
||||
printf("Pulse chip success\n\n");
|
||||
else
|
||||
printf("Reset to normal mode success\n");
|
||||
printf("Reset to normal mode success\n\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ int Feb_Control_GetModuleNumber();
|
||||
|
||||
//functions for testing
|
||||
/*int Feb_Control_SetTestModeVariable(int on=1);*/
|
||||
int Feb_Control_SetTestModeVariable(int on);
|
||||
int Feb_Control_SetInTestModeVariable(int on);
|
||||
int Feb_Control_GetTestModeVariable();
|
||||
|
||||
void Feb_Control_Set_Counter_Bit(int value);
|
||||
|
Binary file not shown.
@ -5150,7 +5150,7 @@ int multiSlsDetector::pulseChip(int n) {
|
||||
int ret=-100,ret1;
|
||||
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; idet++)
|
||||
if (detectors[idet]){
|
||||
ret1=detectors[idet]->pulsePixelNMove(n);
|
||||
ret1=detectors[idet]->pulseChip(n);
|
||||
if(detectors[idet]->getErrorMask())
|
||||
setErrorMask(getErrorMask()|(1<<idet));
|
||||
if(ret==-100)
|
||||
|
@ -3778,7 +3778,7 @@ int pulse_chip(int file_des) {
|
||||
|
||||
sprintf(mess,"pulse chip failed\n");
|
||||
|
||||
n = receiveData(file_des,arg,sizeof(arg),INT32);
|
||||
n = receiveData(file_des,&arg,sizeof(arg),INT32);
|
||||
if (n < 0) {
|
||||
sprintf(mess,"Error reading from socket\n");
|
||||
ret=FAIL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user