from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RtfCls:
"""
| Commands in total: 10
| Subgroups: 0
| Direct child commands: 10
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("rtf", core, parent)
# noinspection PyTypeChecker
[docs]
def get_ack_definition(self) -> enums.LowHigh:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:ACKDefinition`` \n
Snippet: ``value: enums.LowHigh = driver.source.bb.eutra.tcw.rtf.get_ack_definition()`` \n
Determines whether a high or a low binary level on the feedback line connector represents an ACK.
:return: ack_definition: LOW | HIGH
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:ACKDefinition?')
return Conversions.str_to_scalar_enum(response, enums.LowHigh)
[docs]
def set_ack_definition(self, ack_definition: enums.LowHigh) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:ACKDefinition`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_ack_definition(ack_definition = enums.LowHigh.HIGH)`` \n
Determines whether a high or a low binary level on the feedback line connector represents an ACK.
:param ack_definition: LOW | HIGH
"""
param = Conversions.enum_scalar_to_str(ack_definition, enums.LowHigh)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:ACKDefinition {param}')
[docs]
def get_aus_delay(self) -> float:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:AUSDelay`` \n
Snippet: ``value: float = driver.source.bb.eutra.tcw.rtf.get_aus_delay()`` \n
Determines the point in time when the feedback can be sent to the instrument.
:return: add_user_delay: float Range: -1 to 2.99
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:AUSDelay?')
return Conversions.str_to_float(response)
[docs]
def set_aus_delay(self, add_user_delay: float) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:AUSDelay`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_aus_delay(add_user_delay = 1.0)`` \n
Determines the point in time when the feedback can be sent to the instrument.
:param add_user_delay: float Range: -1 to 2.99
"""
param = Conversions.decimal_value_to_str(add_user_delay)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:AUSDelay {param}')
[docs]
def get_bb_smue(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:BBSMue`` \n
Snippet: ``value: int = driver.source.bb.eutra.tcw.rtf.get_bb_smue()`` \n
This parameter is required for multiplexing serial commands for different baseband units to one feedback line.
If the selector n is configured in the GUI for a specific baseband unit, the baseband unit will listen only to serial
commands containing the selector n.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:BBSMue?')
return Conversions.str_to_int(response)
[docs]
def set_bb_smue(self, bb_select_mov_ue: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:BBSMue`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_bb_smue(bb_select_mov_ue = 1)`` \n
This parameter is required for multiplexing serial commands for different baseband units to one feedback line.
If the selector n is configured in the GUI for a specific baseband unit, the baseband unit will listen only to serial
commands containing the selector n.
:param bb_select_mov_ue: integer Range: 0 to 3
"""
param = Conversions.decimal_value_to_str(bb_select_mov_ue)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:BBSMue {param}')
[docs]
def get_bb_ssue(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:BBSSue`` \n
Snippet: ``value: int = driver.source.bb.eutra.tcw.rtf.get_bb_ssue()`` \n
This parameter is required for multiplexing serial commands for different baseband units to one feedback line.
If the selector n is configured in the GUI for a specific baseband unit, the baseband unit will listen only to serial
commands containing the selector n.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:BBSSue?')
return Conversions.str_to_int(response)
[docs]
def set_bb_ssue(self, bb_select_stat_ue: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:BBSSue`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_bb_ssue(bb_select_stat_ue = 1)`` \n
This parameter is required for multiplexing serial commands for different baseband units to one feedback line.
If the selector n is configured in the GUI for a specific baseband unit, the baseband unit will listen only to serial
commands containing the selector n.
:param bb_select_stat_ue: integer Range: 0 to 3
"""
param = Conversions.decimal_value_to_str(bb_select_stat_ue)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:BBSSue {param}')
[docs]
def get_bb_selector(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:BBSelector`` \n
Snippet: ``value: int = driver.source.bb.eutra.tcw.rtf.get_bb_selector()`` \n
This parameter is required for multiplexing serial commands for different baseband units to one feedback line.
If the selector n is configured in the GUI for a specific baseband unit, the baseband unit will listen only to serial
commands containing the selector n.
:return: bb_selector: integer Range: 0 to 3
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:BBSelector?')
return Conversions.str_to_int(response)
[docs]
def set_bb_selector(self, bb_selector: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:BBSelector`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_bb_selector(bb_selector = 1)`` \n
This parameter is required for multiplexing serial commands for different baseband units to one feedback line.
If the selector n is configured in the GUI for a specific baseband unit, the baseband unit will listen only to serial
commands containing the selector n.
:param bb_selector: integer Range: 0 to 3
"""
param = Conversions.decimal_value_to_str(bb_selector)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:BBSelector {param}')
# noinspection PyTypeChecker
[docs]
def get_conmue(self) -> enums.EutraTcwConnector:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:CONMue`` \n
Snippet: ``value: enums.EutraTcwConnector = driver.source.bb.eutra.tcw.rtf.get_conmue()`` \n
Determines the feedback line connector.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:CONMue?')
return Conversions.str_to_scalar_enum(response, enums.EutraTcwConnector)
[docs]
def set_conmue(self, connector_mov_ue: enums.EutraTcwConnector) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:CONMue`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_conmue(connector_mov_ue = enums.EutraTcwConnector.GLOBal)`` \n
Determines the feedback line connector.
:param connector_mov_ue: NOFB | LOCal | GLOBal
"""
param = Conversions.enum_scalar_to_str(connector_mov_ue, enums.EutraTcwConnector)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:CONMue {param}')
# noinspection PyTypeChecker
[docs]
def get_connector(self) -> enums.EutraTcwConnector:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:CONNector`` \n
Snippet: ``value: enums.EutraTcwConnector = driver.source.bb.eutra.tcw.rtf.get_connector()`` \n
Determines the feedback line connector.
:return: connector: NOFB | LOCal | GLOBal
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:CONNector?')
return Conversions.str_to_scalar_enum(response, enums.EutraTcwConnector)
[docs]
def set_connector(self, connector: enums.EutraTcwConnector) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:CONNector`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_connector(connector = enums.EutraTcwConnector.GLOBal)`` \n
Determines the feedback line connector.
:param connector: NOFB | LOCal | GLOBal
"""
param = Conversions.enum_scalar_to_str(connector, enums.EutraTcwConnector)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:CONNector {param}')
# noinspection PyTypeChecker
[docs]
def get_consue(self) -> enums.EutraTcwConnector:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:CONSue`` \n
Snippet: ``value: enums.EutraTcwConnector = driver.source.bb.eutra.tcw.rtf.get_consue()`` \n
Determines the feedback line connector.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:CONSue?')
return Conversions.str_to_scalar_enum(response, enums.EutraTcwConnector)
[docs]
def set_consue(self, connector_stat_ue: enums.EutraTcwConnector) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:CONSue`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_consue(connector_stat_ue = enums.EutraTcwConnector.GLOBal)`` \n
Determines the feedback line connector.
:param connector_stat_ue: NOFB | LOCal | GLOBal
"""
param = Conversions.enum_scalar_to_str(connector_stat_ue, enums.EutraTcwConnector)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:CONSue {param}')
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.EutraTcwrtfMode:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:MODE`` \n
Snippet: ``value: enums.EutraTcwrtfMode = driver.source.bb.eutra.tcw.rtf.get_mode()`` \n
Determines the feedback mode.
:return: mode: SER3X8 | SER | BIN BIN Binary ACK/NACK SER Serial SER3X8 Serial 3x8
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:MODE?')
return Conversions.str_to_scalar_enum(response, enums.EutraTcwrtfMode)
[docs]
def set_mode(self, mode: enums.EutraTcwrtfMode) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:MODE`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_mode(mode = enums.EutraTcwrtfMode.BIN)`` \n
Determines the feedback mode.
:param mode: SER3X8 | SER | BIN BIN Binary ACK/NACK SER Serial SER3X8 Serial 3x8
"""
param = Conversions.enum_scalar_to_str(mode, enums.EutraTcwrtfMode)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:MODE {param}')
# noinspection PyTypeChecker
[docs]
def get_ser_rate(self) -> enums.EutraSerialRate:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:SERRate`` \n
Snippet: ``value: enums.EutraSerialRate = driver.source.bb.eutra.tcw.rtf.get_ser_rate()`` \n
Sets the bit rate of the serial transmission. Possible rates are 115.2 kbps, 1.6 Mbps and 1.92 Mbps.
:return: serial_rate: SR1_92M | SR1_6M | SR115_2K
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:TCW:RTF:SERRate?')
return Conversions.str_to_scalar_enum(response, enums.EutraSerialRate)
[docs]
def set_ser_rate(self, serial_rate: enums.EutraSerialRate) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:TCW:RTF:SERRate`` \n
Snippet: ``driver.source.bb.eutra.tcw.rtf.set_ser_rate(serial_rate = enums.EutraSerialRate.SR1_6M)`` \n
Sets the bit rate of the serial transmission. Possible rates are 115.2 kbps, 1.6 Mbps and 1.92 Mbps.
:param serial_rate: SR1_92M | SR1_6M | SR115_2K
"""
param = Conversions.enum_scalar_to_str(serial_rate, enums.EutraSerialRate)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:TCW:RTF:SERRate {param}')