Source code for RsFsw.Implementations.Applications.K9x_11ad.System.Communicate.Rdevice.Oscilloscope.Alignment.Step.State

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class StateCls: """State commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("state", core, parent)
[docs] def get(self, step=repcap.Step.Default) -> bool: """SCPI: SYSTem:COMMunicate:RDEVice:OSCilloscope:ALIGnment:STEP<1|2>[:STATe] \n Snippet: value: bool = driver.applications.k9X11Ad.system.communicate.rdevice.oscilloscope.alignment.step.state.get(step = repcap.Step.Default) \n Performs the alignment of the oscilloscope itself and the oscilloscope ADC for the optional 2 GHz / 5 GHz bandwidth extension (FSW-B2000/B5000) . The correction data for the oscilloscope (including the connection cable between the FSW and the oscilloscope) is recorded. As a result, the state of the alignment is returned. Alignment is required only once after setup. If alignment was performed successfully, the alignment data is stored on the oscilloscope. INTRO_CMD_HELP: Thus, alignment need only be repeated if one of the following applies: \n - A new oscilloscope is connected to the 'IF OUT 2 GHz/ IF OUT 5 GHz' connector of the FSW - A new cable is used between the 'IF OUT 2 GHz/ IF OUT 5 GHz' connector of the FSW and the oscilloscope - A power splitter is inserted between the 'IF OUT 2 GHz/ IF OUT 5 GHz' connector of the FSW and the oscilloscope - New firmware is installed on the oscilloscope or the FSW For details see 'Alignment'. \n :param step: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Step') :return: alignment_step: No help available""" step_cmd_val = self._cmd_group.get_repcap_cmd_value(step, repcap.Step) response = self._core.io.query_str(f'SYSTem:COMMunicate:RDEVice:OSCilloscope:ALIGnment:STEP{step_cmd_val}:STATe?') return Conversions.str_to_bool(response)