Source code for RsFsw.Implementations.Applications.K91_Wlan.Sense.Power.Achannel.Reference.TxChannel.Auto

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AutoCls: """Auto commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("auto", core, parent)
[docs] def set(self, ref_channel: enums.RefChannel) -> None: """SCPI: [SENSe]:POWer:ACHannel:REFerence:TXCHannel:AUTO \n Snippet: driver.applications.k91Wlan.sense.power.achannel.reference.txChannel.auto.set(ref_channel = enums.RefChannel.LHIGhest) \n Selects the reference channel for relative measurements. You need at least one channel for the command to work. \n :param ref_channel: MINimum | MAXimum | LHIGhest MINimum Transmission channel with the lowest power MAXimum Transmission channel with the highest power LHIGhest Lowest transmission channel for lower adjacent channels and highest transmission channel for upper adjacent channels """ param = Conversions.enum_scalar_to_str(ref_channel, enums.RefChannel) self._core.io.write(f'SENSe:POWer:ACHannel:REFerence:TXCHannel:AUTO {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.RefChannel: """SCPI: [SENSe]:POWer:ACHannel:REFerence:TXCHannel:AUTO \n Snippet: value: enums.RefChannel = driver.applications.k91Wlan.sense.power.achannel.reference.txChannel.auto.get() \n Selects the reference channel for relative measurements. You need at least one channel for the command to work. \n :return: ref_channel: MINimum | MAXimum | LHIGhest MINimum Transmission channel with the lowest power MAXimum Transmission channel with the highest power LHIGhest Lowest transmission channel for lower adjacent channels and highest transmission channel for upper adjacent channels""" response = self._core.io.query_str(f'SENSe:POWer:ACHannel:REFerence:TXCHannel:AUTO?') return Conversions.str_to_scalar_enum(response, enums.RefChannel)