Example #1
0
 def delay_scan(self,
                start,
                end,
                sweep_time,
                record=True,
                use_l3t=False,
                duration=None):
     """Delay scan with the daq."""
     self.cleanup_RE()
     bec.disable_plots()
     controls = [lxt_fast]
     try:
         RE(
             delay_scan(daq,
                        lxt_fast, [start, end],
                        sweep_time,
                        duration=duration,
                        record=record,
                        use_l3t=use_l3t,
                        controls=controls))
     except Exception:
         logger.debug('RE Exit', exc_info=True)
     finally:
         self.cleanup_RE()
         bec.enable_plots()
Example #2
0
    def delay_scan(self,
                   start,
                   end,
                   sweep_time,
                   record=None,
                   use_l3t=False,
                   duration=None,
                   post=False):
        """Delay scan with the daq."""
        self.cleanup_RE()
        daq.configure(events=None,
                      duration=None,
                      record=record,
                      use_l3t=use_l3t,
                      controls=[lxt_fast])
        try:
            RE(
                delay_scan(daq,
                           lxt_fast, [start, end],
                           sweep_time,
                           duration=duration))
        except Exception:
            logger.debug('RE Exit', exc_info=True)
        finally:
            self.cleanup_RE()

        if post:
            run = get_run()
            message = 'delay scan from {min1:.2f} to {max1:.2f} in with {sweep:.2f}s sweep time'.format(
                min1=start, max1=end, sweep=sweep_time)
            self.elog.post(message, run=int(run))
Example #3
0
 def delay_scan(self, start, end, sweep_time, record=None, use_l3t=False,
                duration=None):
     """Delay scan with the daq."""
     self.cleanup_RE()
     daq.configure(events=None, duration=None, record=record,
                   use_l3t=use_l3t, controls=[lxt_fast])
     try:
         RE(delay_scan(daq, lxt_fast, [start, end], sweep_time,
                       duration=duration))
     except Exception:
         logger.debug('RE Exit', exc_info=True)
     finally:
         self.cleanup_RE()
Example #4
0
 def empty_delay_scan(self,
                      time_motor,
                      start,
                      end,
                      sweep_time,
                      record=True,
                      use_l3t=False):
     """Delay scan without the daq."""
     self.cleanup_RE()
     daq.configure(events=None,
                   duration=None,
                   record=record,
                   use_l3t=use_l3t,
                   controls=[time_motor])
     try:
         RE(delay_scan(None, time_motor, [start, end], sweep_time))
     except Exception:
         logger.debug('RE Exit', exc_info=True)
     finally:
         self.cleanup_RE()