from typing import List
from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ScCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sc", core, parent)
[docs]
def get(self, sc_detailed_object: enums.ScDetailedObject) -> List[float]:
"""
``FETCh:SCDetailed:POWer[:SC]`` \n
Snippet: ``value: List[float] = driver.applications.k91Wlan.fetch.scDetailed.power.sc.get(sc_detailed_object = enums.ScDetailedObject.DPILot)`` \n
Returns the power per subcarrier in all PPDUs and all RUs. The result is a comma-separated list of power values, one per
subcarrier. These results are only available if the Signal Content Detailed result display is currently active (see
method ``RsFsw.layout.add.window.get()`` ) . Tip: to obtain the results for an individual resource unit, use method
``RsFsw.applications.k91Wlan.fetch.scDetailed.power.ru.get()`` .
:param sc_detailed_object: HELTf | EHTLtf | DPILot | LLTF HELTf Includes long training field (HE-LTF) subcarriers only DPILot Includes data and pilot subcarriers only LLTF Includes legacy long training field (L-LTF) subcarriers only EHTLtf Includes extremely long training field (EHT-LTF) subcarriers only Unit: dBm
"""
param = Conversions.enum_scalar_to_str(sc_detailed_object, enums.ScDetailedObject)
response = self._core.io.query_bin_or_ascii_float_list(f'FETCh:SCDetailed:POWer:SC? {param}')
return response