Ejemplo n.º 1
0
def test_posix_path(paths, cleanup, ad_prefix):
    class MyDetector(SingleTrigger, SimDetector):
        tiff1 = Cpt(TIFFPlugin, 'TIFF1:')

    det = MyDetector(ad_prefix, name='test')
    print(det.tiff1.plugin_type)
    cleanup.add(det)

    det.wait_for_connection()

    det.tiff1.file_path.put(paths)
    # det.cam.file_path.put(paths)
    det.stage()
    st = det.trigger()
    wait(st, timeout=5)
    det.unstage()
Ejemplo n.º 2
0
def test_basic(cleanup, ad_prefix):
    class MyDetector(SingleTrigger, SimDetector):
        tiff1 = Cpt(TIFFPlugin, 'TIFF1:')

    det = MyDetector(ad_prefix, name='test')
    print(det.tiff1.plugin_type)
    cleanup.add(det)

    det.wait_for_connection()

    det.cam.acquire_time.put(0.5)
    det.cam.acquire_period.put(0.5)
    det.cam.num_images.put(1)
    det.cam.image_mode.put(det.cam.ImageMode.SINGLE)
    det.stage()
    st = det.trigger()
    wait(st, timeout=5)
    det.unstage()
Ejemplo n.º 3
0
def test_basic(cleanup, ad_prefix):
    class MyDetector(SingleTrigger, SimDetector):
        tiff1 = Cpt(TIFFPlugin, 'TIFF1:')

    det = MyDetector(ad_prefix, name='test')
    print(det.tiff1.plugin_type)
    cleanup.add(det)

    det.wait_for_connection()

    det.cam.acquire_time.put(0.5)
    det.cam.acquire_period.put(0.5)
    det.cam.num_images.put(1)
    det.cam.image_mode.put(det.cam.ImageMode.SINGLE)
    det.stage()
    st = det.trigger()
    wait(st, timeout=5)
    det.unstage()