[docs]defget_link(self)->enums.UpDownDirection:"""SCPI: [SOURce<HW>]:BB:EUTRa:LINK \n Snippet: value: enums.UpDownDirection = driver.source.bb.eutra.get_link() \n Sets the transmission direction. \n :return: link: UP| DOWN """response=self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:LINK?')returnConversions.str_to_scalar_enum(response,enums.UpDownDirection)
[docs]defset_link(self,link:enums.UpDownDirection)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:LINK \n Snippet: driver.source.bb.eutra.set_link(link = enums.UpDownDirection.DOWN) \n Sets the transmission direction. \n :param link: UP| DOWN """param=Conversions.enum_scalar_to_str(link,enums.UpDownDirection)self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:LINK {param}')
[docs]defpreset(self)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:PRESet \n Snippet: driver.source.bb.eutra.preset() \n Sets the parameters of the digital standard to their default values (*RST values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:EUTRa:STATe. \n """self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:PRESet')
[docs]defpreset_with_opc(self,opc_timeout_ms:int=-1)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:PRESet \n Snippet: driver.source.bb.eutra.preset_with_opc() \n Sets the parameters of the digital standard to their default values (*RST values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:EUTRa:STATe. \n Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call."""self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:EUTRa:PRESet',opc_timeout_ms)
[docs]defget_slength(self)->int:"""SCPI: [SOURce<HW>]:BB:EUTRa:SLENgth \n Snippet: value: int = driver.source.bb.eutra.get_slength() \n Sets the sequence length of the signal in number of frames. The signal is calculated in advance and output in the arbitrary waveform generator. The maximum number of frames is calculated as follows: Max. No. of Frames = Arbitrary waveform memory size/(sampling rate x 10 ms) . \n :return: slength: integer Range: 1 to dynamic """response=self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:SLENgth?')returnConversions.str_to_int(response)
[docs]defset_slength(self,slength:int)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:SLENgth \n Snippet: driver.source.bb.eutra.set_slength(slength = 1) \n Sets the sequence length of the signal in number of frames. The signal is calculated in advance and output in the arbitrary waveform generator. The maximum number of frames is calculated as follows: Max. No. of Frames = Arbitrary waveform memory size/(sampling rate x 10 ms) . \n :param slength: integer Range: 1 to dynamic """param=Conversions.decimal_value_to_str(slength)self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:SLENgth {param}')
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:BB:EUTRa:STATe \n Snippet: value: bool = driver.source.bb.eutra.get_state() \n Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path. \n :return: state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:STATe \n Snippet: driver.source.bb.eutra.set_state(state = False) \n Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path. \n :param state: 1| ON| 0| OFF """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:STATe {param}')
# noinspection PyTypeChecker
[docs]defget_std_mode(self)->enums.EutraStdMode:"""SCPI: [SOURce<HW>]:BB:EUTRa:STDMode \n Snippet: value: enums.EutraStdMode = driver.source.bb.eutra.get_std_mode() \n Sets the supported 3GPP standard. \n :return: standard_mode: LTE| IOT| LIOT LTE Standalone LTE mode. IoT-specific commands containing the keywords EMTC or NIOT are discarded. IOT Standalone IoT mode. The commands related to LTE-specific features like carrier aggregation or MBSFN are discarded. LIOT Mixed LTE and IoT configuration, for example for interoperability tests. """response=self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:STDMode?')returnConversions.str_to_scalar_enum(response,enums.EutraStdMode)
[docs]defset_std_mode(self,standard_mode:enums.EutraStdMode)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:STDMode \n Snippet: driver.source.bb.eutra.set_std_mode(standard_mode = enums.EutraStdMode.IOT) \n Sets the supported 3GPP standard. \n :param standard_mode: LTE| IOT| LIOT LTE Standalone LTE mode. IoT-specific commands containing the keywords EMTC or NIOT are discarded. IOT Standalone IoT mode. The commands related to LTE-specific features like carrier aggregation or MBSFN are discarded. LIOT Mixed LTE and IoT configuration, for example for interoperability tests. """param=Conversions.enum_scalar_to_str(standard_mode,enums.EutraStdMode)self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:STDMode {param}')
[docs]defget_suslen(self)->int:"""SCPI: [SOURce<HW>]:BB:EUTRa:SUSLen \n Snippet: value: int = driver.source.bb.eutra.get_suslen() \n Sets the sequence length of the signal in number of subframes. The signal is calculated in advance and output in the arbitrary waveform generator. \n :return: sub_len: integer Range: 1 to 1E5 """response=self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:SUSLen?')returnConversions.str_to_int(response)
[docs]defset_suslen(self,sub_len:int)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:SUSLen \n Snippet: driver.source.bb.eutra.set_suslen(sub_len = 1) \n Sets the sequence length of the signal in number of subframes. The signal is calculated in advance and output in the arbitrary waveform generator. \n :param sub_len: integer Range: 1 to 1E5 """param=Conversions.decimal_value_to_str(sub_len)self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:SUSLen {param}')
[docs]defget_version(self)->str:"""SCPI: [SOURce]:BB:EUTRa:VERSion \n Snippet: value: str = driver.source.bb.eutra.get_version() \n Queries the version of the 3GPP standard underlying the definitions. \n :return: version: string """response=self._core.io.query_str('SOURce:BB:EUTRa:VERSion?')returntrim_str_response(response)
defclone(self)->'EutraCls':"""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=EutraCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group