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:
johnson_i
2013-09-13 13:18:02 +00:00
parent 8f4a2cc182
commit 41140c882a
2 changed files with 8 additions and 27 deletions

View File

@ -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");