Changeset 14461 for fact/tools
- Timestamp:
- 10/03/12 22:36:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/PyDimCtrl/ScriptsForPyDimCtrl.py
r14460 r14461 98 98 print "--------------------------------------" 99 99 print "Checking the system statuses of:" 100 print "FEEDBACK, BIAS and FAD"100 print "FEEDBACK, BIAS, FAD and DRIVE_CONTROL" 101 101 print "--------------------------------------" 102 102 … … 112 112 print " to be in state 4: Connected" 113 113 fad_control.wait(4) 114 114 115 print "...waiting for drive_CONTROL" 116 print " to be in state 8: Tracking" 117 drive_control.wait(8) 118 115 119 print "...system statuses OK" 116 120 print "--------------------------------------" … … 145 149 146 150 147 def IsTracking():148 """ Name is misleading, it actually *waits* until Drive is in Tracking149 original comment: Checking if Drive is in Status Tracking150 """151 152 #return drive_control.stn == 8153 drive_control.wait(8)154 155 151 156 152 def PrepareBiasForDataTaking(): … … 284 280 """ 285 281 runtype += '\0' 286 # check if all subsystems are in the correct state287 #IsReadyForDataTaking()288 282 289 283 if verbose: … … 305 299 """ 306 300 # take a Pedestal run 307 IsTracking()308 301 IsReadyForDataTaking() 309 302 print 'taking External Light Pulser with BIAS on 1000 ...' … … 311 304 312 305 # take a ExtLP run 313 IsTracking()314 306 IsReadyForDataTaking() 315 307 print 'taking External Light Pulser with BIAS on 1000 ...' … … 319 311 for run in range(4): 320 312 print 'taking data run', run+1, 'out of 4' 321 IsTracking()322 313 IsReadyForDataTaking() 323 314 Take( 300, -1, 'data') 315 316 #schedule = [ [drive, bias/feedback, FAD && pre=start_drs_calibration|, time, events runtype, ] ] 317 #[ source_W1 && tracking(8), CC(12)&Off(7) , start_drs_calibration && connected(4), -1, 1000, 'drs-pedestal' ], 318 #[ source_W1 && tracking(8), CC(12)&Off(7) , connected(4), -1, 1000, 'drs-gain' ], 319 #[ check for underflow ?], 320 #[ source_W1 && tracking(8), CC(12)&Off(7) , connected(4), -1, 1000, 'drs-pedestal' ], 321 #[ source_W1 && tracking(8), CC(12)&Off(7) , set_file_format(2) && connected(4), -1, 1000, 'drs-pedestal' ], 322 324 323 325 324 … … 611 610 return False 612 611 613 IsTracking()614 612 IsReadyForDataTaking() 615 613 … … 854 852 StopTracking() 855 853 854 855 856 857 858 856 859 def PrintCurrents( x = 1.0): 857 860 while True:
Note:
See TracChangeset
for help on using the changeset viewer.