Beispiel #1
0
 def setup_dae_50hz_short(self):
     """Setup LOQ for 50hz mode while short"""
     gen.change_sync("isis")
     gen.change_monitor(2, low=6800.0, high=17000.0)
     gen.change_vetos(clearall=True,
                      smp=True,
                      TS2=True,
                      ext0=True,
                      ext1=True,
                      ext2=True,
                      ext3=True)
     return self._generic_scan(tcbs=[{
         "low": 6e3,
         "high": 1.96e4,
         "step": 4e2,
         "log": False
     }, {
         "low": 1.96e4,
         "high": 1.99e4,
         "step": 3e2,
         "log": False
     }, {
         "low": 1.99e4,
         "high": 2.08e4,
         "step": 1e2,
         "log": False
     }, {
         "low": 2.08e4,
         "high": 2.60e4,
         "step": 4e2,
         "log": False
     }])
Beispiel #2
0
 def setup_dae_histogram(self):
     gen.change_sync('isis')
     self._generic_scan(tcbs=[{
         "low": 5.0,
         "high": 100000.0,
         "step": 100.0,
         "trange": 1,
         "log": 0
     }, {
         "low": 0.0,
         "high": 0.0,
         "step": 0.0,
         "trange": 2,
         "log": 0
     }])
     self._set_choppers(self.lrange)
Beispiel #3
0
 def setup_dae_quiet(self):
     """Setup LOQ for quiet operation"""
     gen.change_sync("internal")
     gen.change_monitor(2, low=5.0, high=20000.0)
     gen.change_vetos(clearall=True,
                      smp=False,
                      TS2=False,
                      ext0=False,
                      ext1=False,
                      ext2=False,
                      ext3=False)
     return self._generic_scan(tcbs=[{
         "low": 5.0,
         "high": 19995.0,
         "step": 4000.0,
         "log": False
     }])
Beispiel #4
0
 def setup_dae_normal(self):
     """Setup LOQ for normal operation"""
     gen.change_sync("smp")
     gen.change_monitor(2, low=5000.0, high=27000.0)
     gen.change_vetos(clearall=True,
                      smp=True,
                      TS2=True,
                      ext0=True,
                      ext1=True,
                      ext2=True,
                      ext3=True)
     return self._generic_scan(tcbs=[{
         "low": 3500.0,
         "high": 43500.0,
         "step": 0.025,
         "log": True
     }])
Beispiel #5
0
 def setup_dae_transmission(self):
     self.send_pv("PARS:SAMPLE:MEAS:TYPE", "transmission")
     gen.change_sync('isis')
     self._generic_scan(
         r"C:\Instrument\Settings\Tables\detector_monitors_only.dat",
         r"C:\Instrument\Settings\Tables\spectra_monitors_only.dat",
         r"C:\Instrument\Settings\Tables\wiring_monitors_only.dat",
         [{
             "low": 5.0,
             "high": 100000.0,
             "step": 100.0,
             "trange": 1,
             "log": 0
         }, {
             "low": 0.0,
             "high": 0.0,
             "step": 0.0,
             "trange": 2,
             "log": 0
         }])
     self._set_choppers(self.lrange)
Beispiel #6
0
 def setup_dae_50hz_long(self):
     """Setup LOQ for 50hz mode while long"""
     gen.change_sync("isis")
     gen.change_monitor(2, low=5000.0, high=27000.0)
     gen.change_vetos(clearall=True,
                      smp=True,
                      TS2=True,
                      ext0=True,
                      ext1=True,
                      ext2=True,
                      ext3=True)
     return self._generic_scan(tcbs=[{
         "low": 2e4,
         "high": 3.95e4,
         "step": 2.5e2,
         "log": False
     }, {
         "low": 3.95e4,
         "high": 4e4,
         "step": 1e2,
         "log": False
     }])