Source code for RsFsw.Implementations.Applications.K70_Vsa.Trigger.Sequence.Slope

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


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

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

[docs] def set(self, type_py: enums.SlopeType) -> None: """ ``TRIGger[:SEQuence]:SLOPe`` \n Snippet: ``driver.applications.k70Vsa.trigger.sequence.slope.set(type_py = enums.SlopeType.NEGative)`` \n For external and time domain trigger sources, you can define whether triggering occurs when the signal rises to the trigger level or falls down to it. :param type_py: POSitive | NEGative POSitive Triggers when the signal rises to the trigger level (rising edge) . NEGative Triggers when the signal drops to the trigger level (falling edge) . """ param = Conversions.enum_scalar_to_str(type_py, enums.SlopeType) self._core.io.write(f'TRIGger:SEQuence:SLOPe {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.SlopeType: """ ``TRIGger[:SEQuence]:SLOPe`` \n Snippet: ``value: enums.SlopeType = driver.applications.k70Vsa.trigger.sequence.slope.get()`` \n For external and time domain trigger sources, you can define whether triggering occurs when the signal rises to the trigger level or falls down to it. :return: type_py: POSitive | NEGative POSitive Triggers when the signal rises to the trigger level (rising edge) . NEGative Triggers when the signal drops to the trigger level (falling edge) . """ response = self._core.io.query_str(f'TRIGger:SEQuence:SLOPe?') return Conversions.str_to_scalar_enum(response, enums.SlopeType)