from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class BiasCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("bias", core, parent)
[docs]
def set(self, bias: float) -> None:
"""
``[SENSe]:CORRection:CVL:BIAS`` \n
Snippet: ``driver.sense.correction.cvl.bias.set(bias = 1.0)`` \n
Defines the bias setting to be used with the conversion loss table. Before this command can be performed, the conversion
loss table must be selected (see method ``RsFsw.applications.k50Spurious.sense.correction.cvl.select.set()`` . Is only
available with option B21 (External Mixer) installed.
:param bias: Unit: A
"""
param = Conversions.decimal_value_to_str(bias)
self._core.io.write(f'SENSe:CORRection:CVL:BIAS {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:CORRection:CVL:BIAS`` \n
Snippet: ``value: float = driver.sense.correction.cvl.bias.get()`` \n
Defines the bias setting to be used with the conversion loss table. Before this command can be performed, the conversion
loss table must be selected (see method ``RsFsw.applications.k50Spurious.sense.correction.cvl.select.set()`` . Is only
available with option B21 (External Mixer) installed.
"""
response = self._core.io.query_str(f'SENSe:CORRection:CVL:BIAS?')
return Conversions.str_to_float(response)