Technical data
True, True,"QueryInstrStatus=true")
End Sub
Private Sub Form_Unload(Cancel As Integer)
myBERT.Close
End Sub
Working with the IVI-COM Objects
Working with the IVI-COM Objects - Concepts
The Serial BERT IVI-COM driver uses a hierarchical class structure that follows the
build up of the instrument. For example, the instrument itself is represented by the
class AgilentN490x. The pattern generator is represented by the class
IAgilentN490xPG.
To access the instrument's pattern generator, you have to first access the object,
then the object's pattern generator collection, and finally the actual pattern
generator.
The items in the collections are accessed by the name. The easiest way to get the
name (if you do not know it) is through the collection's Name property.
Working with the IVI-COM Objects - Procedures
The following example shows you how to set up different objects for controlling
the Serial BERT. These objects are used in the following examples.
Private Sub InitializeObjects()
' TIP: Call this sub from the Form_Load sub.
Dim EDName as String
With myBERT
' Get the pattern generator using the naming conventions
Set myPG = .PGs.Item("PG1")
' Use the myPG object to get sub-items
Set myPGClock = myPG.Clock
Set myPGOut = myPG.Outputs.Item("PGOutput1")
' Get the error detector by catching and using its name:
EDName =.EDs.Name(1)
A Typical SerialBERT Program 2
Agilent J-BERT N4903B High-Performance Serial BERT 15