Source code for RsFsw.Implementations.Applications.K50_Spurious.Initiate.Continuous

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


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

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

[docs] def set(self, state: bool) -> None: """ ``INITiate:CONTinuous`` \n Snippet: ``driver.applications.k50Spurious.initiate.continuous.set(state = False)`` \n Controls the measurement mode for an individual channel. Note that in single measurement mode, you can synchronize to the end of the measurement with ``*OPC``, ``*OPC?`` or ``*WAI``. In continuous measurement mode, synchronization to the end of the measurement is not possible. Thus, it is not recommended that you use continuous measurement mode in remote control, as results like trace data or markers are only valid after a single measurement end synchronization. If the measurement mode is changed for a channel while the Sequencer is active (see method ``RsFsw.initiate.sequencer.immediate.perform()`` ) , the mode is only considered the next time the measurement in that channel is activated by the Sequencer. :param state: ON | OFF | 0 | 1 ON | 1 Continuous measurement OFF | 0 Single measurement """ param = Conversions.bool_to_str(state) self._core.io.write(f'INITiate:CONTinuous {param}')
[docs] def get(self) -> bool: """ ``INITiate:CONTinuous`` \n Snippet: ``value: bool = driver.applications.k50Spurious.initiate.continuous.get()`` \n Controls the measurement mode for an individual channel. Note that in single measurement mode, you can synchronize to the end of the measurement with ``*OPC``, ``*OPC?`` or ``*WAI``. In continuous measurement mode, synchronization to the end of the measurement is not possible. Thus, it is not recommended that you use continuous measurement mode in remote control, as results like trace data or markers are only valid after a single measurement end synchronization. If the measurement mode is changed for a channel while the Sequencer is active (see method ``RsFsw.initiate.sequencer.immediate.perform()`` ) , the mode is only considered the next time the measurement in that channel is activated by the Sequencer. :return: state: ON | OFF | 0 | 1 ON | 1 Continuous measurement OFF | 0 Single measurement """ response = self._core.io.query_str(f'INITiate:CONTinuous?') return Conversions.str_to_bool(response)