Glossary; Programming With The Lsm5Vba Interface - Zeiss LSM 880 Operating Manual

Table of Contents

Advertisement

ZEISS
4.4
COM interface
The full range of ZEN VBA commands is also available via COM, by connecting a client program to a
running ZEN system. There are two COM-automation objects available, for the Lsm5Vba interface and for
the VBA-GUI interface. The COM object Lsm5Vba is called "Lsm5Vba.Application", and the one for the
VBA-GUI interface is called "Zeiss.Micro.AIM.ApplicationInterface".
For example to connect a MATLAB session to ZEN, start ZEN first, start MATLAB, and then type
>> ZENVBA = actxGetRunningServer('Lsm5Vba.Application')
>> ZEN = actxGetRunningServer('Zeiss.Micro.AIM.ApplicationInterface.ApplicationInterface')
To start a scan, two commands are now available
>> ZENVBA.Lsm5.StartScan
>> ZEN.GUI.Acquisition.Snap.Execute
4.5

Glossary

• VBA: Visual Basic for Applications is an integrated programming environment that comes embedded
into ZEN. It allows to automate routine operations by recording macros, and to write application
programs that can use most features of the ZEN software.
• Macro: A program written in the VBA environment is usually called a macro.
• GUI: Graphical User Interface
4.6

Programming with the Lsm5Vba interface

4.6.1
Lsm5Vba API structure
Use the object browser and the intellisense feature in the VBA editor to explore the Lsm5Vba API. Also,
some example macros are provided at the end of this chapter.
28
CHAPTER 2 - MACROS AND VISUAL BASIC
VBA Programming for LSM
000000-2071-464
LSM 880
10/2014 V_01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lsm 880 nlo

Table of Contents