Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Normalize.Value

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


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

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

[docs] def set(self, state: bool) -> None: """ ``[SENSe]:DDEMod:NORMalize[:VALue]`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.normalize.value.set(state = False)`` \n This command switches the compensation of the IQ offset and the compensation of amplitude droop on or off. Note that this command is maintained for compatibility reasons only. Use the more specific method ``RsFsw.applications.k70Vsa.sense.ddemod.normalize.value.set()`` commands for new remote control programs (see 'Demodulation settings') . :param state: OFF | 0 No compensation for amplitude droop nor I/Q offset ON | 1 Compensation for amplitude droop and I/Q offset enabled """ param = Conversions.bool_to_str(state) self._core.io.write(f'SENSe:DDEMod:NORMalize:VALue {param}')
[docs] def get(self) -> bool: """ ``[SENSe]:DDEMod:NORMalize[:VALue]`` \n Snippet: ``value: bool = driver.applications.k70Vsa.sense.ddemod.normalize.value.get()`` \n This command switches the compensation of the IQ offset and the compensation of amplitude droop on or off. Note that this command is maintained for compatibility reasons only. Use the more specific method ``RsFsw.applications.k70Vsa.sense.ddemod.normalize.value.set()`` commands for new remote control programs (see 'Demodulation settings') . :return: state: OFF | 0 No compensation for amplitude droop nor I/Q offset ON | 1 Compensation for amplitude droop and I/Q offset enabled """ response = self._core.io.query_str(f'SENSe:DDEMod:NORMalize:VALue?') return Conversions.str_to_bool(response)