Source code for RsSmw.Implementations.Source.Efrontend.Screw

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


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

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

[docs] def get_position(self) -> int: """ ``[SOURce<HW>]:EFRontend:SCRew:POSition`` \n Snippet: ``value: int = driver.source.efrontend.screw.get_position()`` \n Requires a connected external frequency multiplier with installed mechanically attenuator option. Queries the value of the screw position required on the connected external frequency multiplier. :return: screw_position: integer Range: 0 to 150 """ response = self._core.io.query_str('SOURce<HwInstance>:EFRontend:SCRew:POSition?') return Conversions.str_to_int(response)