Write/Read
About Attenuation

Attenuator Property


Description

Sets or returns the value of the source attenuator for the specified port number. Sending this command automatically sets AttenuatorMode to Manual.

 VB Syntax

object.Attenuator(portNum) = value

Variable

(Type) - Description

object

Channel (object)

or

CalSet (object) - Read-only property

portNum

(long integer) - Port number of source attenuator to be changed.

value

(double) - Attenuation value.  The range of settable values depends on the VNA model. To determine the valid settings, do one of the following:

If an invalid attenuation setting is entered, the VNA will select the next lower valid value. For example, if 19 is entered, then for an E8361A,  10 dB attenuation will be selected.

Return Type

Double

Default

20 dB

Examples

chan.Attenuator(1) = 20 'Write

attn = chan.Attenuator(cnum) 'Read

C++ Syntax

HRESULT get_Attenuator(long port, double *pVal)
HRESULT put_Attenuator(long port, double newVal)

Interface

IChannel

ICalSet3