ExternalDevices collection provides access to an ExternalDevice object.
The ExternalDevices collection is a property of the main Application Object. You can obtain a handle to an External Device by specifying an item in the collection.
dim app Set app = CreateObject("AgilentPNA835x.Application") dim externalDevices Set externalDevices = app.ExternalDevices dim devicecount devicecount = externalDevices.count externalDevices.Add "NewPMAR" dim newExternalDevice Set newExternalDevice = externalDevices.Item("NewPMAR") newExternalDevice.DeviceType = "Power Meter" newExternalDevice.IOConfiguration= "GPIB0::14::INSTR" newExternalDevice.IOEnable = true
|
Example: Create a PMAR Device and Measurement
Methods |
Interface |
Description |
---|---|---|
IExternalDevices |
Adds an external device to the system. |
|
IExternalDevices |
Use to get a handle to an external device in the collection. |
|
IExternalDevices |
Removes an external device from the system |
|
Properties |
|
Description |
IExternalDevices |
Returns the number of devices in the ExternalDevices collection. |
|
IExternalDevices2 |
Returns the device names in the collection |
|
IExternalDevices |
Returns a value indicating whether the specified external devices is configured. |
|
IExternalDevices2 |
Returns whether the named device is present on the bus for which it is configured. |
|
IExternalDevices |
Returns an array of configured devices in the system. |
|
IExternalDevices |
Returns a handle to the current application object. |
Interface |
Introduced with PNA Rev: |
IExternalDevices |
9.0 |
IExternalDevices2 |
9.50 |