def prepare():
    timing_sequencer.queue_active = False
    timing_system.image_number.count = 0
    timing_system.pass_number.count = 0
    timing_system.pulses.count = 0
    Ensemble_SAXS.acquire(delays,
                          laser_ons,
                          passes=passes,
                          image_numbers=image_numbers)
Exemplo n.º 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()
def cancel():
    Ensemble_SAXS.acquisition_cancel()
def start():
    Ensemble_SAXS.acquisition_start()
def update():
    Ensemble_SAXS.acquire(delays,
                          laser_ons,
                          passes=passes,
                          image_numbers=image_numbers)
Exemplo n.º 6
0
def test():
    while True:
        Ensemble_SAXS.add_sequences(all_delays, all_laser_modes)
        while len(Ensemble_SAXS.queue) > 10:
            sleep(1)
Exemplo n.º 7
0
def stop():
    Ensemble_SAXS.clear_queue()
def cancel():
    Ensemble_SAXS.clear_queue()
Exemplo n.º 9
0
def acquisition_setup():
    Ensemble_SAXS.acquire(delays,
                          laser_ons,
                          passes=passes,
                          image_numbers=image_numbers)