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)
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)