Source code for RsSmbv.Implementations.Source.ListPy.Trigger.Source

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


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

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

	# noinspection PyTypeChecker
[docs] def get_advanced(self) -> enums.TrigSweepImmBusExt: """ ``[SOURce<HW>]:LIST:TRIGger:SOURce:ADVanced`` \n Snippet: ``value: enums.TrigSweepImmBusExt = driver.source.listPy.trigger.source.get_advanced()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:LIST:TRIGger:SOURce:ADVanced?') return Conversions.str_to_scalar_enum(response, enums.TrigSweepImmBusExt)
[docs] def set_advanced(self, trig_point_adv: enums.TrigSweepImmBusExt) -> None: """ ``[SOURce<HW>]:LIST:TRIGger:SOURce:ADVanced`` \n Snippet: ``driver.source.listPy.trigger.source.set_advanced(trig_point_adv = enums.TrigSweepImmBusExt.BUS)`` \n No help available """ param = Conversions.enum_scalar_to_str(trig_point_adv, enums.TrigSweepImmBusExt) self._core.io.write(f'SOURce<HwInstance>:LIST:TRIGger:SOURce:ADVanced {param}')
# noinspection PyTypeChecker
[docs] def get_value(self) -> enums.TrigSweepSourNoHopExtAuto: """ ``[SOURce<HW>]:LIST:TRIGger:SOURce`` \n Snippet: ``value: enums.TrigSweepSourNoHopExtAuto = driver.source.listPy.trigger.source.get_value()`` \n Selects the trigger source for processing lists. The designation of the parameters correspond to those in sweep mode. SCPI standard uses other designations for the parameters, which are also accepted by the instrument. The SCPI designation should be used if compatibility is an important consideration. For an overview, see the following table: Rohde & Schwarz parameter / SCPI parameter / Applies to the list mode parameters: \n - AUTO / IMMediate / [:SOURce<hw>]:LIST:MODE AUTO - SINGle / BUS / [:SOURce<hw>]:LIST:MODE AUTO or [:SOURce<hw>]:LIST:MODE STEP - EXTernal / EXTernal / [:SOURce<hw>]:LIST:MODE AUTO or [:SOURce<hw>]:LIST:MODE STEP :return: source: AUTO | IMMediate | SINGle | BUS | EXTernal AUTO | IMMediate The trigger is free-running, i.e. the trigger condition is fulfilled continuously. The selected list is restarted as soon as it is finished. SINGle | BUS The list is triggered by the command method ``RsSmbv.source.listPy.trigger.execute.set()`` . The list is executed once. EXTernal The list is triggered externally and executed once. """ response = self._core.io.query_str('SOURce<HwInstance>:LIST:TRIGger:SOURce?') return Conversions.str_to_scalar_enum(response, enums.TrigSweepSourNoHopExtAuto)
[docs] def set_value(self, source: enums.TrigSweepSourNoHopExtAuto) -> None: """ ``[SOURce<HW>]:LIST:TRIGger:SOURce`` \n Snippet: ``driver.source.listPy.trigger.source.set_value(source = enums.TrigSweepSourNoHopExtAuto.AUTO)`` \n Selects the trigger source for processing lists. The designation of the parameters correspond to those in sweep mode. SCPI standard uses other designations for the parameters, which are also accepted by the instrument. The SCPI designation should be used if compatibility is an important consideration. For an overview, see the following table: Rohde & Schwarz parameter / SCPI parameter / Applies to the list mode parameters: \n - AUTO / IMMediate / [:SOURce<hw>]:LIST:MODE AUTO - SINGle / BUS / [:SOURce<hw>]:LIST:MODE AUTO or [:SOURce<hw>]:LIST:MODE STEP - EXTernal / EXTernal / [:SOURce<hw>]:LIST:MODE AUTO or [:SOURce<hw>]:LIST:MODE STEP :param source: AUTO | IMMediate | SINGle | BUS | EXTernal AUTO | IMMediate The trigger is free-running, i.e. the trigger condition is fulfilled continuously. The selected list is restarted as soon as it is finished. SINGle | BUS The list is triggered by the command method ``RsSmbv.source.listPy.trigger.execute.set()`` . The list is executed once. EXTernal The list is triggered externally and executed once. """ param = Conversions.enum_scalar_to_str(source, enums.TrigSweepSourNoHopExtAuto) self._core.io.write(f'SOURce<HwInstance>:LIST:TRIGger:SOURce {param}')