Source code for rsmxo.Implementations.P3Phase.Efficiency.Statistic.WfmCount

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class WfmCountCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("wfmCount", core, parent)

[docs] def get(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> int: """ ``P3PHase<*>:EFFiciency:STATistic:WFMCount`` \n Snippet: ``value: int = driver.p3Phase.efficiency.statistic.wfmCount.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Returns the number of waveforms included in the 3-phase efficiency measurement. :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') """ power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) response = self._core.io.query_str(f'P3PHase{power3PhaseMeas_cmd_val}:EFFiciency:STATistic:WFMCount?') return Conversions.str_to_int(response)