from typing import List
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
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PhaseCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("phase", core, parent)
[docs]
def get(self, start: int=None, count: int=None) -> List[float]:
"""
``[SOURce<HW>]:BB:MCCW:CARRier:LIST:PHASe`` \n
Snippet: ``value: List[float] = driver.source.bb.mccw.carrier.listPy.phase.get(start = 1, count = 1)`` \n
Sets the start phase of the carrier with the aid of a value list.
:param start: integer start carrier index Range: 0 to lastCarrier
:param count: integer number of carriers in the carrier range, starting from the Start carrier Range: 1 to max
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('start', start, DataType.Integer, None, is_optional=True), ArgSingle('count', count, DataType.Integer, None, is_optional=True))
response = self._core.io.query_bin_or_ascii_float_list(f'SOURce<HwInstance>:BB:MCCW:CARRier:LIST:PHASe? {param}'.rstrip())
return response