Source code for RsSmw.Implementations.Source.Bb.Btooth.Trigger.Time

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Utilities import trim_str_response
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct


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

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

[docs] def get_time(self) -> str: """ ``[SOURce<HW>]:BB:BTOoth:TRIGger:TIME:TIME`` \n Snippet: ``value: str = driver.source.bb.btooth.trigger.time.get_time()`` \n Sets the time for a time-based trigger signal. For trigger modes single or armed auto, you can activate triggering at this time via the following command: SOURce<hw>:BB:<DigStd>:TRIGger:TIME:STATe <DigStd> is the mnemonic for the digital standard, for example, ARB. Time-based triggering behaves analogously for all digital standards that support this feature. :return: time: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:TRIGger:TIME:TIME?') return trim_str_response(response)
# noinspection PyTypeChecker
[docs] class StateStruct(StructBase): """ Structure for reading output parameters. Fields: \n - Hour: int: integer Range: 0 to 23 - Minute: int: integer Range: 0 to 59 - Second: int: integer Range: 0 to 59 """ __meta_args_list = [ ArgStruct.scalar_int('Hour'), ArgStruct.scalar_int('Minute'), ArgStruct.scalar_int('Second')] def __init__(self): StructBase.__init__(self, self) self.Hour: int=None self.Minute: int=None self.Second: int=None
[docs] def get_state(self) -> StateStruct: """ ``[SOURce<HW>]:BB:BTOoth:TRIGger:TIME:[STATe]`` \n Snippet: ``value: StateStruct = driver.source.bb.btooth.trigger.time.get_state()`` \n Activates time-based triggering with a fixed time reference. If activated, the R&S SMW200A triggers signal generation when its operating system time matches a specified time. Specify the trigger date and trigger time with the following commands: SOURce<hw>:BB:<DigStd>:TRIGger:TIME:DATE SOURce<hw>:BB:<DigStd>:TRIGger:TIME:TIME <DigStd> is the mnemonic for the digital standard, for example, ARB. Time-based triggering behaves analogously for all digital standards that support this feature. :return: structure: for return value, see the help for StateStruct structure arguments. """ return self._core.io.query_struct('SOURce<HwInstance>:BB:BTOoth:TRIGger:TIME:STATe?', self.__class__.StateStruct())