Source code for RsSmw.Implementations.Source.Bb.Dvb.Dvbx

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DvbxCls: """Dvbx commands group definition. 96 total commands, 17 Subgroups, 15 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("dvbx", core, parent) @property def adLength(self): """adLength commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_adLength'): from .AdLength import AdLengthCls self._adLength = AdLengthCls(self._core, self._cmd_group) return self._adLength @property def bhConfig(self): """bhConfig commands group. 5 Sub-classes, 4 commands.""" if not hasattr(self, '_bhConfig'): from .BhConfig import BhConfigCls self._bhConfig = BhConfigCls(self._core, self._cmd_group) return self._bhConfig @property def binterleaver(self): """binterleaver commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_binterleaver'): from .Binterleaver import BinterleaverCls self._binterleaver = BinterleaverCls(self._core, self._cmd_group) return self._binterleaver @property def bscrambler(self): """bscrambler commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_bscrambler'): from .Bscrambler import BscramblerCls self._bscrambler = BscramblerCls(self._core, self._cmd_group) return self._bscrambler @property def cpnSequence(self): """cpnSequence commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_cpnSequence'): from .CpnSequence import CpnSequenceCls self._cpnSequence = CpnSequenceCls(self._core, self._cmd_group) return self._cpnSequence @property def crc(self): """crc commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_crc'): from .Crc import CrcCls self._crc = CrcCls(self._core, self._cmd_group) return self._crc @property def data(self): """data commands group. 1 Sub-classes, 5 commands.""" if not hasattr(self, '_data'): from .Data import DataCls self._data = DataCls(self._core, self._cmd_group) return self._data @property def ghConfig(self): """ghConfig commands group. 7 Sub-classes, 4 commands.""" if not hasattr(self, '_ghConfig'): from .GhConfig import GhConfigCls self._ghConfig = GhConfigCls(self._core, self._cmd_group) return self._ghConfig @property def icoder(self): """icoder commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_icoder'): from .Icoder import IcoderCls self._icoder = IcoderCls(self._core, self._cmd_group) return self._icoder @property def mtab(self): """mtab commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_mtab'): from .Mtab import MtabCls self._mtab = MtabCls(self._core, self._cmd_group) return self._mtab @property def ocoder(self): """ocoder commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_ocoder'): from .Ocoder import OcoderCls self._ocoder = OcoderCls(self._core, self._cmd_group) return self._ocoder @property def pscrambler(self): """pscrambler commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pscrambler'): from .Pscrambler import PscramblerCls self._pscrambler = PscramblerCls(self._core, self._cmd_group) return self._pscrambler @property def pstate(self): """pstate commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pstate'): from .Pstate import PstateCls self._pstate = PstateCls(self._core, self._cmd_group) return self._pstate @property def sfbhConfig(self): """sfbhConfig commands group. 2 Sub-classes, 8 commands.""" if not hasattr(self, '_sfbhConfig'): from .SfbhConfig import SfbhConfigCls self._sfbhConfig = SfbhConfigCls(self._core, self._cmd_group) return self._sfbhConfig @property def sfConfig(self): """sfConfig commands group. 0 Sub-classes, 17 commands.""" if not hasattr(self, '_sfConfig'): from .SfConfig import SfConfigCls self._sfConfig = SfConfigCls(self._core, self._cmd_group) return self._sfConfig @property def thConfig(self): """thConfig commands group. 4 Sub-classes, 5 commands.""" if not hasattr(self, '_thConfig'): from .ThConfig import ThConfigCls self._thConfig = ThConfigCls(self._core, self._cmd_group) return self._thConfig @property def ucMode(self): """ucMode commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_ucMode'): from .UcMode import UcModeCls self._ucMode = UcModeCls(self._core, self._cmd_group) return self._ucMode
[docs] def get_annex_m(self) -> bool: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:ANNexm \n Snippet: value: bool = driver.source.bb.dvb.dvbx.get_annex_m() \n No command help available \n :return: annex_m: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:ANNexm?') return Conversions.str_to_bool(response)
[docs] def set_annex_m(self, annex_m: bool) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:ANNexm \n Snippet: driver.source.bb.dvb.dvbx.set_annex_m(annex_m = False) \n No command help available \n :param annex_m: No help available """ param = Conversions.bool_to_str(annex_m) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:ANNexm {param}')
[docs] def get_bb_frames(self) -> int: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:BBFRames \n Snippet: value: int = driver.source.bb.dvb.dvbx.get_bb_frames() \n Queries the number of baseband frames. The number is available for complete transmission of pseudo-random noise (PN) bits as data source. The number depends on the length of the PN bit sequence, see Table 'PN sequence length and number of BB frames'. \n :return: bb_frames: integer Range: 1 to depends on settings """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:BBFRames?') return Conversions.str_to_int(response)
# noinspection PyTypeChecker
[docs] def get_ctype(self) -> enums.DvbS2XcodeType: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:CTYPe \n Snippet: value: enums.DvbS2XcodeType = driver.source.bb.dvb.dvbx.get_ctype() \n Selects the code type. \n :return: ctype: NORMal| MEDium| SHORt """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:CTYPe?') return Conversions.str_to_scalar_enum(response, enums.DvbS2XcodeType)
[docs] def set_ctype(self, ctype: enums.DvbS2XcodeType) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:CTYPe \n Snippet: driver.source.bb.dvb.dvbx.set_ctype(ctype = enums.DvbS2XcodeType.MEDium) \n Selects the code type. \n :param ctype: NORMal| MEDium| SHORt """ param = Conversions.enum_scalar_to_str(ctype, enums.DvbS2XcodeType) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:CTYPe {param}')
[docs] def get_frames(self) -> int: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:FRAMes \n Snippet: value: int = driver.source.bb.dvb.dvbx.get_frames() \n Sets the number of the transmitted frames. \n :return: frames: integer Range: 1 to max """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:FRAMes?') return Conversions.str_to_int(response)
[docs] def set_frames(self, frames: int) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:FRAMes \n Snippet: driver.source.bb.dvb.dvbx.set_frames(frames = 1) \n Sets the number of the transmitted frames. \n :param frames: integer Range: 1 to max """ param = Conversions.decimal_value_to_str(frames) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:FRAMes {param}')
[docs] def get_gsequence(self) -> int: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:GSEQuence \n Snippet: value: int = driver.source.bb.dvb.dvbx.get_gsequence() \n Sets the gold sequence as part of the scrambling sequence. \n :return: gold_seq_index: integer Range: 0 to 262141 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:GSEQuence?') return Conversions.str_to_int(response)
[docs] def set_gsequence(self, gold_seq_index: int) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:GSEQuence \n Snippet: driver.source.bb.dvb.dvbx.set_gsequence(gold_seq_index = 1) \n Sets the gold sequence as part of the scrambling sequence. \n :param gold_seq_index: integer Range: 0 to 262141 """ param = Conversions.decimal_value_to_str(gold_seq_index) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:GSEQuence {param}')
[docs] def get_istream(self) -> str: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:ISTReam \n Snippet: value: str = driver.source.bb.dvb.dvbx.get_istream() \n Queries the input stream type. \n :return: istream: string """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:ISTReam?') return trim_str_response(response)
# noinspection PyTypeChecker
[docs] def get_mcod(self) -> enums.DvbS2XmodCod: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:MCOD \n Snippet: value: enums.DvbS2XmodCod = driver.source.bb.dvb.dvbx.get_mcod() \n Selects the MODCOD. \n :return: mod_cod: QPSK_S_14| QPSK_S_13| QPSK_S_25| QPSK_S_12| QPSK_S_35| QPSK_S_23| QPSK_S_34| QPSK_S_45| QPSK_S_56| QPSK_S_89| QPSK_S_910| PSK8_S_35| PSK8_S_23| PSK8_S_34| PSK8_S_56| PSK8_S_89| PSK8_S_910| APSK16_S_23| APSK16_S_34| APSK16_S_45| APSK16_S_56| APSK16_S_89| APSK16_S_910| APSK32_S_34| APSK32_S_45| APSK32_S_56| APSK32_S_89| APSK32_S_910| QPSK_X_N1345| QPSK_X_N920| QPSK_X_N1120| APSK8_X_N59L| APSK8_X_N2645L| PSK8_X_N2336| PSK8_X_N2536| PSK8_X_N1318| APSK16_X_N12L| APSK16_X_N815L| APSK16_X_N59L| APSK16_X_N2645| APSK16_X_N35| APSK16_X_N35L| APSK16_X_N2845| APSK16_X_N2336| APSK16_X_N23L| APSK16_X_N2536| APSK16_X_N1318| APSK16_X_N79| APSK16_X_N7790| APSK32_X_N23L| APSK32_X_N3245| APSK32_X_N1115| APSK32_X_N79| APSK64_X_N3245L| APSK64_X_N1115| APSK64_X_N79| APSK64_X_N45| APSK64_X_N56| APSK128_X_N34| APSK128_X_N79| APSK256_X_N2945L| APSK256_X_N23L| APSK256_X_N3145L| APSK256_X_N3245| APSK256_X_N1115L| APSK256_X_N34| QPSK_X_S1145| QPSK_X_S415| QPSK_X_S1445| QPSK_X_S715| QPSK_X_S815| QPSK_X_S3245| PSK8_X_S715| PSK8_X_S815| PSK8_X_S2645| PSK8_X_S3245| APSK16_X_S715| APSK16_X_S815| APSK16_X_S2645| APSK16_X_S35| APSK16_X_S3245| APSK32_X_S23| APSK32_X_S3245| QPSK_X_VN29| BPSK_X_VM15| BPSK_X_VM1145| BPSK_X_VM13| BPSK_X_VS15S| BPSK_X_VS1145| BPSK_X_VS15| BPSK_X_VS415| BPSK_X_VS13| QPSK_X_M15 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:MCOD?') return Conversions.str_to_scalar_enum(response, enums.DvbS2XmodCod)
[docs] def set_mcod(self, mod_cod: enums.DvbS2XmodCod) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:MCOD \n Snippet: driver.source.bb.dvb.dvbx.set_mcod(mod_cod = enums.DvbS2XmodCod.APSK128_X_N34) \n Selects the MODCOD. \n :param mod_cod: QPSK_S_14| QPSK_S_13| QPSK_S_25| QPSK_S_12| QPSK_S_35| QPSK_S_23| QPSK_S_34| QPSK_S_45| QPSK_S_56| QPSK_S_89| QPSK_S_910| PSK8_S_35| PSK8_S_23| PSK8_S_34| PSK8_S_56| PSK8_S_89| PSK8_S_910| APSK16_S_23| APSK16_S_34| APSK16_S_45| APSK16_S_56| APSK16_S_89| APSK16_S_910| APSK32_S_34| APSK32_S_45| APSK32_S_56| APSK32_S_89| APSK32_S_910| QPSK_X_N1345| QPSK_X_N920| QPSK_X_N1120| APSK8_X_N59L| APSK8_X_N2645L| PSK8_X_N2336| PSK8_X_N2536| PSK8_X_N1318| APSK16_X_N12L| APSK16_X_N815L| APSK16_X_N59L| APSK16_X_N2645| APSK16_X_N35| APSK16_X_N35L| APSK16_X_N2845| APSK16_X_N2336| APSK16_X_N23L| APSK16_X_N2536| APSK16_X_N1318| APSK16_X_N79| APSK16_X_N7790| APSK32_X_N23L| APSK32_X_N3245| APSK32_X_N1115| APSK32_X_N79| APSK64_X_N3245L| APSK64_X_N1115| APSK64_X_N79| APSK64_X_N45| APSK64_X_N56| APSK128_X_N34| APSK128_X_N79| APSK256_X_N2945L| APSK256_X_N23L| APSK256_X_N3145L| APSK256_X_N3245| APSK256_X_N1115L| APSK256_X_N34| QPSK_X_S1145| QPSK_X_S415| QPSK_X_S1445| QPSK_X_S715| QPSK_X_S815| QPSK_X_S3245| PSK8_X_S715| PSK8_X_S815| PSK8_X_S2645| PSK8_X_S3245| APSK16_X_S715| APSK16_X_S815| APSK16_X_S2645| APSK16_X_S35| APSK16_X_S3245| APSK32_X_S23| APSK32_X_S3245| QPSK_X_VN29| BPSK_X_VM15| BPSK_X_VM1145| BPSK_X_VM13| BPSK_X_VS15S| BPSK_X_VS1145| BPSK_X_VS15| BPSK_X_VS415| BPSK_X_VS13| QPSK_X_M15 """ param = Conversions.enum_scalar_to_str(mod_cod, enums.DvbS2XmodCod) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:MCOD {param}')
# noinspection PyTypeChecker
[docs] def get_mc_unique(self) -> enums.DvbS2XmodCodUnique: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:MCUnique \n Snippet: value: enums.DvbS2XmodCodUnique = driver.source.bb.dvb.dvbx.get_mc_unique() \n Sets predefined modulation and coding schemes. \n :return: mod_cod_unique: MCU1| MCU2| MCU3| MCU4| MCU5| MCU6| MCU7| MCU8| MCU9| MCU10| MCU11| MCU12| MCU13| MCU14| MCU15| MCU16| MCU17| MCU18| MCU19| MCU20| MCU21| MCU22| MCU23| MCU24| MCU25| MCU26| MCU27| MCU28| MCU29| MCU30| MCU31| MCU32| MCU33| MCU34| MCU35| MCU36| MCU37| MCU38| MCU39| MCU40| MCU41| MCU42| MCU43| MCU44| MCU45| MCU46| MCU47| MCU48| MCU49| MCU50| MCU51| MCU52| MCU53| MCU54| MCU55| MCU56| MCU57| MCU58| MCU59| MCU60| MCU61| MCU62| MCU63| MCU64| MCU65| MCU66| MCU67| MCU68| MCU69| MCU70| MCU71| MCU72| MCU73| MCU74| MCU75| MCU76| MCU77| MCU78| MCU79| MCU80| MCU81| MCU82| MCU83| MCU84| MCU85| MCU86| MCU87| MCU88| MCU89| MCU90| MCU91| MCU92| MCU93| MCU94| MCU95| MCU96| MCU97| MCU98| MCU99| MCU100| MCU101| MCU102| MCU103| MCU104| MCU105| MCU106| MCU107| MCU108| MCU109| MCU110| MCU111| MCU112| MCU113| MCU114| MCU115| MCU116| MCU117| MCU118| MCU119| MCU120| MCU121| MCU122| MCU123| MCU124| MCU125| MCU126| MCU127| MCU128| MCU129| MCU130 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:MCUnique?') return Conversions.str_to_scalar_enum(response, enums.DvbS2XmodCodUnique)
[docs] def set_mc_unique(self, mod_cod_unique: enums.DvbS2XmodCodUnique) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:MCUnique \n Snippet: driver.source.bb.dvb.dvbx.set_mc_unique(mod_cod_unique = enums.DvbS2XmodCodUnique.MCU1) \n Sets predefined modulation and coding schemes. \n :param mod_cod_unique: MCU1| MCU2| MCU3| MCU4| MCU5| MCU6| MCU7| MCU8| MCU9| MCU10| MCU11| MCU12| MCU13| MCU14| MCU15| MCU16| MCU17| MCU18| MCU19| MCU20| MCU21| MCU22| MCU23| MCU24| MCU25| MCU26| MCU27| MCU28| MCU29| MCU30| MCU31| MCU32| MCU33| MCU34| MCU35| MCU36| MCU37| MCU38| MCU39| MCU40| MCU41| MCU42| MCU43| MCU44| MCU45| MCU46| MCU47| MCU48| MCU49| MCU50| MCU51| MCU52| MCU53| MCU54| MCU55| MCU56| MCU57| MCU58| MCU59| MCU60| MCU61| MCU62| MCU63| MCU64| MCU65| MCU66| MCU67| MCU68| MCU69| MCU70| MCU71| MCU72| MCU73| MCU74| MCU75| MCU76| MCU77| MCU78| MCU79| MCU80| MCU81| MCU82| MCU83| MCU84| MCU85| MCU86| MCU87| MCU88| MCU89| MCU90| MCU91| MCU92| MCU93| MCU94| MCU95| MCU96| MCU97| MCU98| MCU99| MCU100| MCU101| MCU102| MCU103| MCU104| MCU105| MCU106| MCU107| MCU108| MCU109| MCU110| MCU111| MCU112| MCU113| MCU114| MCU115| MCU116| MCU117| MCU118| MCU119| MCU120| MCU121| MCU122| MCU123| MCU124| MCU125| MCU126| MCU127| MCU128| MCU129| MCU130 """ param = Conversions.enum_scalar_to_str(mod_cod_unique, enums.DvbS2XmodCodUnique) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:MCUnique {param}')
# noinspection PyTypeChecker
[docs] def get_modulation(self) -> enums.DvbS2Xmodulation: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:MODulation \n Snippet: value: enums.DvbS2Xmodulation = driver.source.bb.dvb.dvbx.get_modulation() \n Selects the modulation scheme. \n :return: modulation: QPSK| APSK16| APSK32| PSK8| P2BPsk| APSK16_8_8| APSK32_4_12_16R| APSK64_8_16_20_20| APSK8_2_4_2| APSK32_4_8_4_16| APSK64_16_16_16_16| APSK64_4_12_20_28| APSK128| APSK256 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:MODulation?') return Conversions.str_to_scalar_enum(response, enums.DvbS2Xmodulation)
[docs] def set_modulation(self, modulation: enums.DvbS2Xmodulation) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:MODulation \n Snippet: driver.source.bb.dvb.dvbx.set_modulation(modulation = enums.DvbS2Xmodulation.APSK128) \n Selects the modulation scheme. \n :param modulation: QPSK| APSK16| APSK32| PSK8| P2BPsk| APSK16_8_8| APSK32_4_12_16R| APSK64_8_16_20_20| APSK8_2_4_2| APSK32_4_8_4_16| APSK64_16_16_16_16| APSK64_4_12_20_28| APSK128| APSK256 """ param = Conversions.enum_scalar_to_str(modulation, enums.DvbS2Xmodulation) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:MODulation {param}')
[docs] def get_no_settings(self) -> int: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:NOSettings \n Snippet: value: int = driver.source.bb.dvb.dvbx.get_no_settings() \n Sets the number of PLSCODEs that can be configured. \n :return: settings: integer Range: 1 to 100 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:NOSettings?') return Conversions.str_to_int(response)
[docs] def set_no_settings(self, settings: int) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:NOSettings \n Snippet: driver.source.bb.dvb.dvbx.set_no_settings(settings = 1) \n Sets the number of PLSCODEs that can be configured. \n :param settings: integer Range: 1 to 100 """ param = Conversions.decimal_value_to_str(settings) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:NOSettings {param}')
[docs] def get_sfactor(self) -> int: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:SFACtor \n Snippet: value: int = driver.source.bb.dvb.dvbx.get_sfactor() \n Sets the spreading factor. \n :return: sfactor: integer Range: 1 to 2 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:SFACtor?') return Conversions.str_to_int(response)
[docs] def set_sfactor(self, sfactor: int) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:SFACtor \n Snippet: driver.source.bb.dvb.dvbx.set_sfactor(sfactor = 1) \n Sets the spreading factor. \n :param sfactor: integer Range: 1 to 2 """ param = Conversions.decimal_value_to_str(sfactor) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:SFACtor {param}')
[docs] def get_sframes(self) -> int: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:SFRames \n Snippet: value: int = driver.source.bb.dvb.dvbx.get_sframes() \n For DVB-S2X standard, sets the number of the transmitted super frames. \n :return: super_frames: integer Range: 1 to 3263 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:SFRames?') return Conversions.str_to_int(response)
[docs] def set_sframes(self, super_frames: int) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:SFRames \n Snippet: driver.source.bb.dvb.dvbx.set_sframes(super_frames = 1) \n For DVB-S2X standard, sets the number of the transmitted super frames. \n :param super_frames: integer Range: 1 to 3263 """ param = Conversions.decimal_value_to_str(super_frames) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:SFRames {param}')
[docs] def get_ssequence(self) -> int: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:SSEQuence \n Snippet: value: int = driver.source.bb.dvb.dvbx.get_ssequence() \n Sets the scrambling sequence for scrambling physical layer data. \n :return: ssequence: integer Range: 0 to 6 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:SSEQuence?') return Conversions.str_to_int(response)
[docs] def set_ssequence(self, ssequence: int) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:SSEQuence \n Snippet: driver.source.bb.dvb.dvbx.set_ssequence(ssequence = 1) \n Sets the scrambling sequence for scrambling physical layer data. \n :param ssequence: integer Range: 0 to 6 """ param = Conversions.decimal_value_to_str(ssequence) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:SSEQuence {param}')
# noinspection PyTypeChecker
[docs] def get_stype(self) -> enums.DvbS2XstmType: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:STYPe \n Snippet: value: enums.DvbS2XstmType = driver.source.bb.dvb.dvbx.get_stype() \n Selects the input stream type. \n :return: stype: TRANsport| GP| GC| GHEM """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:STYPe?') return Conversions.str_to_scalar_enum(response, enums.DvbS2XstmType)
[docs] def set_stype(self, stype: enums.DvbS2XstmType) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:STYPe \n Snippet: driver.source.bb.dvb.dvbx.set_stype(stype = enums.DvbS2XstmType.GC) \n Selects the input stream type. \n :param stype: TRANsport| GP| GC| GHEM """ param = Conversions.enum_scalar_to_str(stype, enums.DvbS2XstmType) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:STYPe {param}')
[docs] def get_vs_mode(self) -> bool: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:VSMode \n Snippet: value: bool = driver.source.bb.dvb.dvbx.get_vs_mode() \n Includes the VL-SNR (very low - signal to noise ratio) header in the physical layer frame. \n :return: vs_mode: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:VSMode?') return Conversions.str_to_bool(response)
[docs] def set_vs_mode(self, vs_mode: bool) -> None: """SCPI: [SOURce<HW>]:BB:DVB:DVBX:VSMode \n Snippet: driver.source.bb.dvb.dvbx.set_vs_mode(vs_mode = False) \n Includes the VL-SNR (very low - signal to noise ratio) header in the physical layer frame. \n :param vs_mode: 1| ON| 0| OFF """ param = Conversions.bool_to_str(vs_mode) self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:VSMode {param}')
def clone(self) -> 'DvbxCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = DvbxCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group