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 PowerCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("power", core, parent)
[docs]
def get(self, start: int, count: int) -> List[float]:
"""
``[SOURce<HW>]:BB:MCCW:CARRier:LIST:POWer`` \n
Snippet: ``value: List[float] = driver.source.bb.mccw.carrier.listPy.power.get(start = 1, count = 1)`` \n
Sets the power 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 lastCarrier
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('start', start, DataType.Integer), ArgSingle('count', count, DataType.Integer))
response = self._core.io.query_bin_or_ascii_float_list(f'SOURce<HwInstance>:BB:MCCW:CARRier:LIST:POWer? {param}'.rstrip())
return response