Hardware Autofocussing on Macros

Post your acquisition-related questions and macros here
Post Reply
AK Veeraraghavan
Posts: 3
Joined: Mon Aug 24, 2020 2:19 pm

Hardware Autofocussing on Macros

Post by AK Veeraraghavan »

For imaging 100s of images using jupyter notebook, software autofocus takes a lot of time. When I tried to put hardware autofocus "on" and run the jupyter notebook as it seemed faster, but the hardware autofocus went to "standby" and the focussing stopped. but wasn't able to find the code for hardware autofocussing. Please someone do help me by letting me know how to perform hardware autofocussing using hardware Autofocus or to prevent hardware autofocus to go from "on" to "standby" after snap.
CarlZeissMicroscopy3
Posts: 180
Joined: Wed May 20, 2020 10:10 am

Re: Hardware Autofocussing on Macros

Post by CarlZeissMicroscopy3 »

Hello AK Veeraraghavan ,

the hardware autofocus can be selected in the optical path.

If an experiment is configured with hardware autofocus then hardware autofocus is part of the experiment and can be applied multiple times in the GUI of Zen or via macro.

Zen.Acquisition.Execute(experiment)

If just the hardware autofocus is needed and not the complete experiment you can load the experiment containing the hardware autofocus and then call

Zen.Acquisition.FindAutofocus(experiment, timeoutSeconds)

This will execute the Autofocus-Part of the experiment, which is hardware autofocus if configured as suggested.
Post Reply