Source code for RsFsw.Implementations.Trace.Iq.Apcon.A

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


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

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

[docs] def set(self, conv_fact: float) -> None: """ ``TRACe:IQ:APCon:A`` \n Snippet: ``driver.trace.iq.apcon.a.set(conv_fact = 1.0)`` \n Defines the conversion factor A for the calculation of the average power consumption. For details see 'Average power consumption'. :param conv_fact: numeric value """ param = Conversions.decimal_value_to_str(conv_fact) self._core.io.write(f'TRACe:IQ:APCon:A {param}')
[docs] def get(self) -> float: """ ``TRACe:IQ:APCon:A`` \n Snippet: ``value: float = driver.trace.iq.apcon.a.get()`` \n Defines the conversion factor A for the calculation of the average power consumption. For details see 'Average power consumption'. :return: conv_fact: numeric value """ response = self._core.io.query_str(f'TRACe:IQ:APCon:A?') return Conversions.str_to_float(response)