from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class OsStopCls:
"""OsStop commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("osStop", core, parent)
[docs]
def set(self, offset_start: float, offset_stop: float) -> None:
"""SCPI: TRIGger:GPRF:MEASurement<Instance>:FFTSanalyzer:OSSTop \n
Snippet: driver.trigger.gprf.measurement.fftSpecAn.osStop.set(offset_start = 1.0, offset_stop = 1.0) \n
Defines the start and stop values for the trigger-offset mode VARiable. The start value must be smaller than the stop
value. \n
:param offset_start: No help available
:param offset_stop: No help available
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('offset_start', offset_start, DataType.Float), ArgSingle('offset_stop', offset_stop, DataType.Float))
self._core.io.write(f'TRIGger:GPRF:MEASurement<Instance>:FFTSanalyzer:OSSTop {param}'.rstrip())
# noinspection PyTypeChecker
[docs]
class OsStopStruct(StructBase):
"""Response structure. Fields: \n
- Offset_Start: float: No parameter help available
- Offset_Stop: float: No parameter help available"""
__meta_args_list = [
ArgStruct.scalar_float('Offset_Start'),
ArgStruct.scalar_float('Offset_Stop')]
def __init__(self):
StructBase.__init__(self, self)
self.Offset_Start: float = None
self.Offset_Stop: float = None
[docs]
def get(self) -> OsStopStruct:
"""SCPI: TRIGger:GPRF:MEASurement<Instance>:FFTSanalyzer:OSSTop \n
Snippet: value: OsStopStruct = driver.trigger.gprf.measurement.fftSpecAn.osStop.get() \n
Defines the start and stop values for the trigger-offset mode VARiable. The start value must be smaller than the stop
value. \n
:return: structure: for return value, see the help for OsStopStruct structure arguments."""
return self._core.io.query_struct(f'TRIGger:GPRF:MEASurement<Instance>:FFTSanalyzer:OSSTop?', self.__class__.OsStopStruct())