from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class BiasCls:
"""Bias commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("bias", core, parent)
[docs] def set(self, bias_setting: float) -> None:
"""SCPI: [SENSe]:CORRection:CVL:BIAS \n
Snippet: driver.sense.correction.cvl.bias.set(bias_setting = 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 [SENSe:]CORRection:CVL:SELect. Is only available with option B21 (External Mixer)
installed. \n
:param bias_setting: Unit: A
"""
param = Conversions.decimal_value_to_str(bias_setting)
self._core.io.write(f'SENSe:CORRection:CVL:BIAS {param}')
[docs] def get(self) -> float:
"""SCPI: [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 [SENSe:]CORRection:CVL:SELect. Is only available with option B21 (External Mixer)
installed. \n
:return: bias_setting: Unit: A"""
response = self._core.io.query_str(f'SENSe:CORRection:CVL:BIAS?')
return Conversions.str_to_float(response)