Source code for RsAreg800.Implementations.Source.AreGenerator.Frontend.Trx.TypePy

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class TypePyCls: """TypePy commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("typePy", core, parent) # noinspection PyTypeChecker
[docs] def get(self, trxFrontent=repcap.TrxFrontent.Default) -> enums.AregFeType: """SCPI: [SOURce<HW>]:AREGenerator:FRONtend:TRX<CH>:TYPE \n Snippet: value: enums.AregFeType = driver.source.areGenerator.frontend.trx.typePy.get(trxFrontent = repcap.TrxFrontent.Default) \n Queries the type of the connected frontend. \n :param trxFrontent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trx') :return: frontend_type: TRX| QAT| NONE| FE| CFE TRX A TRX-type frontend is connected. QAT A QAT-type frontend is connected. NONE No frontend is connected. FE An FE-type frontend is connected. CFE A custom frontend is connected.""" trxFrontent_cmd_val = self._cmd_group.get_repcap_cmd_value(trxFrontent, repcap.TrxFrontent) response = self._core.io.query_str(f'SOURce<HwInstance>:AREGenerator:FRONtend:TRX{trxFrontent_cmd_val}:TYPE?') return Conversions.str_to_scalar_enum(response, enums.AregFeType)