Script

Micro-Manager single acquisition

Publication ID: ICY-C7R9O5

Short Description

This simple example show how to perform a single image acquisition with Micro-Manager for Icy from the java script. WARNING: you need to start the Micro-Manager plugin before executing this script.

Versions

  • Version 1 • Released on: 2017-08-16 15:44:45
    Download
    Description:

    initial version

    importClass(Packages.icy.sequence.Sequence)
    importClass(Packages.plugins.tprovoost.Microscopy.MicroManager.MicroManager)
    importClass(Packages.plugins.tprovoost.Microscopy.MicroManager.tools.StageMover)
    
    // move the stage to (5, 5, 5)
    StageMover.moveXYAbsolute(5, 5)
    StageMover.moveZAbsolute(5)
    
    // acquire a single image
    image = MicroManager.snapImage()
    
    // create a sequence and display it
    sequence = new Sequence(image)
    gui.addSequence(sequence)
    

Leave a Review