from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LsendCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("lsend", core, parent)
[docs]
def get(self, meas_type: enums.PwrReportResultMeasType) -> str:
"""
``POWer:REPort:TEST:LSENd`` \n
Snippet: ``value: str = driver.power.report.test.lsend.get(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
:return: result: String parameter
"""
param = Conversions.enum_scalar_to_str(meas_type, enums.PwrReportResultMeasType)
response = self._core.io.query_str(f'POWer:REPort:TEST:LSENd? {param}')
return trim_str_response(response)