Source code for RsSmw.Implementations.Source.Bb.V5G.Trigger.External.Synchronize

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


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

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

[docs] def get_output(self) -> bool: """ ``[SOURce<HW>]:BB:V5G:TRIGger:EXTernal:SYNChronize:OUTPut`` \n Snippet: ``value: bool = driver.source.bb.v5G.trigger.external.synchronize.get_output()`` \n Enables output of the signal synchronous to the external trigger event. :return: trig_sync_out: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:TRIGger:EXTernal:SYNChronize:OUTPut?') return Conversions.str_to_bool(response)
[docs] def set_output(self, trig_sync_out: bool) -> None: """ ``[SOURce<HW>]:BB:V5G:TRIGger:EXTernal:SYNChronize:OUTPut`` \n Snippet: ``driver.source.bb.v5G.trigger.external.synchronize.set_output(trig_sync_out = False)`` \n Enables output of the signal synchronous to the external trigger event. :param trig_sync_out: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(trig_sync_out) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:TRIGger:EXTernal:SYNChronize:OUTPut {param}')