ExternalDevices Collection


Description

ExternalDevices collection provides access to an ExternalDevice object.

Accessing the ExternalDevices collection

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

 

See Also:

Example: Create a PMAR Device and Measurement

Configure an External Device

ExternalDevice Object

The PNA Object Model

 

Methods

Interface

See History

Description

Add

IExternalDevices

Adds an external device to the system.

Item

IExternalDevices

Use to get a handle to an external device in the collection.

Remove

IExternalDevices

Removes an external device from the system

Properties

 

Description

Count

IExternalDevices

Returns the number of devices in the ExternalDevices collection.

DeviceNames

IExternalDevices2

Returns the device names in the collection

HasItem

IExternalDevices

Returns a value indicating whether the specified external devices is configured.

IsDevicePresent

IExternalDevices2

Returns whether the named device is present on the bus for which it is configured.

Items

IExternalDevices

Returns an array of configured devices in the system.

Parent

IExternalDevices

Returns a handle to the current application object.

IExternalDevices History

Interface

Introduced with PNA Rev:

IExternalDevices

9.0

IExternalDevices2

9.50