Changeset 13814
- Timestamp:
- 05/22/12 12:36:30 (12 years ago)
- Location:
- fact/tools/PyDimCtrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/PyDimCtrl/factdimserver.py
r13812 r13814 30 30 self.user_func = None 31 31 self.__delay_between_cmds = 1.0 32 sel d.__delay_between_services = 1.032 self.__delay_between_services = 1.0 33 33 self.__last_cmd_send = -1*float('inf') 34 34 self.__last_service_got = -1*float('inf') … … 46 46 desc = 'I' 47 47 args=(1,) 48 elif desc == 'O': 49 args = (0,) 48 50 while not time.time() - self.__last_cmd_send > self.__delay_between_cmds: 49 51 time.sleep(0.5) -
fact/tools/PyDimCtrl/pyfactctrl.py
r13813 r13814 5 5 source_list = { '1ES 1218+304' : [( 0.6, -5), (0.6, 175)] ,\ 6 6 'Crab' : [(0.6, 50), (0.6, -130)], \ 7 'Mrk 421' : [(0.6, 90),(0.6, -90)] \7 'Mrk 421' : [(0.6, 90),(0.6, -90)], \ 8 8 'Mrk 501' : [(0.6, 90),(0.6, -90)] } 9 9 … … 56 56 if not WaitToCalmDown( CalmDownTime, verbose = True): 57 57 msg.fail("a problem in WaitToCalmDown(). drive state: "+drive.sts) 58 return False :58 return False 59 59 60 60 msg.ok('Tracking Source '+SrcName + ' Angle:'+str(Angle)+' Shift:'+str(Shift)) … … 200 200 201 201 fad.reset_secondary_drs_baseline() 202 if roi == 300 202 if roi == 300: 203 203 Take( -1, 1000, 'pedestal') 204 204 fad.set_file_format(2) … … 289 289 290 290 291 def VoltageOff292 291 def std_bias_watchdog( state, verbose=True ): 293 292 msg = MSG(verbose)
Note:
See TracChangeset
for help on using the changeset viewer.