Source code for rsmxo.Implementations.Power.Soa.Result.Count.Fwaveforms

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


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

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

[docs] def get(self, power=repcap.Power.Default, result=repcap.Result.Default) -> int: """ ``POWer<*>:SOA:RESult<*>:COUNt:FWAVeforms`` \n Snippet: ``value: int = driver.power.soa.result.count.fwaveforms.get(power = repcap.Power.Default, result = repcap.Result.Default)`` \n Returns the number of acquisitions that have failed the mask test, they hit the mask limits. :param power: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Power') :param result: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Result') :return: acqs_failed: 0 to 10000000000000 """ power_cmd_val = self._cmd_group.get_repcap_cmd_value(power, repcap.Power) result_cmd_val = self._cmd_group.get_repcap_cmd_value(result, repcap.Result) response = self._core.io.query_str(f'POWer{power_cmd_val}:SOA:RESult{result_cmd_val}:COUNt:FWAVeforms?') return Conversions.str_to_int(response)