Saving multiple experiment blocks from OAD

Your place to discuss general handling of images and the CZI file format
Post Reply
Xavier Snelgrove
Posts: 2
Joined: Fri Feb 19, 2021 8:12 pm

Saving multiple experiment blocks from OAD

Post by Xavier Snelgrove »

Hello,

I'm running an experiment and saving its results via a Python OAD macro thus:

Code: Select all

    exp = Zen.Acquisition.Experiments.GetByName("experiment_name")
    img = Zen.Acquisition.Execute(exp)
    img.Save_2("filename.czi")
However, my experiment has multiple blocks defined in Experiment Designer, and I'm finding that my macro only saves images from the last block. I've tried changing the filename to "filename.czmbi" to match the format when I save from directly in Zen, but that gives an error.

How should I modify this to save the entire experiment result?

Thanks!
CarlZeissMicroscopy3
Posts: 180
Joined: Wed May 20, 2020 10:10 am

Re: Saving multiple experiment blocks from OAD

Post by CarlZeissMicroscopy3 »

Hello Xavier Snelgrove,
I've tried changing the filename to "filename.czmbi" to match the format when I save from directly in Zen, but that gives an error.
yes, almost thought right!

If you want to work with the ExperimentDesigner then the mechanisms are different from normal experiments. The ExperimentDesigner has a managing unit around it and the results are czmbi plus images and not just a single image.

Therefore the accurate approach in a macro is like

zenMultiBlockImage = Zen.Acquisition.ExecuteMultiBlockImages(zenExperiment)
Post Reply