Source code for RsCma.Implementations.Configure.GprfMeasurement.FftSpecAn.Marker.Placement

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class PlacementCls: """Placement commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("placement", core, parent)
[docs] def set(self, placement: enums.MarkerPlacement, markerOther=repcap.MarkerOther.Default) -> None: """SCPI: CONFigure:GPRF:MEASurement<Instance>:FFTSanalyzer:MARKer<nr>:PLACement \n Snippet: driver.configure.gprfMeasurement.fftSpecAn.marker.placement.set(placement = enums.MarkerPlacement.ABSolute, markerOther = repcap.MarkerOther.Default) \n Selects between absolute coordinates and delta coordinates relative to the reference marker, for marker number <no>. \n :param placement: ABSolute | RELative :param markerOther: optional repeated capability selector. Default value: Nr2 (settable in the interface 'Marker') """ param = Conversions.enum_scalar_to_str(placement, enums.MarkerPlacement) markerOther_cmd_val = self._cmd_group.get_repcap_cmd_value(markerOther, repcap.MarkerOther) self._core.io.write(f'CONFigure:GPRF:MEASurement<Instance>:FFTSanalyzer:MARKer{markerOther_cmd_val}:PLACement {param}')
# noinspection PyTypeChecker
[docs] def get(self, markerOther=repcap.MarkerOther.Default) -> enums.MarkerPlacement: """SCPI: CONFigure:GPRF:MEASurement<Instance>:FFTSanalyzer:MARKer<nr>:PLACement \n Snippet: value: enums.MarkerPlacement = driver.configure.gprfMeasurement.fftSpecAn.marker.placement.get(markerOther = repcap.MarkerOther.Default) \n Selects between absolute coordinates and delta coordinates relative to the reference marker, for marker number <no>. \n :param markerOther: optional repeated capability selector. Default value: Nr2 (settable in the interface 'Marker') :return: placement: ABSolute | RELative""" markerOther_cmd_val = self._cmd_group.get_repcap_cmd_value(markerOther, repcap.MarkerOther) response = self._core.io.query_str(f'CONFigure:GPRF:MEASurement<Instance>:FFTSanalyzer:MARKer{markerOther_cmd_val}:PLACement?') return Conversions.str_to_scalar_enum(response, enums.MarkerPlacement)