Source code for RsCMPX_Base.Implementations.Add.System.Attenuation.CorrectionTable.Globale

from typing import List

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class GlobaleCls: """Globale commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("globale", core, parent)
[docs] def set(self, name: str, frequency: List[float] = None, attenuation: List[float] = None) -> None: """SCPI: ADD:SYSTem:ATTenuation:CTABle:GLOBal \n Snippet: driver.add.system.attenuation.correctionTable.globale.set(name = 'abc', frequency = [1.1, 2.2, 3.3], attenuation = [1.1, 2.2, 3.3]) \n Adds entries to an existing global correction table. Specify at least one parameter pair <Frequency>, <Attenuation>. \n :param name: Name of the existing correction table. :param frequency: No help available :param attenuation: No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('name', name, DataType.String), ArgSingle('frequency', frequency, DataType.FloatList, None, True, True, 1), ArgSingle('attenuation', attenuation, DataType.FloatList, None, True, True, 1)) self._core.io.write(f'ADD:SYSTem:ATTenuation:CTABle:GLOBal {param}'.rstrip())