mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 08:38:00 +02:00
2nd ci, Eiger class added, DAC test
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@669 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -40,7 +40,8 @@ const enum detectorType myDetectorType=GENERIC;
|
||||
char mess[1000];
|
||||
char *dataretval=NULL;
|
||||
int dataret;
|
||||
extern int dataBytes;
|
||||
//extern
|
||||
int dataBytes = 10;
|
||||
|
||||
|
||||
|
||||
@ -48,15 +49,11 @@ extern int dataBytes;
|
||||
int init_detector(int b) {
|
||||
#ifdef VIRTUAL
|
||||
printf("This is a VIRTUAL detector\n");
|
||||
#endif
|
||||
#ifdef SLS_DETECTOR_FUNCTION_LIST
|
||||
mapCSP0();
|
||||
#endif
|
||||
//only for control server
|
||||
if(b){
|
||||
#ifdef SLS_DETECTOR_FUNCTION_LIST
|
||||
initializeDetectorStructure();
|
||||
setupDetector();
|
||||
initDetector();
|
||||
#endif
|
||||
}
|
||||
strcpy(mess,"dummy message");
|
||||
@ -2974,7 +2971,11 @@ int read_counter_block(int file_des) {
|
||||
int n;
|
||||
int startACQ;
|
||||
//char *retval=NULL;
|
||||
#ifdef GOTTHARDD
|
||||
char CounterVals[NCHAN*NCHIP];
|
||||
#else
|
||||
char CounterVals[dataBytes];
|
||||
#endif
|
||||
|
||||
sprintf(mess,"Read counter block failed\n");
|
||||
|
||||
|
Reference in New Issue
Block a user