Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Sense.Pmeter.Trigger.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, edge: enums.SlopeType) -> None: """ ``[SENSe]:PMETer:TRIGger:SLOPe`` \n Snippet: ``driver.applications.k18AmplifierEt.sense.pmeter.trigger.slope.set(edge = enums.SlopeType.NEGative)`` \n Selects the trigger condition for external power triggers. :param edge: POSitive The measurement starts in case the trigger signal shows a positive edge. NEGative The measurement starts in case the trigger signal shows a negative edge. """ param = Conversions.enum_scalar_to_str(edge, enums.SlopeType) self._core.io.write(f'SENSe:PMETer:TRIGger:SLOPe {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.SlopeType: """ ``[SENSe]:PMETer:TRIGger:SLOPe`` \n Snippet: ``value: enums.SlopeType = driver.applications.k18AmplifierEt.sense.pmeter.trigger.slope.get()`` \n Selects the trigger condition for external power triggers. :return: edge: POSitive The measurement starts in case the trigger signal shows a positive edge. NEGative The measurement starts in case the trigger signal shows a negative edge. """ response = self._core.io.query_str(f'SENSe:PMETer:TRIGger:SLOPe?') return Conversions.str_to_scalar_enum(response, enums.SlopeType)