from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SemCls:
"""Sem commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sem", core, parent)
[docs] def set(self, state: float or bool) -> None:
"""SCPI: CONFigure[:NR5G]:SEM \n
Snippet: driver.applications.k14Xnr5G.configure.nr5G.sem.set(state = 1.0) \n
Includes or excludes SEM measurements from combined measurements. \n
:param state: (float or boolean) ON | OFF | 1 | 0
"""
param = Conversions.decimal_or_bool_value_to_str(state)
self._core.io.write(f'CONFigure:NR5G:SEM {param}')
[docs] def get(self) -> float or bool:
"""SCPI: CONFigure[:NR5G]:SEM \n
Snippet: value: float or bool = driver.applications.k14Xnr5G.configure.nr5G.sem.get() \n
Includes or excludes SEM measurements from combined measurements. \n
:return: state: (float or boolean) ON | OFF | 1 | 0"""
response = self._core.io.query_str(f'CONFigure:NR5G:SEM?')
return Conversions.str_to_float_or_bool(response)