Show acquired images in gallery of OAD workbench

In this subforum specific Topics concerning ZEN Core, e.g workbenches, are discussed
Post Reply
user-5759
Posts: 6
Joined: Thu Jan 01, 1970 1:00 am

Show acquired images in gallery of OAD workbench

Post by user-5759 »

Hi,

I am currently running a macro that takes random images throughout a sample. Acquisition is carried out using the following code:

Code: Select all

image=Zen.Acquisition.AcquireImage()
Is there a way to add each acquired image to the gallery in the OAD workbench immediately after being acquired so the user can see the images while the macro runs? Currently, the user has to start the macro and then go to the 2D acquisition workbench to see the images being acquired, although this often times breaks the macro with a "Camera is not responding" error.

Thank you!
Craig
user-4
Posts: 397
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

Hello,

I think your question has been answered already in

Importing table for report


Therefore the transfered solution looks like

Code: Select all

image=Zen.Acquisition.AcquireImage()

#Center Screen Area (Data presented by the workbench)
Zen.Application.ActiveDocument = image

#Right Tool Area (Defining the output of the workbench)
Zen.Application.ActiveWorkbench.SetOutputValue(image,'image')
Start FreeMode, add a macro workbench, insert the code, close the editor, and finally press Apply (NOT Run)

I hope this helps!
Post Reply