from ...........Internal.Core import Core
from ...........Internal.CommandsGroup import CommandsGroup
from ...........Internal import Conversions
from ........... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class XcorrelationCls:
"""Xcorrelation commands group definition. 2 total commands, 1 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("xcorrelation", core, parent)
@property
def margin(self):
"""margin commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_margin'):
from .Margin import MarginCls
self._margin = MarginCls(self._core, self._cmd_group)
return self._margin
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default, frame=repcap.Frame.Default) -> float:
"""SCPI: FETCh[:CC<cc>][:ISRC][:FRAMe<fr>]:SUMMary:EVM:XCORrelation \n
Snippet: value: float = driver.applications.k14Xnr5G.fetch.cc.isrc.frame.summary.evm.xcorrelation.get(carrierComponent = repcap.CarrierComponent.Default, frame = repcap.Frame.Default) \n
No command help available \n
:param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc')
:param frame: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Frame')
:return: evm: No help available"""
carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent)
frame_cmd_val = self._cmd_group.get_repcap_cmd_value(frame, repcap.Frame)
response = self._core.io.query_str(f'FETCh:CC{carrierComponent_cmd_val}:ISRC:FRAMe{frame_cmd_val}:SUMMary:EVM:XCORrelation?')
return Conversions.str_to_float(response)
def clone(self) -> 'XcorrelationCls':
"""Clones the group by creating new object from it and its whole existing subgroups
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group"""
new_group = XcorrelationCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group