Source code for RsFsw.Implementations.Applications.K30_NoiseFigure.Sense.Configure.Mode.Dut

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DutCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("dut", core, parent)

[docs] def set(self, dut_type: enums.DutType) -> None: """ ``[SENSe]:CONFigure:MODE:DUT`` \n Snippet: ``driver.applications.k30NoiseFigure.sense.configure.mode.dut.set(dut_type = enums.DutType.AMPLifier)`` \n Selects the type of DUT you are testing. Note that you have to use method ``RsFsw.applications.k30NoiseFigure.sense.configure.mode.system.lo.set()`` to select if the LO or IF are fixed. :param dut_type: AMPLifier | DDOWnconv | DOWNconv | SDConverter | UPConv | CONVerter AMPLifier Measurements on fixed frequency DUTs. DOWNconv Measurements on down-converting DUTs. SDConv Measurement on system downconverting DUTs. UPConv Measurements on up-converting DUTs. """ param = Conversions.enum_scalar_to_str(dut_type, enums.DutType) self._core.io.write(f'SENSe:CONFigure:MODE:DUT {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.DutType: """ ``[SENSe]:CONFigure:MODE:DUT`` \n Snippet: ``value: enums.DutType = driver.applications.k30NoiseFigure.sense.configure.mode.dut.get()`` \n Selects the type of DUT you are testing. Note that you have to use method ``RsFsw.applications.k30NoiseFigure.sense.configure.mode.system.lo.set()`` to select if the LO or IF are fixed. :return: dut_type: AMPLifier | DDOWnconv | DOWNconv | SDConverter | UPConv | CONVerter AMPLifier Measurements on fixed frequency DUTs. DOWNconv Measurements on down-converting DUTs. SDConv Measurement on system downconverting DUTs. UPConv Measurements on up-converting DUTs. """ response = self._core.io.query_str(f'SENSe:CONFigure:MODE:DUT?') return Conversions.str_to_scalar_enum(response, enums.DutType)