static void __go() { int ii, jj, id, slot; logMsg("INFO: Entering Go 1\n",1,2,3,4,5,6); /* set sync event interval (in blocks) */ vmeBusLock(); tsSetSyncEventInterval(0/*10000*//*block_level*/); vmeBusUnlock(); /* always clear exceptions */ jlabgefClearException(1); nusertrig = 0; ndone = 0; CDOENABLE(TSPRIMARY,TIR_SOURCE,0); /* bryan has (,1,1) ... */ logMsg("INFO: Go 1 Executed\n",1,2,3,4,5,6); }
static void __go() { int ii, jj, id, slot; logMsg("INFO: Entering Go 1\n",1,2,3,4,5,6); #ifndef TI_SLAVE /* set sync event interval (in blocks) */ vmeBusLock(); tiSetSyncEventInterval(100000/*10000*//*block_level*/); printf("TI: Sync Event Block-Interval = %d\n", tiGetSyncEventInterval()); vmeBusUnlock(); #endif #ifdef USE_PRAD /* Enable modules, if needed, here */ #ifdef USE_V767 vmeBusLock(); v767Clear(0); vmeBusUnlock(); #endif #ifdef USE_V1190 vmeBusLock(); tdc1190Clear(0); vmeBusUnlock(); #endif /* DCS2 dsc2LatchScalers(0,1); */ #endif tiStatus(1); /* always clear exceptions */ jlabgefClearException(1); nusertrig = 0; ndone = 0; CDOENABLE(TIPRIMARY,TIR_SOURCE,0); /* bryan has (,1,1) ... */ tiSoftTrig(1,1,0x448C,1); logMsg("INFO: Go 1 Executed\n",1,2,3,4,5,6); }