from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle
from .... import enums
from .... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AddCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("add", core, parent)
[docs]
def set(self, index: int, type_py: enums.DeembeddingType=None, lane=repcap.Lane.Default) -> None:
"""
``LANE<*>:EMBedding:ADD`` \n
Snippet: ``driver.lane.embedding.add.set(index = 1, type_py = enums.DeembeddingType.ADAPter, lane = repcap.Lane.Default)`` \n
Adds a component to the measurement setup.
:param index: Defines the place of the component in the measurement path.
:param type_py: FIXTure | CABLe | DUT | ADAPter | PC | OTHer
:param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane')
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('index', index, DataType.Integer), ArgSingle('type_py', type_py, DataType.Enum, enums.DeembeddingType, is_optional=True))
lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane)
self._core.io.write(f'LANE{lane_cmd_val}:EMBedding:ADD {param}'.rstrip())