def xray_detector_start(self): """Configure X-ray area detector image_numbers: list of 1-based integers e.g. image_numbers = alignment_pass(1)""" if self.xray_detector_enabled: info("Setting up X-ray detector...") import lauecollect; lauecollect.load_settings() from ImageViewer import show_images filenames = self.image_filenames show_images(filenames) ccd.bin_factor = lauecollect.align.ccd_bin_factor # Speeds up the acquisition time
def acquire_image(self): self.acquire_image_started = time() self.acquire_image_setup() ccd.ignore_first_trigger = False ccd.acquire_images_triggered([normpath(self.settings.image_filename)]) show_images(normpath(self.settings.image_filename)) Ensemble_SAXS.acquire(delays=[0], laser_on=[False]) tmax = time() + self.settings.acquire_image_timeout while ccd.state() != "idle" and not self.cancelled and time() < tmax: sleep(0.05) ccd.abort() self.acquire_image_unsetup() self.acquire_image_started = 0 self.update()
def test_DAQ(): ccd.acquire_images_triggered(filenames) show_images(filenames)
def test(): test_FPGA() ccd.acquire_images_triggered(filenames) show_images(filenames)