from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class ShapingCls:
"""Shaping commands group definition. 23 total commands, 6 Subgroups, 3 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("shaping", core, parent)
@property
def clipping(self):
"""clipping commands group. 0 Sub-classes, 2 commands."""
if not hasattr(self, '_clipping'):
from .Clipping import ClippingCls
self._clipping = ClippingCls(self._core, self._cmd_group)
return self._clipping
@property
def coefficients(self):
"""coefficients commands group. 0 Sub-classes, 4 commands."""
if not hasattr(self, '_coefficients'):
from .Coefficients import CoefficientsCls
self._coefficients = CoefficientsCls(self._core, self._cmd_group)
return self._coefficients
@property
def detroughing(self):
"""detroughing commands group. 0 Sub-classes, 4 commands."""
if not hasattr(self, '_detroughing'):
from .Detroughing import DetroughingCls
self._detroughing = DetroughingCls(self._core, self._cmd_group)
return self._detroughing
@property
def file(self):
"""file commands group. 0 Sub-classes, 4 commands."""
if not hasattr(self, '_file'):
from .File import FileCls
self._file = FileCls(self._core, self._cmd_group)
return self._file
@property
def gain(self):
"""gain commands group. 0 Sub-classes, 2 commands."""
if not hasattr(self, '_gain'):
from .Gain import GainCls
self._gain = GainCls(self._core, self._cmd_group)
return self._gain
@property
def pv(self):
"""pv commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_pv'):
from .Pv import PvCls
self._pv = PvCls(self._core, self._cmd_group)
return self._pv
# noinspection PyTypeChecker
[docs]
def get_interp(self) -> enums.IqOutEnvInterp:
"""SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:INTerp \n
Snippet: value: enums.IqOutEnvInterp = driver.source.iq.output.analog.envelope.shaping.get_interp() \n
No command help available \n
:return: ipart_interpolation: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:INTerp?')
return Conversions.str_to_scalar_enum(response, enums.IqOutEnvInterp)
[docs]
def set_interp(self, ipart_interpolation: enums.IqOutEnvInterp) -> None:
"""SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:INTerp \n
Snippet: driver.source.iq.output.analog.envelope.shaping.set_interp(ipart_interpolation = enums.IqOutEnvInterp.LINear) \n
No command help available \n
:param ipart_interpolation: No help available
"""
param = Conversions.enum_scalar_to_str(ipart_interpolation, enums.IqOutEnvInterp)
self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:INTerp {param}')
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.IqOutEnvShapeMode:
"""SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:MODE \n
Snippet: value: enums.IqOutEnvShapeMode = driver.source.iq.output.analog.envelope.shaping.get_mode() \n
No command help available \n
:return: shaping_mode: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:MODE?')
return Conversions.str_to_scalar_enum(response, enums.IqOutEnvShapeMode)
[docs]
def set_mode(self, shaping_mode: enums.IqOutEnvShapeMode) -> None:
"""SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:MODE \n
Snippet: driver.source.iq.output.analog.envelope.shaping.set_mode(shaping_mode = enums.IqOutEnvShapeMode.DETRoughing) \n
No command help available \n
:param shaping_mode: No help available
"""
param = Conversions.enum_scalar_to_str(shaping_mode, enums.IqOutEnvShapeMode)
self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:MODE {param}')
# noinspection PyTypeChecker
[docs]
def get_scale(self) -> enums.IqOutEnvScale:
"""SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:SCALe \n
Snippet: value: enums.IqOutEnvScale = driver.source.iq.output.analog.envelope.shaping.get_scale() \n
No command help available \n
:return: scale: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:SCALe?')
return Conversions.str_to_scalar_enum(response, enums.IqOutEnvScale)
[docs]
def set_scale(self, scale: enums.IqOutEnvScale) -> None:
"""SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:SCALe \n
Snippet: driver.source.iq.output.analog.envelope.shaping.set_scale(scale = enums.IqOutEnvScale.POWer) \n
No command help available \n
:param scale: No help available
"""
param = Conversions.enum_scalar_to_str(scale, enums.IqOutEnvScale)
self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:SCALe {param}')
def clone(self) -> 'ShapingCls':
"""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 = ShapingCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group