mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
acquire works with receiver now
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@324 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -1445,8 +1445,12 @@ int configureMAC(int ipad,long long int macad,long long int servermacad,int ival
|
|||||||
|
|
||||||
|
|
||||||
u_int32_t runBusy(void) {
|
u_int32_t runBusy(void) {
|
||||||
|
u_int32_t s = bus_r(STATUS_REG);
|
||||||
return (bus_r(STATUS_REG)&RUN_BUSY_BIT);
|
//s=((s & RUN_BUSY_BIT) | (s & READMACHINE_BUSY_BIT));
|
||||||
|
//s=(s & RUN_BUSY_BIT);
|
||||||
|
//if(s!=0x62721)
|
||||||
|
// printf("status=%x\n",s);
|
||||||
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
u_int32_t dataPresent(void) {
|
u_int32_t dataPresent(void) {
|
||||||
@ -1618,8 +1622,10 @@ u_int32_t* fifo_read_event()
|
|||||||
while ((t&0x1)==0)
|
while ((t&0x1)==0)
|
||||||
{
|
{
|
||||||
t = bus_r(LOOK_AT_ME_REG);
|
t = bus_r(LOOK_AT_ME_REG);
|
||||||
if (!runBusy())
|
if (!runBusy()){
|
||||||
return NULL;
|
printf("\n\ngonna return null STATUS=%08x\n",runState());
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define ADCSYNC_VAL 0x32213
|
#define ADCSYNC_VAL 0x32113
|
||||||
|
//#define ADCSYNC_VAL 0x22113
|
||||||
|
|
||||||
|
|
||||||
#ifdef VIRTUAL
|
#ifdef VIRTUAL
|
||||||
|
@ -1939,7 +1939,7 @@ int read_frame(int file_des) {
|
|||||||
return OK;
|
return OK;
|
||||||
} else {
|
} else {
|
||||||
//might add delay????
|
//might add delay????
|
||||||
if(getFrames()>-2) {
|
if(getFrames()>-2) {printf("in hereeee: frames:%d\n",getFrames());
|
||||||
dataret=FAIL;
|
dataret=FAIL;
|
||||||
sprintf(mess,"no data and run stopped: %d frames left\n",(int)(getFrames()+2));
|
sprintf(mess,"no data and run stopped: %d frames left\n",(int)(getFrames()+2));
|
||||||
printf("%s\n",mess);
|
printf("%s\n",mess);
|
||||||
|
Reference in New Issue
Block a user