Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Fsync.Level

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions


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

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

[docs] def set(self, ser_level: float) -> None: """ ``[SENSe]:DDEMod:FSYNc:LEVel`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.fsync.level.set(ser_level = 1.0)`` \n Sets the Fine Sync Level if fine sync works on Known Data :param ser_level: Range: 0.0 to 100.0, Unit: PCT """ param = Conversions.decimal_value_to_str(ser_level) self._core.io.write(f'SENSe:DDEMod:FSYNc:LEVel {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DDEMod:FSYNc:LEVel`` \n Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.fsync.level.get()`` \n Sets the Fine Sync Level if fine sync works on Known Data :return: ser_level: Range: 0.0 to 100.0, Unit: PCT """ response = self._core.io.query_str(f'SENSe:DDEMod:FSYNc:LEVel?') return Conversions.str_to_float(response)