from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.StructBase import StructBase
from .....Internal.ArgStruct import ArgStruct
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CountCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("count", core, parent)
[docs]
def set(self, meas_type: enums.PwrReportResultMeasType) -> None:
"""
``POWer:REPort:TEST:COUNt`` \n
Snippet: ``driver.power.report.test.count.set(meas_type = enums.PwrReportResultMeasType.DONR)`` \n
No help available
:param meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC
"""
param = Conversions.enum_scalar_to_str(meas_type, enums.PwrReportResultMeasType)
self._core.io.write(f'POWer:REPort:TEST:COUNt {param}')
# noinspection PyTypeChecker
[docs]
class GetStruct(StructBase):
"""
Response structure. Fields: \n
- 1 Meas_Type: enums.PwrReportResultMeasType: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC
- 2 Count: int: No parameter help available
"""
__meta_args_list = [
ArgStruct.scalar_enum('Meas_Type', enums.PwrReportResultMeasType),
ArgStruct.scalar_int('Count')]
def __init__(self):
StructBase.__init__(self, self)
self.Meas_Type: enums.PwrReportResultMeasType = None
self.Count: int = None
[docs]
def get(self) -> GetStruct:
"""
``POWer:REPort:TEST:COUNt`` \n
Snippet: ``value: GetStruct = driver.power.report.test.count.get()`` \n
No help available
:return: structure: for return value, see the help for GetStruct structure arguments.
"""
return self._core.io.query_struct(f'POWer:REPort:TEST:COUNt?', self.__class__.GetStruct())