from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class BCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("b", core, parent)
[docs]
def set(self, conversion_factor: float) -> None:
"""
``TRACe:IQ:APCon:B`` \n
Snippet: ``driver.applications.iqAnalyzer.trace.iq.apcon.b.set(conversion_factor = 1.0)`` \n
Defines the conversion factor B for the calculation of the average power consumption. For details see 'Average power
consumption'.
:param conversion_factor: numeric value
"""
param = Conversions.decimal_value_to_str(conversion_factor)
self._core.io.write(f'TRACe:IQ:APCon:B {param}')
[docs]
def get(self) -> float:
"""
``TRACe:IQ:APCon:B`` \n
Snippet: ``value: float = driver.applications.iqAnalyzer.trace.iq.apcon.b.get()`` \n
Defines the conversion factor B for the calculation of the average power consumption. For details see 'Average power
consumption'.
"""
response = self._core.io.query_str(f'TRACe:IQ:APCon:B?')
return Conversions.str_to_float(response)