Source code for RsSmbv.Implementations.Source.Bb.Ofdm.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:OFDM:TRIGger:DELay:UNIT \n Snippet: value: enums.TrigDelUnit = driver.source.bb.ofdm.trigger.delay.get_unit() \n Determines the unit that the trigger delay is expressed in. \n :return: trig_del_unit: SAMPle| TIME """ response = self._core.io.query_str('SOURce<HwInstance>:BB:OFDM:TRIGger:DELay:UNIT?') return Conversions.str_to_scalar_enum(response, enums.TrigDelUnit)
[docs] def set_unit(self, trig_del_unit: enums.TrigDelUnit) -> None: """SCPI: [SOURce<HW>]:BB:OFDM:TRIGger:DELay:UNIT \n Snippet: driver.source.bb.ofdm.trigger.delay.set_unit(trig_del_unit = enums.TrigDelUnit.SAMPle) \n Determines the unit that the trigger delay is expressed in. \n :param trig_del_unit: SAMPle| TIME """ param = Conversions.enum_scalar_to_str(trig_del_unit, enums.TrigDelUnit) self._core.io.write(f'SOURce<HwInstance>:BB:OFDM:TRIGger:DELay:UNIT {param}')