Source code for RsSmab.Implementations.Trace.Power.Sweep.Measurement.Standard.Display.Annotation

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class AnnotationCls: """Annotation commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("annotation", core, parent)
[docs] def get_state(self) -> bool: """SCPI: TRACe:[POWer]:SWEep:MEASurement:STANdard:DISPlay:ANNotation:[STATe] \n Snippet: value: bool = driver.trace.power.sweep.measurement.standard.display.annotation.get_state() \n Selects the standard view, i.e. diagram and buttons but no lists are displayed and also stored in the hardcopy file. \n :return: state: 0| 1| OFF| ON """ response = self._core.io.query_str('TRACe:POWer:SWEep:MEASurement:STANdard:DISPlay:ANNotation:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """SCPI: TRACe:[POWer]:SWEep:MEASurement:STANdard:DISPlay:ANNotation:[STATe] \n Snippet: driver.trace.power.sweep.measurement.standard.display.annotation.set_state(state = False) \n Selects the standard view, i.e. diagram and buttons but no lists are displayed and also stored in the hardcopy file. \n :param state: 0| 1| OFF| ON """ param = Conversions.bool_to_str(state) self._core.io.write(f'TRACe:POWer:SWEep:MEASurement:STANdard:DISPlay:ANNotation:STATe {param}')