Source code for RsSmbv.Implementations.Source.Psweep.Trigger.Source

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SourceCls: """Source commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" 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: """SCPI: [SOURce<HW>]:PSWeep:TRIGger:SOURce:ADVanced \n Snippet: value: enums.TrigSweepImmBusExt = driver.source.psweep.trigger.source.get_advanced() \n No command help available \n :return: ps_trig_source_adv: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:PSWeep:TRIGger:SOURce:ADVanced?') return Conversions.str_to_scalar_enum(response, enums.TrigSweepImmBusExt)
[docs] def set_advanced(self, ps_trig_source_adv: enums.TrigSweepImmBusExt) -> None: """SCPI: [SOURce<HW>]:PSWeep:TRIGger:SOURce:ADVanced \n Snippet: driver.source.psweep.trigger.source.set_advanced(ps_trig_source_adv = enums.TrigSweepImmBusExt.BUS) \n No command help available \n :param ps_trig_source_adv: No help available """ param = Conversions.enum_scalar_to_str(ps_trig_source_adv, enums.TrigSweepImmBusExt) self._core.io.write(f'SOURce<HwInstance>:PSWeep:TRIGger:SOURce:ADVanced {param}')