I would to know is it possible that macro can do the automatically export and generate project in ZEN Connect after stitching ?
## A C Q U I S I T I O N
##
## Macro name: Overview Stitching
## Required files: TileCoin50x.czexp
## Required hardware: camera, microscope, scanningstage
##
## LOAD EXPERIMENT, EXECUTE EXPERIMENT, DISPLAY AND SAVE ACQUIRED IMAGE AUTOMATICALLY
## (2x2 tiles of the scanningstage)
##
#######################################################
##
## Remove all open images
Zen.Application.Documents.RemoveAll()
##
hardwaresetting1 = ZenHardwareSetting()
hardwaresetting1.SetParameter('MTBZoom', 'Position', '0.8')
Zen.Devices.ApplyHardwareSetting(hardwaresetting1)
Zen.Application.Pause('Instructure \n1) Click Acquistion (2nd Top) \n2) Select TileCoin50x (pulldown) \n3) Click Continue')
## Define experiment
exp = ZenExperiment()
## Load experiment
exp.Load("TileCoin50x.czexp",ZenSettingDirectory.User)
image = Zen.Acquisition.Execute(exp)
## save image
path = Zen.Application.Environment.GetFolderPath(ZenSpecialFolder.ImageAutoSave)
fullPath = path + '\\' + image.Name
#image.Save(fullPath)
Zen.Application.ShowWindow("NewDocument")
#image.Close()
##
#######################################################
export the stitching image to zen connect ?
Importing Images into ZEN Connect can be automated
Hi,
yes this is possible. Please have a look here:
https://github.com/zeiss-microscopy/OAD ... EN_Connect
yes this is possible. Please have a look here:
https://github.com/zeiss-microscopy/OAD ... EN_Connect
Now i can exported to zen connect after stitching images. But i got message "No Preview Avaliable" when i load a zen connect project which is created from this script. (https://github.com/zeiss-microscopy/OAD ... EN_Connect)
Meanwhile if i created new zen connect project by normally procedure it is work. I can load the project and preview avaliable.
These are run on ZEN 3.0 Blue.
attached image.
Meanwhile if i created new zen connect project by normally procedure it is work. I can load the project and preview avaliable.
These are run on ZEN 3.0 Blue.
attached image.
- Attachments
-
- ZEN CONNECT.jpg (277.38 KiB) Viewed 2264 times