Source code for RsCmwGprfGen.Implementations.Source.Sequencer.ListPy.Fill.Dgain

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class DgainCls: """Dgain commands group definition. 3 total commands, 0 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("dgain", core, parent)
[docs] def get_svalue(self) -> float: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:SVALue \n Snippet: value: float = driver.source.sequencer.listPy.fill.dgain.get_svalue() \n Configures the start value for filling the sequencer list with digital gain values. \n :return: start_value: numeric Unit: dB """ response = self._core.io.query_str('SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:SVALue?') return Conversions.str_to_float(response)
[docs] def set_svalue(self, start_value: float) -> None: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:SVALue \n Snippet: driver.source.sequencer.listPy.fill.dgain.set_svalue(start_value = 1.0) \n Configures the start value for filling the sequencer list with digital gain values. \n :param start_value: numeric Unit: dB """ param = Conversions.decimal_value_to_str(start_value) self._core.io.write(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:SVALue {param}')
[docs] def get_increment(self) -> float: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:INCRement \n Snippet: value: float = driver.source.sequencer.listPy.fill.dgain.get_increment() \n Configures the increment for filling the sequencer list with digital gain values. \n :return: increment: numeric Range: Depends on the number of entries and on the start value , Unit: dB """ response = self._core.io.query_str('SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:INCRement?') return Conversions.str_to_float(response)
[docs] def set_increment(self, increment: float) -> None: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:INCRement \n Snippet: driver.source.sequencer.listPy.fill.dgain.set_increment(increment = 1.0) \n Configures the increment for filling the sequencer list with digital gain values. \n :param increment: numeric Range: Depends on the number of entries and on the start value , Unit: dB """ param = Conversions.decimal_value_to_str(increment) self._core.io.write(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:INCRement {param}')
[docs] def get_keep(self) -> bool: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:KEEP \n Snippet: value: bool = driver.source.sequencer.listPy.fill.dgain.get_keep() \n Selects whether the digital gain of existing entries is kept or overwritten when the sequencer list is filled. \n :return: keep_flag: OFF | ON OFF: overwrite values ON: keep values """ response = self._core.io.query_str('SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:KEEP?') return Conversions.str_to_bool(response)
[docs] def set_keep(self, keep_flag: bool) -> None: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:KEEP \n Snippet: driver.source.sequencer.listPy.fill.dgain.set_keep(keep_flag = False) \n Selects whether the digital gain of existing entries is kept or overwritten when the sequencer list is filled. \n :param keep_flag: OFF | ON OFF: overwrite values ON: keep values """ param = Conversions.bool_to_str(keep_flag) self._core.io.write(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:FILL:DGAin:KEEP {param}')