Source code for RsCmwBluetoothMeas.Implementations.MultiEval.Trace.Sacp.Maximum

from typing import List

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.ArgSingleSuppressed import ArgSingleSuppressed
from .....Internal.Types import DataType


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class MaximumCls: """Maximum commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("maximum", core, parent)
[docs] def read(self) -> List[float]: """SCPI: READ:BLUetooth:MEASurement<Instance>:MEValuation:TRACe:SACP:MAXimum \n Snippet: value: List[float] = driver.multiEval.trace.sacp.maximum.read() \n INTRO_CMD_HELP: Returns the current, average and maximum values of the 'Spectrum ACP' traces for BR and LE packets. The number of returned values depends on the current burst type. \n - For BR bursts, the trace returns 79 values.The number of valid ACP results depends on the ACP measurement mode (method RsCmwBluetoothMeas.Configure.MultiEval.Sacp.Brate.Measurement.mode) : Table Header: \n - In CH21 mode ('ACP +/- 10 Channels') , the first 21 ACP values contain results for the relative channels –10, ..., 0, ..., +10; the remaining 58 values are not displayed. - In CH79 mode ('ACP 79 Channels') , valid ACP values are available for all 79 Bluetooth channels (2402 MHz, 2403 MHz, ..., 2480 MHz) - For LE bursts, the trace returns 81 values.The number of valid ACP results depends on the ACP measurement mode (method RsCmwBluetoothMeas.Configure.MultiEval.Sacp.LowEnergy.Le2M.Measurement.mode) : Table Header: \n - In CH10 mode ('ACP +/- 5 Channels') , the first 21 ACP values contain results for the 1 MHz channels centered at fTX – 10 MHz, fTX – 9 MHz, ..., fTX + 10 MHz. The remaining 58 values are invalid (NAV) . This mode is applicable to all types of LE bursts. - In CH40 mode ('LE All Channels') , ACP values 1 to 81 contain results for the 1 MHz channels centered at 2401 MHz, 2402 MHz, ..., 2481 MHz This mode is only applicable to test packets using LE 1M PHY or LE 2M PHY. \n Use RsCmwBluetoothMeas.reliability.last_value to read the updated reliability indicator. \n :return: acp: float 79 ACP values for BR, 81 ACP values for LE Range: -99.99 dBm to 99.99 dBm""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'READ:BLUetooth:MEASurement<Instance>:MEValuation:TRACe:SACP:MAXimum?', suppressed) return response
[docs] def fetch(self) -> List[float]: """SCPI: FETCh:BLUetooth:MEASurement<Instance>:MEValuation:TRACe:SACP:MAXimum \n Snippet: value: List[float] = driver.multiEval.trace.sacp.maximum.fetch() \n INTRO_CMD_HELP: Returns the current, average and maximum values of the 'Spectrum ACP' traces for BR and LE packets. The number of returned values depends on the current burst type. \n - For BR bursts, the trace returns 79 values.The number of valid ACP results depends on the ACP measurement mode (method RsCmwBluetoothMeas.Configure.MultiEval.Sacp.Brate.Measurement.mode) : Table Header: \n - In CH21 mode ('ACP +/- 10 Channels') , the first 21 ACP values contain results for the relative channels –10, ..., 0, ..., +10; the remaining 58 values are not displayed. - In CH79 mode ('ACP 79 Channels') , valid ACP values are available for all 79 Bluetooth channels (2402 MHz, 2403 MHz, ..., 2480 MHz) - For LE bursts, the trace returns 81 values.The number of valid ACP results depends on the ACP measurement mode (method RsCmwBluetoothMeas.Configure.MultiEval.Sacp.LowEnergy.Le2M.Measurement.mode) : Table Header: \n - In CH10 mode ('ACP +/- 5 Channels') , the first 21 ACP values contain results for the 1 MHz channels centered at fTX – 10 MHz, fTX – 9 MHz, ..., fTX + 10 MHz. The remaining 58 values are invalid (NAV) . This mode is applicable to all types of LE bursts. - In CH40 mode ('LE All Channels') , ACP values 1 to 81 contain results for the 1 MHz channels centered at 2401 MHz, 2402 MHz, ..., 2481 MHz This mode is only applicable to test packets using LE 1M PHY or LE 2M PHY. \n Use RsCmwBluetoothMeas.reliability.last_value to read the updated reliability indicator. \n :return: acp: float 79 ACP values for BR, 81 ACP values for LE Range: -99.99 dBm to 99.99 dBm""" suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability') response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'FETCh:BLUetooth:MEASurement<Instance>:MEValuation:TRACe:SACP:MAXimum?', suppressed) return response