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. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("select", core, parent)
[docs] def set(self, select: str) -> None:
"""SCPI: [SENSe]:CORRection:CVL:SELect \n
Snippet: driver.applications.k6Pulse.sense.correction.cvl.select.set(select = 'abc') \n
Selects the conversion loss table with the specified file name. If <file_name> is not available, a new conversion loss
table is created. Is only available with option B21 (External Mixer) installed. \n
:param select: String containing the path and name of the file.
"""
param = Conversions.value_to_quoted_str(select)
self._core.io.write(f'SENSe:CORRection:CVL:SELect {param}')
[docs] def get(self) -> str:
"""SCPI: [SENSe]:CORRection:CVL:SELect \n
Snippet: value: str = driver.applications.k6Pulse.sense.correction.cvl.select.get() \n
Selects the conversion loss table with the specified file name. If <file_name> is not available, a new conversion loss
table is created. Is only available with option B21 (External Mixer) installed. \n
:return: select: No help available"""
response = self._core.io.query_str(f'SENSe:CORRection:CVL:SELect?')
return trim_str_response(response)