Home | History | Annotate | Download | only in controllers

Lines Matching refs:Attenuator

20 VTS_CONTROLLER_CONFIG_NAME = "Attenuator"
41 attn = Attenuator(attn_inst, idx=i)
46 logger.error("No path specified for attenuator %d." % i)
65 r"""This is the Exception class defined for all errors generated by Attenuator-related modules.
74 When this exception is seen, closing an re-opening the link to the attenuator instrument is
89 r"""This is a base class that defines the primitive behavior of all attenuator
93 accessing any step attenuator instrument comprised of one or more attenuators and a
102 r"""This is the Constructor for Attenuator Instrument.
130 r"""This function sets the attenuation of an attenuator given its index in the instrument.
134 idx : This zero-based index is the identifier for a particular attenuator in an
146 r"""This function returns the current attenuation from an attenuator at a given index in
151 idx : This zero-based index is the identifier for a particular attenuator in an instrument.
166 class Attenuator():
167 r"""This class defines an object representing a single attenuator in a remote instrument.
175 r"""This is the constructor for Attenuator
179 instrument : Reference to an AttenuatorInstrument on which the Attenuator resides
180 idx : This zero-based index is the identifier for a particular attenuator in an instrument.
181 offset : A power offset value for the attenuator to be used when performing future
190 The index of the attenuator in the AttenuatorInstrument must be within the valid range.
195 Returns a newly constructed Attenuator
198 raise TypeError("Must provide an Attenuator Instrument Ref")
206 "Attenuator index out of range for attenuator instrument")
209 r"""This function sets the attenuation of Attenuator.
223 "Attenuator Value+Offset greater than Max Attenuation!")
228 r"""This function returns the current attenuation setting of Attenuator, normalized by
240 r"""This function returns the max attenuation setting of Attenuator, normalized by
250 raise ValueError("Invalid Max Attenuator Value")
258 Attenuator groups are intended to further facilitate abstraction of testing functions from
285 r"""This function provides a way to create groups directly from the Attenuator Instrument.
287 This function will create Attenuator objects for all of the indices passed in and add
302 raise TypeError("Must provide an Attenuator Instrument Ref")
306 self.attens.append(Attenuator(instrument, i))
308 self.attens.append(Attenuator(instrument, indices))
310 def add(self, attenuator):
311 r"""This function adds an already constructed Attenuator object to the AttenuatorGroup.
315 attenuator : An Attenuator object.
320 Requires a valid Attenuator to be passed in.
323 if not isinstance(attenuator, Attenuator):
324 raise TypeError("Must provide an Attenuator")
326 self.attens.append(attenuator)
379 individual attenuator offsets.