from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CmpDelayCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("cmpDelay", core, parent)
[docs]
def set(self, dly_compens: bool, deembedding=repcap.Deembedding.Default) -> None:
"""
``DEEMbedding<*>:CMPDelay`` \n
Snippet: ``driver.deembedding.cmpDelay.set(dly_compens = False, deembedding = repcap.Deembedding.Default)`` \n
Enables the compensation for the group delay of the complete measurement setup. If enabled, the calibration time
reference point is the start point of the measurement setup. If disabled, the calibration time reference point is the
oscilloscope's channel input.
:param dly_compens: OFF | ON
:param deembedding: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Deembedding')
"""
param = Conversions.bool_to_str(dly_compens)
deembedding_cmd_val = self._cmd_group.get_repcap_cmd_value(deembedding, repcap.Deembedding)
self._core.io.write_with_opc(f'DEEMbedding{deembedding_cmd_val}:CMPDelay {param}')
[docs]
def get(self, deembedding=repcap.Deembedding.Default) -> bool:
"""
``DEEMbedding<*>:CMPDelay`` \n
Snippet: ``value: bool = driver.deembedding.cmpDelay.get(deembedding = repcap.Deembedding.Default)`` \n
Enables the compensation for the group delay of the complete measurement setup. If enabled, the calibration time
reference point is the start point of the measurement setup. If disabled, the calibration time reference point is the
oscilloscope's channel input.
:param deembedding: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Deembedding')
"""
deembedding_cmd_val = self._cmd_group.get_repcap_cmd_value(deembedding, repcap.Deembedding)
response = self._core.io.query_str_with_opc(f'DEEMbedding{deembedding_cmd_val}:CMPDelay?')
return Conversions.str_to_bool(response)