Source code for RsSmw.Implementations.Source.Cemulation.Phase

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PhaseCls: """Phase commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("phase", core, parent) # noinspection PyTypeChecker
[docs] def get_unit(self) -> enums.UnitAngle: """SCPI: [SOURce<HW>]:CEMulation:PHASe:UNIT \n Snippet: value: enums.UnitAngle = driver.source.cemulation.phase.get_unit() \n No command help available \n :return: fad_angle_unit: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:PHASe:UNIT?') return Conversions.str_to_scalar_enum(response, enums.UnitAngle)
[docs] def set_unit(self, fad_angle_unit: enums.UnitAngle) -> None: """SCPI: [SOURce<HW>]:CEMulation:PHASe:UNIT \n Snippet: driver.source.cemulation.phase.set_unit(fad_angle_unit = enums.UnitAngle.DEGree) \n No command help available \n :param fad_angle_unit: No help available """ param = Conversions.enum_scalar_to_str(fad_angle_unit, enums.UnitAngle) self._core.io.write(f'SOURce<HwInstance>:CEMulation:PHASe:UNIT {param}')