Professional Documents
Culture Documents
VI Automation Interfase
VI Automation Interfase
Automation Interface
OMICRON Test Universe
2
Contents
Contents
Object Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Application Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Application (read only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Constants (read only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Document (read only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Name (read only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Parent (read only). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Visible . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Quit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Document Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Application (read only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Parent (read only). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Shots (read only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
TestSettings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
UpdateAllViews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
TestSettings Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
FaultType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
PhaseAngle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
ShotDuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Pause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1
OMICRON Test Universe
2
VI Starting Automation Interface
1 Test Settings: it defines the test model and the test parameters.
Figure 1:
Object hierarchy of an
VI Starting Document Application
Constants
Document
Test Settings
Shots Collection
Shot
3
OMICRON Test Universe
Reference
Application Object
Properties
Application (read only)
The application object is the root of the OMICRON VI Starting object hierarchy.
It is the only object that can be created directly by other OLE Automation
controllers (e.g. MS Excel using CreateObject).
This object is unique within the OMICRON VI Starting Module. If you want to
create another Application object with CreateObject, a new instance of the
OMICRON VI Starting program is started to handle this object.
You can use this object as a starting point to navigate through the hierarchy tree.
You can get references to the Document Object (Document) and the Predefined
Constant Values (Constants) objects.
Constants (read only)
Syntax: object.Constants
Description: Returns the object with the constant values (Constants) you
can use with several functions.
4
VI Starting Automation Interface
Syntax: object.Document
Syntax: object.Name
Type: String
5
OMICRON Test Universe
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Application Object
(Application).
Visible
Syntax: object.Visible
Type: Boolean
Note: If you use an external OLE Automation controller (e.g. OMICRON Con-
trol Center) and you create the Application Object (Application) (and start the
OMICRON VI Starting application) you have to set the visible property to TRUE
to see the main window of the application.
6
VI Starting Automation Interface
Methods
Quit
Syntax: object.Quit
Return None
type:
7
OMICRON Test Universe
Document Object
With the Document Object (Document) you can control the document.
From this object you can get references to the Shots Collection Object (Shots)
and the Test Settings Object (TestSettings).
Properties
Application (read only)
Syntax: Object.Application
Comment
Syntax: object.Comment
Type: String
Description: This property allows access to the comment string which can
be shown in the report.
8
VI Starting Automation Interface
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Application Object
(Application).
Syntax: object.Shots
9
OMICRON Test Universe
TestSettings
Syntax: object.TestSettings
Type: Object
10
VI Starting Automation Interface
Methods
UpdateAllViews
Syntax: object.UpdateAllViews(hint)
Long hint
Type: None
Description: This method updates the UI and the report. The optional Hint
parameter specifies which view becomes the update. By
calling this method without parameter, all the UI is updated.
11
OMICRON Test Universe
TestSettings Object
Properties
FaultType
Syntax: object.FaultType
Type: Long
Description: The fault type. Possible values are FTL1N, FTL2N … See
Constants object for the complete list.
PhaseAngle
Syntax: object.PhaseAngle
Type: Double
12
VI Starting Automation Interface
ShotDuration
Syntax: object.ShotDuration
Type: Double
Description: Time for which the test quantities are applied to the test object
during one shot.
Pause
Syntax: object.Pause
Type: Double
13
OMICRON Test Universe
Syntax: object.Application
Syntax: object.Count
Type: Long
14
VI Starting Automation Interface
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Document Object
(Document).
Syntax: object.Item(index)
Long index
Description: Returns a Shot Object (Shot) from the Shots Collection. The
parameter is the shot index in the collection.
15
OMICRON Test Universe
Methods
Add
Syntax: object.Add
Description: This method adds a shot to the Shots collection and returns
the created Shot Object (Shot).
Remove
Syntax: object.Remove(index)
Long index
Return none
type:
Description: This method removes the specified shot from the Shots
collection.
RemoveAll
Syntax: object.RemoveAll
Return none
type:
Description: This method removes all the shots from the Shots collection.
16
VI Starting Automation Interface
Shot Object
Properties
StatusString(read only)
Syntax: object.StatusString
Type: String
17
OMICRON Test Universe
Syntax: object.Status
Type: Long
Description: This property returns the shot status. Possible values are:
SSFailed, SSNotTested … See Constants object for the
complete list.
Voltage
Syntax: object.Voltage
Type: Double
18
VI Starting Automation Interface
Current
Syntax: object.Current
Type: Double
Description: Current of the test point as the other of the “fault quantities”.
Syntax: object.PickUp
Type: Double
19
OMICRON Test Universe
Syntax: object.Deviation
Type: Double
Syntax: object.DropOff
Type: Double
20
VI Starting Automation Interface
Syntax: object.ResetRatio
Type: Double
21
OMICRON Test Universe
Constants Object
Properties
The following is a list some useful IDs supported by the OMICRON VI Starting
Module.
Note: Do NOT use these IDs out of the Automation scope.
Fault Types
FTL1N
FTL2N
FTL3N
FTL1L2
FTL2L3
FTL3L1
FTL1L2L3
Shot Status
SSFailed
SSNotTested
SSUntestable
SSPassed
SSOverloadPassed
SSOverloadFailed
22