コード例 #1
0
ファイル: detector.py プロジェクト: umithardal/nicos
 def doStart(self):
     # open shutter
     if self.ctrl_gammashutter:
         self._attached_gammashutter.maw(OPEN)
     if self.ctrl_photoshutter:
         self._attached_photoshutter.maw(OPEN)
     Detector.doStart(self)
     self._prepared = False
コード例 #2
0
    def doStart(self):
        try:
            if self._attached_rc.read(0) != 'on':
                self.log.warning('radial collimator is not moving!')
        except NicosError:
            self.log.warning('could not check radial collimator', exc=1)

        self._update()

        self._last_time = 0
        self._last_counts = 0
        self._last_moncounts = 0
        self._starttime = currenttime()
        self._setROParam('rates', [[0., 0.], [0., 0.]])

        session.action('run# %06d' % session.experiment.lastpoint)

        GenericDetector.doStart(self)
コード例 #3
0
 def doStart(self):
     if self._attached_shutter and self.openshutter:
         self._attached_shutter.maw('open')
     self.kwscounting = True
     Detector.doStart(self)
コード例 #4
0
 def doStart(self):
     # First start all the channels (if applicable) and then
     # set the detector startpv
     Detector.doStart(self)
     self._put_pv('startpv', 1, wait=True)
コード例 #5
0
 def doStart(self):
     # open shutter before exposure
     if self.ctrl_shutter:
         self._attached_shutter.maw(OPEN)
     Detector.doStart(self)