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:RESult:INPut:TOTal:POWer:WFMCount`` \n
Snippet: ``value: int = driver.p3Phase.efficiency.result.inputPy.total.power.wfmCount.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n
Returns the number of calculated waveforms for the total input and output power and total efficiency if statistics are
enabled.
:param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase')
:return: waveforms_count: 0 to 4000000000
"""
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:RESult:INPut:TOTal:POWer:WFMCount?')
return Conversions.str_to_int(response)