def on_display_update_timer(self): try: ph = self.picoharp self.plotline.set_data(ph.time_array * 1e-3, ph.histogram_data) self.fig.canvas.draw() finally: Measurement.on_display_update_timer(self)
def __init__( self, app, h_limits=(-1, 1), v_limits=(-1, 1), h_unit='', v_unit='', h_spinbox_decimals=4, v_spinbox_decimals=4, h_spinbox_step=0.1, v_spinbox_step=0.1, use_external_range_sync=False, circ_roi_size=1.0, ): self.h_spinbox_decimals = h_spinbox_decimals self.v_spinbox_decimals = v_spinbox_decimals self.h_spinbox_step = h_spinbox_step self.v_spinbox_step = v_spinbox_step self.h_limits = h_limits self.v_limits = v_limits self.h_unit = h_unit self.v_unit = v_unit self.use_external_range_sync = use_external_range_sync self.circ_roi_size = circ_roi_size Measurement.__init__(self, app)
def __init__(self, app): self.ui_filename = sibling_path(__file__, "sine_gen.ui") self.ui = load_qt_ui_file(self.ui_filename) self.ui.setWindowTitle(self.name) Measurement.__init__(self, app)
def __init__(self, app, h_limits=(-1, 1), v_limits=(-1, 1), h_unit='', v_unit=''): self.h_limits = h_limits self.v_limits = v_limits self.h_unit = h_unit self.v_unit = v_unit Measurement.__init__(self, app)
def __init__(self, app): # Define ui file to be used. self.ui_filename = sibling_path(__file__, "rand_gen_optimizer.ui") #Load ui file using ScopeFoundry helper function self.ui = load_qt_ui_file(self.ui_filename) # set Measurement UI window title self.ui.setWindowTitle(self.name) # Run super class Measurement init method. Measurement.__init__(self, app)
def __init__(self, app): self.ui_filename = sibling_path(__file__, "lakeshore_measure.ui") Measurement.__init__(self, app)
def __init__(self, app, name=None, hw_name='attocube_xyz_stage'): self.hw_name = hw_name Measurement.__init__(self, app, name=name)
self.total_emission_intensity) self.result_plotline.set_data( self.oo_wl_maxs, self.total_emission_intensity / self.pm_powers) for ax in self.fig_aotf_point_scan.axes: ax.relim() ax.autoscale_view() self.fig_aotf_point_scan.canvas.draw() except Exception, err: pass #print "Failed to update figure:", err finally: Measurement.on_display_update_timer(self) def collect_lifetime_data(self): # collect data #print "sleep_time", self.sleep_time #t0 = time.time() self.picoharp.start_histogram() while not self.picoharp.check_done_scanning(): #ph.read_histogram_data() time.sleep(0.1) #self.sleep_time) self.picoharp.stop_histogram() self.picoharp.read_histogram_data() elapsed_meas_time = self.picoharp.read_elapsed_meas_time() #t1 = time.time() #print "time per pixel:", (t1-t0)
def __init__(self, app): Measurement.__init__(self, app) self.dt = 0.1
def __init__(self, app, name=None, settings_dict=dict(sample='app/sample'), ): self.settings_dict = settings_dict Measurement.__init__(self, app, name=name)
def interrupt(self): Measurement.interrupt(self) self.oo_spec.interrupt()
def __init__(self, app, name=None, hw_name='asi_stage'): self.hw_name = hw_name Measurement.__init__(self, app, name=name)
def __init__(self, app, name=None, hw_name='esp300_xyz_stage'): self.hw_name = hw_name Measurement.__init__(self, app, name=name) self.hw = self.app.hardware[self.hw_name]
def __init__(self, app, shutter_open_lq_path = None): self.ui_filename = sibling_path(__file__, "power_scan.ui") Measurement.__init__(self, app) if shutter_open_lq_path != None: self.shutter_open = app.lq_path(shutter_open_lq_path)
def __init__(self, app): self.ui_filename = sibling_path(__file__, "relay_widget.ui") self.ui = load_qt_ui_file(self.ui_filename) self.ui.setWindowTitle(self.name) Measurement.__init__(self, app) self.dt = 0.1
def __init__(self, app): Measurement.__init__(self, app)
def __init__(self, app, name=None, hw_name="xbox_controller"): self.hw_name = hw_name Measurement.__init__(self, app, name=name)