Changeset 14461 for fact/tools/PyDimCtrl


Ignore:
Timestamp:
10/03/12 22:36:54 (12 years ago)
Author:
neise
Message:
starting to think about schedule 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/PyDimCtrl/ScriptsForPyDimCtrl.py

    r14460 r14461  
    9898  print "--------------------------------------"
    9999  print "Checking the system statuses of:"
    100   print "FEEDBACK, BIAS and FAD"
     100  print "FEEDBACK, BIAS, FAD and DRIVE_CONTROL"
    101101  print "--------------------------------------"
    102102
     
    112112  print "   to be in state 4: Connected"
    113113  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
    115119  print "...system statuses OK"
    116120  print "--------------------------------------"
     
    145149
    146150
    147 def IsTracking():
    148   """ Name is misleading, it actually *waits* until Drive is in Tracking
    149   original comment: Checking if Drive is in Status Tracking
    150   """
    151  
    152   #return drive_control.stn == 8
    153   drive_control.wait(8)
    154  
    155151
    156152def PrepareBiasForDataTaking():
     
    284280  """
    285281  runtype += '\0'
    286   # check if all subsystems are in the correct state
    287   #IsReadyForDataTaking()
    288282
    289283  if verbose:
     
    305299  """
    306300  # take a Pedestal run
    307   IsTracking()
    308301  IsReadyForDataTaking()
    309302  print 'taking External Light Pulser with BIAS on 1000 ...'
     
    311304 
    312305  # take a ExtLP run
    313   IsTracking()
    314306  IsReadyForDataTaking()
    315307  print 'taking External Light Pulser with BIAS on 1000 ...'
     
    319311  for run in range(4):
    320312    print 'taking data run', run+1, 'out of 4'
    321     IsTracking()
    322313    IsReadyForDataTaking()
    323314    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
    324323
    325324
     
    611610    return False
    612611
    613   IsTracking()
    614612  IsReadyForDataTaking()
    615613
     
    854852  StopTracking()
    855853
     854
     855
     856
     857
     858
    856859def PrintCurrents( x = 1.0):
    857860  while True:
Note: See TracChangeset for help on using the changeset viewer.