User`s guide

APPENDIX A-
Macro Interface Overview
GigaView provides Macro Record and Playback features for scripting and automating activities performed on a
repetitive basis. The Macro interface is based on Microsoft's VBScript language, which includes the ability to control
program execution using conditional and looping statements.
Macros can be recorded and then modified, or written from scratch. The Macro interface can also be used to access
GigaView functions from an external application. In particular, Microsoft® Visual Basic may be used, but other
programs which support the VBScript language such as Microsoft Word and Excel may also be used.
In order for the VBScript engine to access GigaView’s functionality, a variable that acts as a placeholder to the
application must be dimensioned and initialized as follows:
Dim Visi
Set Visi = CreateObject ("Visi.Application")
This is automatically done for you if the macro is recorded. If you are writing your macro from scratch, you will need to
include this initialization as well. This variable is then used on all subsequent calls to access the GigaView application,
for example:
Dim Visi
Set Visi = CreateObject ("Visi.Application")
Visi.New ("Histogram")
Visi.New ("Oscilloscope")
Visi.Tile
MACRO COMMANDS
Annotate Method - Provides a mechanism to append a note to the statistics page of the current tool.
Syntax
AppObj.Annotate(Text)
AppObj is the required GigaView Application Object.
Text is the required String defining the text to be added to the statistics page.
Example
Dim Visi
Set Visi = CreateObject ("Visi.Application")
Visi.New ("Histogram")
Visi.Annotate ("This is a text string appended to the Histogram statistics page.")
AutoConfig Method - Issues the AutoConfig command to the current tool. This command normally resets all
parameters (except the channel) to default values, issues a pulsefind command, and then performs a single
acquisition.
Syntax
AppObj.AutoConfig
AppObj is the required GigaView Application Object.
Example
Dim Visi
Set Visi = CreateObject ("Visi.Application")
Visi.New ("Histogram")
Visi.AutoConfig
©
WAVECREST Corporation 2005
Appendix A
269