Source code for RsCMPX_Gprf.Implementations.Gprf.Measurement.Power

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PowerCls: """Power commands group definition. 71 total commands, 13 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("power", core, parent) @property def state(self): """state commands group. 1 Sub-classes, 1 commands.""" if not hasattr(self, '_state'): from .State import StateCls self._state = StateCls(self._core, self._cmd_group) return self._state @property def current(self): """current commands group. 3 Sub-classes, 3 commands.""" if not hasattr(self, '_current'): from .Current import CurrentCls self._current = CurrentCls(self._core, self._cmd_group) return self._current @property def average(self): """average commands group. 1 Sub-classes, 3 commands.""" if not hasattr(self, '_average'): from .Average import AverageCls self._average = AverageCls(self._core, self._cmd_group) return self._average @property def minimum(self): """minimum commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_minimum'): from .Minimum import MinimumCls self._minimum = MinimumCls(self._core, self._cmd_group) return self._minimum @property def maximum(self): """maximum commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_maximum'): from .Maximum import MaximumCls self._maximum = MaximumCls(self._core, self._cmd_group) return self._maximum @property def standardDev(self): """standardDev commands group. 1 Sub-classes, 3 commands.""" if not hasattr(self, '_standardDev'): from .StandardDev import StandardDevCls self._standardDev = StandardDevCls(self._core, self._cmd_group) return self._standardDev @property def cumulativeDistribFnc(self): """cumulativeDistribFnc commands group. 3 Sub-classes, 1 commands.""" if not hasattr(self, '_cumulativeDistribFnc'): from .CumulativeDistribFnc import CumulativeDistribFncCls self._cumulativeDistribFnc = CumulativeDistribFncCls(self._core, self._cmd_group) return self._cumulativeDistribFnc @property def amplitudeProbDensity(self): """amplitudeProbDensity commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_amplitudeProbDensity'): from .AmplitudeProbDensity import AmplitudeProbDensityCls self._amplitudeProbDensity = AmplitudeProbDensityCls(self._core, self._cmd_group) return self._amplitudeProbDensity @property def elapsedStats(self): """elapsedStats commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_elapsedStats'): from .ElapsedStats import ElapsedStatsCls self._elapsedStats = ElapsedStatsCls(self._core, self._cmd_group) return self._elapsedStats @property def listPy(self): """listPy commands group. 6 Sub-classes, 0 commands.""" if not hasattr(self, '_listPy'): from .ListPy import ListPyCls self._listPy = ListPyCls(self._core, self._cmd_group) return self._listPy @property def peak(self): """peak commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_peak'): from .Peak import PeakCls self._peak = PeakCls(self._core, self._cmd_group) return self._peak @property def iqData(self): """iqData commands group. 1 Sub-classes, 2 commands.""" if not hasattr(self, '_iqData'): from .IqData import IqDataCls self._iqData = IqDataCls(self._core, self._cmd_group) return self._iqData @property def iqInfo(self): """iqInfo commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_iqInfo'): from .IqInfo import IqInfoCls self._iqInfo = IqInfoCls(self._core, self._cmd_group) return self._iqInfo
[docs] def initiate(self, opc_timeout_ms: int = -1) -> None: """SCPI: INITiate:GPRF:MEASurement<Instance>:POWer \n Snippet: driver.gprf.measurement.power.initiate() \n INTRO_CMD_HELP: Starts, stops or aborts the measurement: \n - INITiate... starts or restarts the measurement. The measurement enters the RUN state. - STOP... halts the measurement immediately. The measurement enters the RDY state. Measurement results are kept. The resources remain allocated to the measurement. - ABORt... halts the measurement immediately. The measurement enters the OFF state. All measurement values are set to NAV. Allocated resources are released. Use FETCh...STATe? to query the current measurement state. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'INITiate:GPRF:MEASurement<Instance>:POWer', opc_timeout_ms)
[docs] def stop(self, opc_timeout_ms: int = -1) -> None: """SCPI: STOP:GPRF:MEASurement<Instance>:POWer \n Snippet: driver.gprf.measurement.power.stop() \n INTRO_CMD_HELP: Starts, stops or aborts the measurement: \n - INITiate... starts or restarts the measurement. The measurement enters the RUN state. - STOP... halts the measurement immediately. The measurement enters the RDY state. Measurement results are kept. The resources remain allocated to the measurement. - ABORt... halts the measurement immediately. The measurement enters the OFF state. All measurement values are set to NAV. Allocated resources are released. Use FETCh...STATe? to query the current measurement state. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'STOP:GPRF:MEASurement<Instance>:POWer', opc_timeout_ms)
[docs] def abort(self, opc_timeout_ms: int = -1) -> None: """SCPI: ABORt:GPRF:MEASurement<Instance>:POWer \n Snippet: driver.gprf.measurement.power.abort() \n INTRO_CMD_HELP: Starts, stops or aborts the measurement: \n - INITiate... starts or restarts the measurement. The measurement enters the RUN state. - STOP... halts the measurement immediately. The measurement enters the RDY state. Measurement results are kept. The resources remain allocated to the measurement. - ABORt... halts the measurement immediately. The measurement enters the OFF state. All measurement values are set to NAV. Allocated resources are released. Use FETCh...STATe? to query the current measurement state. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'ABORt:GPRF:MEASurement<Instance>:POWer', opc_timeout_ms)
def clone(self) -> 'PowerCls': """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 = PowerCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group