from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class MultiEvalCls:
"""MultiEval commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("multiEval", core, parent)
[docs]
def get_threshold(self) -> float or bool:
"""SCPI: TRIGger:BLUetooth:MEASurement<Instance>:MEValuation:THReshold \n
Snippet: value: float or bool = driver.trigger.multiEval.get_threshold() \n
Defines the trigger threshold for the power trigger. \n
:return: power: (float or boolean) numeric Range: -50 dB to 0 dB, Unit: dB (full scale, i.e. relative to reference level minus external attenuation)
"""
response = self._core.io.query_str('TRIGger:BLUetooth:MEASurement<Instance>:MEValuation:THReshold?')
return Conversions.str_to_float_or_bool(response)
[docs]
def set_threshold(self, power: float or bool) -> None:
"""SCPI: TRIGger:BLUetooth:MEASurement<Instance>:MEValuation:THReshold \n
Snippet: driver.trigger.multiEval.set_threshold(power = 1.0) \n
Defines the trigger threshold for the power trigger. \n
:param power: (float or boolean) numeric Range: -50 dB to 0 dB, Unit: dB (full scale, i.e. relative to reference level minus external attenuation)
"""
param = Conversions.decimal_or_bool_value_to_str(power)
self._core.io.write(f'TRIGger:BLUetooth:MEASurement<Instance>:MEValuation:THReshold {param}')
[docs]
def get_timeout(self) -> float or bool:
"""SCPI: TRIGger:BLUetooth:MEASurement<Instance>:MEValuation:TOUT \n
Snippet: value: float or bool = driver.trigger.multiEval.get_timeout() \n
Selects the maximum time that the measurement waits for a trigger event before it stops in remote control mode or
indicates a trigger timeout in manual operation mode. \n
:return: trigger_timeout: (float or boolean) numeric | ON | OFF Range: 0.01 s to 167772.15 s Additional parameters: OFF | ON (disables timeout | enables timeout using the previous/default values) .
"""
response = self._core.io.query_str('TRIGger:BLUetooth:MEASurement<Instance>:MEValuation:TOUT?')
return Conversions.str_to_float_or_bool(response)
[docs]
def set_timeout(self, trigger_timeout: float or bool) -> None:
"""SCPI: TRIGger:BLUetooth:MEASurement<Instance>:MEValuation:TOUT \n
Snippet: driver.trigger.multiEval.set_timeout(trigger_timeout = 1.0) \n
Selects the maximum time that the measurement waits for a trigger event before it stops in remote control mode or
indicates a trigger timeout in manual operation mode. \n
:param trigger_timeout: (float or boolean) numeric | ON | OFF Range: 0.01 s to 167772.15 s Additional parameters: OFF | ON (disables timeout | enables timeout using the previous/default values) .
"""
param = Conversions.decimal_or_bool_value_to_str(trigger_timeout)
self._core.io.write(f'TRIGger:BLUetooth:MEASurement<Instance>:MEValuation:TOUT {param}')