Source code for RsFsw.Implementations.Sense.Correction.Cvl.Snumber

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response


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

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

[docs] def set(self, serial_no: str) -> None: """ ``[SENSe]:CORRection:CVL:SNUMber`` \n Snippet: ``driver.sense.correction.cvl.snumber.set(serial_no = 'abc')`` \n Defines the serial number of the mixer for which the conversion loss table is to be used. This setting is checked against the current mixer setting before the table can be assigned to the range. 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 serial_no: Serial number with a maximum of 16 characters """ param = Conversions.value_to_quoted_str(serial_no) self._core.io.write(f'SENSe:CORRection:CVL:SNUMber {param}')
[docs] def get(self) -> str: """ ``[SENSe]:CORRection:CVL:SNUMber`` \n Snippet: ``value: str = driver.sense.correction.cvl.snumber.get()`` \n Defines the serial number of the mixer for which the conversion loss table is to be used. This setting is checked against the current mixer setting before the table can be assigned to the range. 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. :return: serial_no: Serial number with a maximum of 16 characters """ response = self._core.io.query_str(f'SENSe:CORRection:CVL:SNUMber?') return trim_str_response(response)