from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StandardCls:
"""
| Commands in total: 6
| Subgroups: 3
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("standard", core, parent)
@property
def comment(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_comment'):
from .Comment import CommentCls
self._comment = CommentCls(self._core, self._cmd_group)
return self._comment
@property
def preset(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_preset'):
from .Preset import PresetCls
self._preset = PresetCls(self._core, self._cmd_group)
return self._preset
@property
def sync(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_sync'):
from .Sync import SyncCls
self._sync = SyncCls(self._core, self._cmd_group)
return self._sync
[docs]
def save(self, filename: str) -> None:
"""
``[SENSe]:DDEMod:STANdard:SAVE`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.standard.save(filename = 'abc')`` \n
Stores the current settings of the vector signal analysis as a new user-defined digital standard. If the name of the
digital standard is already in use, an error message is output and a new name has to be selected. It is recommended that
you define a comment before storing the standard.
:param filename: The path and file name to which the settings are stored.
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SENSe:DDEMod:STANdard:SAVE {param}')
[docs]
def delete(self, filename: str) -> None:
"""
``[SENSe]:DDEMod:STANdard:DELete`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.standard.delete(filename = 'abc')`` \n
Deletes a specified digital standard file in the vector signal analysis.
:param filename: File name including the path for the digital standard file
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SENSe:DDEMod:STANdard:DELete {param}')
def clone(self) -> 'StandardCls':
"""
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 = StandardCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group