from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class InstrumentCls:
"""Instrument commands group definition. 4 total commands, 2 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("instrument", core, parent)
@property
def consistency(self):
"""consistency commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_consistency'):
from .Consistency import ConsistencyCls
self._consistency = ConsistencyCls(self._core, self._cmd_group)
return self._consistency
@property
def application(self):
"""application commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_application'):
from .Application import ApplicationCls
self._application = ApplicationCls(self._core, self._cmd_group)
return self._application
[docs]
def load(self, appl_name_and_li_number: str) -> None:
"""SCPI: DIAGnostic:INSTrument:LOAD \n
Snippet: driver.diagnostic.instrument.load(appl_name_and_li_number = 'abc') \n
No command help available \n
:param appl_name_and_li_number: No help available
"""
param = Conversions.value_to_quoted_str(appl_name_and_li_number)
self._core.io.write(f'DIAGnostic:INSTrument:LOAD {param}')
[docs]
def set_unload(self, appl_name_and_li_number: str) -> None:
"""SCPI: DIAGnostic:INSTrument:UNLoad \n
Snippet: driver.diagnostic.instrument.set_unload(appl_name_and_li_number = 'abc') \n
No command help available \n
:param appl_name_and_li_number: No help available
"""
param = Conversions.value_to_quoted_str(appl_name_and_li_number)
self._core.io.write(f'DIAGnostic:INSTrument:UNLoad {param}')
def clone(self) -> 'InstrumentCls':
"""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 = InstrumentCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group