Source code for RsSmw.Implementations.Calibration.All.Measure

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Types import DataType
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle


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

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

[docs] def get(self, force: str=None) -> bool: """ ``CALibration:ALL:[MEASure]`` \n Snippet: ``value: bool = driver.calibration.all.measure.get(force = 'abc')`` \n Starts all internal adjustments that do not need external measuring equipment. Note: If an external frequency converter R&S SZU is connected, the internal adjustments are blocked, and the R&S SMW200A generates an error message. :param force: string :return: measure: 1 | ON | 0| OFF """ param = ArgSingleList().compose_cmd_string(ArgSingle('force', force, DataType.String, None, is_optional=True)) response = self._core.io.query_str(f'CALibration:ALL:MEASure? {param}'.rstrip()) return Conversions.str_to_bool(response)