Пример #1
0
 def initialize(self, cxn, context, ident):
     self.ident = ident
     self.excite = self.make_experiment(excitation_729)
     self.excite.initialize(cxn, context, ident)
     if self.parameters.Crystallization.auto_crystallization:
         self.crystallizer = self.make_experiment(crystallization)
         self.crystallizer.initialize(cxn, context, ident)
     self.scan = []
     self.amplitude = None
     self.duration = None
     #self.radial_mode_offset = None #Not sure, should be removed
     self.cxnlab = labrad.connect(
         '192.168.169.49', password='******',
         tls_mode='off')  #connection to labwide network
     self.drift_tracker = cxn.sd_tracker
     self.dv = cxn.data_vault
     self.fitter = cxn.fitter
     self.pv = cxn.parametervault
     self.spectrum_save_context = cxn.context()
     self.save_trap_freq = cxn.context()
     self.ion_number = int(self.parameters.Sideband_tracker.ion_selection)
     #self.radial_freq_offset = int(self.parameters.Sideband_tracker.mode_offset) #Ahmed
     self.sideband_selection = cm.selected_sideband(
         self.parameters.Sideband_tracker.sideband_selection)
     self.auto_fit = self.parameters.Sideband_tracker.auto_fit
     print self.sideband_selection
 def run(self, cxn, context):
     self.sideband_selection = cm.selected_sideband(self.parameters.Sideband_tracker.sideband_selection)
     self.setup_data_vault()
     self.setup_sequence_parameters()
     for i,freq in enumerate(self.scan):
         should_stop = self.pause_or_stop()
         if should_stop: break
         ## get only the ion that we want
         excitation_all = self.get_excitation_crystallizing(cxn, context, freq)
         if excitation_all is None: break
         excitation = np.array([excitation_all[self.ion_number]])
         print excitation
         submission = [freq['MHz']]
         submission.extend(excitation)
         self.dv.add(submission, context = self.spectrum_save_context)
         self.update_progress(i)
     ### don't fit if stop ###
     if not should_stop:
         self.fit_center_freq(cxn, context)
Пример #3
0
 def initialize(self, cxn, context, ident):
     self.ident = ident
     self.excite = self.make_experiment(excitation_729)
     self.excite.initialize(cxn, context, ident)
     if self.parameters.Crystallization.auto_crystallization:
         self.crystallizer = self.make_experiment(crystallization)
         self.crystallizer.initialize(cxn, context, ident)
     self.scan = []
     self.amplitude = None
     self.duration = None
     self.cxnlab = labrad.connect('192.168.169.49') #connection to labwide network
     self.drift_tracker = cxn.sd_tracker
     self.dv = cxn.data_vault
     self.fitter = cxn.fitter
     self.pv = cxn.parametervault
     self.spectrum_save_context = cxn.context()
     self.save_trap_freq = cxn.context()
     self.ion_number = int(self.parameters.Sideband_tracker.ion_selection)
     self.sideband_selection = cm.selected_sideband(self.parameters.Sideband_tracker.sideband_selection)
     self.auto_fit = self.parameters.Sideband_tracker.auto_fit
     print self.sideband_selection
 def run(self, cxn, context):
     self.sideband_selection = cm.selected_sideband(
         self.parameters.Sideband_tracker.sideband_selection)
     self.setup_data_vault()
     self.setup_sequence_parameters()
     for i, freq in enumerate(self.scan):
         should_stop = self.pause_or_stop()
         if should_stop: break
         ## get only the ion that we want
         excitation_all = self.get_excitation_crystallizing(
             cxn, context, freq)
         if excitation_all is None: break
         excitation = np.array([excitation_all[self.ion_number]])
         print excitation
         submission = [freq['MHz']]
         submission.extend(excitation)
         self.dv.add(submission, context=self.spectrum_save_context)
         self.update_progress(i)
     ### don't fit if stop ###
     if not should_stop:
         self.fit_center_freq(cxn, context)