Source code for RsCma.Implementations.Display.GprfMeasurement.Spectrum.Trace

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TraceCls: """Trace commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("trace", core, parent)
[docs] def set(self, trace_enable: bool, trace: enums.Statistic = None) -> None: """SCPI: DISPlay:GPRF:MEASurement<Instance>:SPECtrum:TRACe \n Snippet: driver.display.gprfMeasurement.spectrum.trace.set(trace_enable = False, trace = enums.Statistic.AVERage) \n Selects which traces are displayed on the 'Spectrum Analyzer' tab. \n :param trace_enable: OFF | ON Disables or enables the trace selected via Trace :param trace: CURRent | AVERage | MAXimum | MINimum Selects the trace to be enabled/disabled To enable or disable all traces, omit the parameter. """ param = ArgSingleList().compose_cmd_string(ArgSingle('trace_enable', trace_enable, DataType.Boolean), ArgSingle('trace', trace, DataType.Enum, enums.Statistic, is_optional=True)) self._core.io.write(f'DISPlay:GPRF:MEASurement<Instance>:SPECtrum:TRACe {param}'.rstrip())