Source code for RsSmw.Implementations.Source.Bb.Esequencer.Trigger.Delay

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DelayCls: """Delay commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("delay", core, parent) # noinspection PyTypeChecker
[docs] def get_unit(self) -> enums.TrigDelUnit: """SCPI: [SOURce<HW>]:BB:ESEQuencer:TRIGger:DELay:UNIT \n Snippet: value: enums.TrigDelUnit = driver.source.bb.esequencer.trigger.delay.get_unit() \n Determines the units the trigger delay is expressed in. \n :return: delay_unit: SAMPle| TIME """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ESEQuencer:TRIGger:DELay:UNIT?') return Conversions.str_to_scalar_enum(response, enums.TrigDelUnit)
[docs] def set_unit(self, delay_unit: enums.TrigDelUnit) -> None: """SCPI: [SOURce<HW>]:BB:ESEQuencer:TRIGger:DELay:UNIT \n Snippet: driver.source.bb.esequencer.trigger.delay.set_unit(delay_unit = enums.TrigDelUnit.SAMPle) \n Determines the units the trigger delay is expressed in. \n :param delay_unit: SAMPle| TIME """ param = Conversions.enum_scalar_to_str(delay_unit, enums.TrigDelUnit) self._core.io.write(f'SOURce<HwInstance>:BB:ESEQuencer:TRIGger:DELay:UNIT {param}')