コード例 #1
0
 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
コード例 #2
0
    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()
コード例 #3
0
def test_DAQ():
    ccd.acquire_images_triggered(filenames)
    show_images(filenames)
コード例 #4
0
def test():
    test_FPGA()
    ccd.acquire_images_triggered(filenames)
    show_images(filenames)