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
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class InsertCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("insert", core, parent)
[docs]
def set(self, meas_type: enums.PwrReportResultMeasType, index: int) -> None:
"""
``POWer:REPort:TEST:INSert`` \n
Snippet: ``driver.power.report.test.insert.set(meas_type = enums.PwrReportResultMeasType.DONR, index = 1)`` \n
Manage reports.
:param meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n
- QUAL: Power Quality
- RUSH: Inrush Current
- HARM: Current Harmonic
- MODU: Modulation Analysis
- DONR: Dynamic ON Resistance
- SLEW: Slew Rate
- SOA: Safe Operating Area (S.O.A.)
- TURN: Turn On/Off
- SWIT: Switching Loss
- EFF: Power Efficiency
- RIPP: Ripple
- TRANS: Transient Response
- SPEC: Spectrum
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('meas_type', meas_type, DataType.Enum, enums.PwrReportResultMeasType), ArgSingle('index', index, DataType.Integer))
self._core.io.write(f'POWer:REPort:TEST:INSert {param}'.rstrip())