Source code for RsSmcv.Implementations.Source.Bb.T2Dvb.Prbs

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PrbsCls: """Prbs commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("prbs", core, parent) # noinspection PyTypeChecker
[docs] def get_sequence(self) -> enums.SettingsPrbs: """SCPI: [SOURce<HW>]:BB:T2DVb:PRBS:[SEQuence] \n Snippet: value: enums.SettingsPrbs = driver.source.bb.t2Dvb.prbs.get_sequence() \n Sets the length of the PRBS sequence. You can select a PRBS 15 or a PRBS 23 sequence as specified by . \n :return: prbs: P23_1| P15_1 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:T2DVb:PRBS:SEQuence?') return Conversions.str_to_scalar_enum(response, enums.SettingsPrbs)
[docs] def set_sequence(self, prbs: enums.SettingsPrbs) -> None: """SCPI: [SOURce<HW>]:BB:T2DVb:PRBS:[SEQuence] \n Snippet: driver.source.bb.t2Dvb.prbs.set_sequence(prbs = enums.SettingsPrbs.P15_1) \n Sets the length of the PRBS sequence. You can select a PRBS 15 or a PRBS 23 sequence as specified by . \n :param prbs: P23_1| P15_1 """ param = Conversions.enum_scalar_to_str(prbs, enums.SettingsPrbs) self._core.io.write(f'SOURce<HwInstance>:BB:T2DVb:PRBS:SEQuence {param}')