Planar R54 Programming Manual page 12

Vector reflectometer; programming com/dcom
Table of Contents

Advertisement

PLANAR R54x2
For example, the following operators create Application object and assign it to app
variable:
Set app = CreateObject("R54x2.Applcation")
Set app = CreateObject("R54x2.Applcation", "Network_Name")
Note
To allow access to the objects of a lower level of the hierarchy, these objects are
specified after the reference to the higher level object and separated from it by a dot. For
example:
Dim SystObj
Set SystObj = app.SCPI.SYSTem
COM objects can have indices. For example, CALCulate, INITiate, SENSe, SOURce
objects represent various aspects of the 4 measurement channels of the Analyzer.
Therefore, it is necessary to write the channel index from 1 to 4 to acquire the data of
these objects. For example:
Set SensObj1 = app.SCPI.SENSe(1)
Set SensObj2 = app.SCPI.SENSe(2)
Visual Basic allows omitting of such indices; in this case the indices are considered as
equal to 1. For example, the following VB operators are equivalent:
Set SensObj = app.SCPI.SENSe(1)
Set SensObj = app.SCPI.SENSe
The first form of the operator is used to create the reference to
the local COM server, the second one is used to create the
reference to the remote DCOM server.
COM/DCOM Programming manual
12

Advertisement

Table of Contents
loading

Table of Contents