from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ConnectorCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("connector", core, parent)
[docs]
def set(self, conn_type: enums.InputConnectorB) -> None:
"""
``INPut:CONNector`` \n
Snippet: ``driver.applications.k91Wlan.inputPy.connector.set(conn_type = enums.InputConnectorB.AIQI)`` \n
Determines which connector the input for the measurement is taken from. For more information, see 'Receiving Data Input
and Providing Data Output'. If an external frontend is active, the connector is automatically set to RF.
:param conn_type: RF RF input connector AIQI Analog Baseband I connector This setting is only available if the 'Analog Baseband' interface is installed and active for input. It is not available for the FSW67 or FSW85. For more information on the 'Analog Baseband' interface, see the FSW I/Q Analyzer and I/Q Input User Manual. RFPRobe Active RF probe
"""
param = Conversions.enum_scalar_to_str(conn_type, enums.InputConnectorB)
self._core.io.write(f'INPut:CONNector {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.InputConnectorB:
"""
``INPut:CONNector`` \n
Snippet: ``value: enums.InputConnectorB = driver.applications.k91Wlan.inputPy.connector.get()`` \n
Determines which connector the input for the measurement is taken from. For more information, see 'Receiving Data Input
and Providing Data Output'. If an external frontend is active, the connector is automatically set to RF.
:return: conn_type: RF RF input connector AIQI Analog Baseband I connector This setting is only available if the 'Analog Baseband' interface is installed and active for input. It is not available for the FSW67 or FSW85. For more information on the 'Analog Baseband' interface, see the FSW I/Q Analyzer and I/Q Input User Manual. RFPRobe Active RF probe
"""
response = self._core.io.query_str(f'INPut:CONNector?')
return Conversions.str_to_scalar_enum(response, enums.InputConnectorB)