def inst_configdb(self, msg=''):
     uris = getattr(cp.cgwmain, 'uris', URI_CONFIGDB)
     inst = getattr(cp, 'inst', None)
     if inst is None: inst = daq_control_get_instrument()
     logger.debug('%sconnect to configdb(uri_suffix=%s, inst=%s)' %
                  (msg, uris, inst))
     return inst, get_configdb(uri_suffix=uris, inst=inst)
Exemple #2
0
 def inst_configdb(self, msg=''):
     uris = getattr(cp.cgwmain, 'uris', URI_CONFIGDB)
     inst = getattr(cp, 'instr', None)
     user = getattr(cp.cgwmain, 'user', None)
     pwd  = getattr(cp.cgwmain, 'password', None)
     if inst is None: inst = daq_control_get_instrument()
     logger.debug('%sconnect to configdb(uris=%s, inst=%s, user=%s, password=...)' % (msg, uris, inst, user))
     return inst, get_configdb(uri=uris, hutch=inst, create=False, root=ROOT_CONFIGDB, user=user, password=pwd)
Exemple #3
0
    def init_daq_control_parameters(self):
        cp.s_transition, cp.s_state, cp.s_cfgtype, cp.s_recording, _platform = daq_control_get_status(
        )

        #cp.instr = self.expname[:3].upper()
        cp.instr = daq_control_get_instrument()

        print('XXXXXX daq_control_get_instrument(): %s' % cp.instr)

        if cp.instr is None: cp.instr = 'TST'
Exemple #4
0
 def init_daq_control_parameters(self):
     cp.s_transition, cp.s_state, cp.s_cfgtype, cp.s_recording, _platform, \
         cp.s_bypass_activedet, cp.s_experiment_name, cp.s_run_number, cp.s_last_run_number = daq_control_get_status()
     cp.instr = daq_control_get_instrument()
     logger.debug('daq_control_get_instrument(): %s' % cp.instr)
     if cp.instr is None: logger.warning('instrument is None')
Exemple #5
0
 def init_daq_control_parameters(self):
     cp.s_transition, cp.s_state, cp.s_cfgtype, cp.s_recording, _platform = daq_control_get_status(
     )
     cp.instr = daq_control_get_instrument()
     logger.debug('daq_control_get_instrument(): %s' % cp.instr)
     if cp.instr is None: logger.warning('instrument is None')