CHAPTER 2 - MACROS AND VISUAL BASIC
ELYRA 7
Programming with the VBA-GUI interface
ZEISS
03/2019 V_02
000000-2262-999
15
6
Programming with the VBA-GUI interface
6.1
Introduction
The ZEN VBA-GUI interface allows you to program ZEN with the same comfort and ease as using the
mouse to control the GUI. All capabilities of the ZEN system are accessible via an intuitive syntax.
The main idea behind the ZEN VBA-GUI interface is to make ZEN commands available in the same way as
they are in the GUI. The image shows how this principle works: To set the acquisition frame size, one has
to
1.
Select the
Acquisition
tab
2.
Go to the
Acquisition
mode box
3.
Set
Frame Size X
and
Y
In the VBA-GUI interface, this translates to "Acquisition.AcquisitionMode.FrameSizeX" and
"FrameSizeY".
The easiest way to access the VBA-GUI interface is to start with a recorded macro. This contains a "ZEN"
object, which has a "GUI" property. "ZEN.GUI" is the entry point to the VBA-GUI interface.
Fig. 12
ZEN VBA-GUI Interface