Source code for RsFsw.Implementations.Applications.K50_Spurious.Sense.Mixer.LoPower

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class LoPowerCls: """LoPower commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("loPower", core, parent)
[docs] def set(self, low_power: float) -> None: """SCPI: [SENSe]:MIXer:LOPower \n Snippet: driver.applications.k50Spurious.sense.mixer.loPower.set(low_power = 1.0) \n Specifies the LO level of the external mixer's LO port. \n :param low_power: No help available """ param = Conversions.decimal_value_to_str(low_power) self._core.io.write(f'SENSe:MIXer:LOPower {param}')
[docs] def get(self) -> float: """SCPI: [SENSe]:MIXer:LOPower \n Snippet: value: float = driver.applications.k50Spurious.sense.mixer.loPower.get() \n Specifies the LO level of the external mixer's LO port. \n :return: low_power: No help available""" response = self._core.io.query_str(f'SENSe:MIXer:LOPower?') return Conversions.str_to_float(response)