from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ResistorCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("resistor", core, parent)
[docs]
def set(self, resistance: float) -> None:
"""
``CONFigure:PAE:ICHannel:RESistor`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.pae.ichannel.resistor.set(resistance = 1.0)`` \n
This command defines the characteristics of the shunt resistor used in the test setup.
:param resistance: numeric value Resistance in Ohm.
"""
param = Conversions.decimal_value_to_str(resistance)
self._core.io.write(f'CONFigure:PAE:ICHannel:RESistor {param}')
[docs]
def get(self) -> float:
"""
``CONFigure:PAE:ICHannel:RESistor`` \n
Snippet: ``value: float = driver.applications.k18AmplifierEt.configure.pae.ichannel.resistor.get()`` \n
This command defines the characteristics of the shunt resistor used in the test setup.
:return: resistance: numeric value Resistance in Ohm.
"""
response = self._core.io.query_str(f'CONFigure:PAE:ICHannel:RESistor?')
return Conversions.str_to_float(response)