ExternalDevice Object


Description

ExternalDevice objects allow you to set properties and methods for each external device.

Accessing the ExternalDevice Object

Obtain a handle to an External Device by specifying an item in the External Devices collection.

Although the following example shows how to create a PMAR external device, you can substitute any supported external device for "PMAR" and DeviceType: "Power Meter".

Supported External Device Objects

ExternalSource Object

ExternalDCDevice Object

PowerSensorAsReceiver Object

ExternalPulseGenerator Object

 

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:

The VNA Object Model

Learn how to Configure an External Device

 

Methods

Interface

See History

Description

LoadFile

IExternalDevice2

Recalls an external device configuration file from the VNA hard drive.

Currently, only DC Meter and DC Supply devices are supported.

SaveFile

IExternalDevice2

Saves an external device configuration file to the VNA hard drive.

Currently, only DC Meter and DC Supply devices are supported.

Properties

 

Description

Active

IExternalDevice

Sets and returns the state of activation for an external device.

DeviceType

IExternalDevice

Sets and returns the DeviceType (source, power meter) for the external device.

Driver

IExternalDevice

Sets and returns the external device driver (model).

ExtendedProperties

IExternalDevice

Provides access to properties that are unique to the external device type.

IOConfiguration

IExternalDevice

Sets and returns the method of communication and address for the external device.

IOEnable

IExternalDevice

Sets and returns whether an external device is available for IO communication with the VNA.

Name

IExternalDevice

Sets and returns the name of the External Device.

TimeOut

IExternalDevice

Sets and returns the time out value for communication with the external device.

ExternalDevice History

Interface

Introduced with VNA Rev:

IExternalDevice

9.0

IExternalDevice2

9.50