Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Sense.Pservoing.Target.Value

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ValueCls: """Value commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("value", core, parent)
[docs] def set(self, target_value: float) -> None: """SCPI: [SENSe]:PSERvoing:TARGet:VALue \n Snippet: driver.applications.k18AmplifierEt.sense.pservoing.target.value.set(target_value = 1.0) \n Sets and queries the power servoing target value. The unit depends on the selected target parameter. \n :param target_value: numeric value """ param = Conversions.decimal_value_to_str(target_value) self._core.io.write(f'SENSe:PSERvoing:TARGet:VALue {param}')
[docs] def get(self) -> float: """SCPI: [SENSe]:PSERvoing:TARGet:VALue \n Snippet: value: float = driver.applications.k18AmplifierEt.sense.pservoing.target.value.get() \n Sets and queries the power servoing target value. The unit depends on the selected target parameter. \n :return: target_value: numeric value""" response = self._core.io.query_str(f'SENSe:PSERvoing:TARGet:VALue?') return Conversions.str_to_float(response)