from typing import List
from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TrialCls:
"""Trial commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("trial", core, parent)
[docs] def get_list_py(self) -> List[str]:
"""SCPI: SYSTem:OPTion:TRIal:LIST \n
Snippet: value: List[str] = driver.system.option.trial.get_list_py() \n
No command help available \n
:return: trial_opt_list: No help available
"""
response = self._core.io.query_str('SYSTem:OPTion:TRIal:LIST?')
return Conversions.str_to_str_list(response)
[docs] def get_state(self) -> bool:
"""SCPI: SYSTem:OPTion:TRIal:[STATe] \n
Snippet: value: bool = driver.system.option.trial.get_state() \n
No command help available \n
:return: trial_opt_state: No help available
"""
response = self._core.io.query_str('SYSTem:OPTion:TRIal:STATe?')
return Conversions.str_to_bool(response)
[docs] def set_state(self, trial_opt_state: bool) -> None:
"""SCPI: SYSTem:OPTion:TRIal:[STATe] \n
Snippet: driver.system.option.trial.set_state(trial_opt_state = False) \n
No command help available \n
:param trial_opt_state: No help available
"""
param = Conversions.bool_to_str(trial_opt_state)
self._core.io.write(f'SYSTem:OPTion:TRIal:STATe {param}')