Source code for RsCMPX_NrFr1Meas.Implementations.NrSubMeas.MultiEval.Trace.Pmonitor

from typing import List

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.ArgSingleSuppressed import ArgSingleSuppressed
from ......Internal.Types import DataType


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PmonitorCls: """Pmonitor commands group definition. 4 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("pmonitor", core, parent) @property def slots(self): """slots commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_slots'): from .Slots import SlotsCls self._slots = SlotsCls(self._core, self._cmd_group) return self._slots
[docs] def read(self) -> List[float]: """SCPI: READ:NRSub:MEASurement<Instance>:MEValuation:TRACe:PMONitor \n Snippet: value: List[float] = driver.nrSubMeas.multiEval.trace.pmonitor.read() \n No command help available \n Suppressed linked return values: reliability \n :return: power: No help available""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'READ:NRSub:MEASurement<Instance>:MEValuation:TRACe:PMONitor?', suppressed) return response
[docs] def fetch(self) -> List[float]: """SCPI: FETCh:NRSub:MEASurement<Instance>:MEValuation:TRACe:PMONitor \n Snippet: value: List[float] = driver.nrSubMeas.multiEval.trace.pmonitor.fetch() \n No command help available \n Suppressed linked return values: reliability \n :return: power: No help available""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'FETCh:NRSub:MEASurement<Instance>:MEValuation:TRACe:PMONitor?', suppressed) return response
def clone(self) -> 'PmonitorCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = PmonitorCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group