Source code for RsPulseSeq.Implementations.Destination.Plugin.Variable.Select

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SelectCls: """Select commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("select", core, parent)
[docs] def get_id(self) -> float: """SCPI: DESTination:PLUGin:VARiable:SELect:ID \n Snippet: value: float = driver.destination.plugin.variable.select.get_id() \n Selects a plugin variable ID. \n :return: idn: float """ response = self._core.io.query_str('DESTination:PLUGin:VARiable:SELect:ID?') return Conversions.str_to_float(response)
[docs] def set_id(self, idn: float) -> None: """SCPI: DESTination:PLUGin:VARiable:SELect:ID \n Snippet: driver.destination.plugin.variable.select.set_id(idn = 1.0) \n Selects a plugin variable ID. \n :param idn: float """ param = Conversions.decimal_value_to_str(idn) self._core.io.write(f'DESTination:PLUGin:VARiable:SELect:ID {param}')
[docs] def get_value(self) -> str: """SCPI: DESTination:PLUGin:VARiable:SELect \n Snippet: value: str = driver.destination.plugin.variable.select.get_value() \n Selects a plugin variable. \n :return: select: string """ response = self._core.io.query_str('DESTination:PLUGin:VARiable:SELect?') return trim_str_response(response)
[docs] def set_value(self, select: str) -> None: """SCPI: DESTination:PLUGin:VARiable:SELect \n Snippet: driver.destination.plugin.variable.select.set_value(select = 'abc') \n Selects a plugin variable. \n :param select: string """ param = Conversions.value_to_quoted_str(select) self._core.io.write(f'DESTination:PLUGin:VARiable:SELect {param}')