Specifications

Chapter 18 531
COM Interface Reference
Application object
18. COM Interface Reference
Connection property
Explanation Reads whether a personal computer is connected to the E4991A by using the E4991A
remote user interface function. When this COM object is executed by the installed E4991A
VBA, it will always read 1. (Read only)
VB syntax Application.Connection
or
Connection
Response Value of long integer type (1 or 0) is sent back.
Examples The following is a program example of checking whether the E4991A is accessible from a
personal computer.
Example 18-3 Example of using Connection property
Dim Connection As Long
Connection = Application.Connection
If Connection = 1 Then
MsgBox "Remote U/I function is available."
ElseIf Connection = 0 Then
MsgBox "Remote U/I function is not available."
End If
1 Connected to the E4991A
0 Not connected to the E4991A