from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SegmentedCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("segmented", core, parent)
[docs]
def get_state(self) -> bool:
"""
``ACQuire:SEGMented:STATe`` \n
Snippet: ``value: bool = driver.acquire.segmented.get_state()`` \n
Switches the fast segmentation mode on and off.
:return: state: OFF | ON
"""
response = self._core.io.query_str_with_opc('ACQuire:SEGMented:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``ACQuire:SEGMented:STATe`` \n
Snippet: ``driver.acquire.segmented.set_state(state = False)`` \n
Switches the fast segmentation mode on and off.
:param state: OFF | ON
"""
param = Conversions.bool_to_str(state)
self._core.io.write_with_opc(f'ACQuire:SEGMented:STATe {param}')
[docs]
def get_auto_replay(self) -> bool:
"""
``ACQuire:SEGMented:AUToreplay`` \n
Snippet: ``value: bool = driver.acquire.segmented.get_auto_replay()`` \n
If enabled, the instrument starts processing and displaying the data as soon as the acquisition series is captured
completely. Depending on the number of acquisitions, it may take some time until the acquisition series is displayed. If
the setting is disabled, the instrument only captures the data and stores it in the sample memory.
"""
response = self._core.io.query_str_with_opc('ACQuire:SEGMented:AUToreplay?')
return Conversions.str_to_bool(response)
[docs]
def set_auto_replay(self, enab_rply_aft_acq: bool) -> None:
"""
``ACQuire:SEGMented:AUToreplay`` \n
Snippet: ``driver.acquire.segmented.set_auto_replay(enab_rply_aft_acq = False)`` \n
If enabled, the instrument starts processing and displaying the data as soon as the acquisition series is captured
completely. Depending on the number of acquisitions, it may take some time until the acquisition series is displayed. If
the setting is disabled, the instrument only captures the data and stores it in the sample memory.
:param enab_rply_aft_acq: OFF | ON
"""
param = Conversions.bool_to_str(enab_rply_aft_acq)
self._core.io.write_with_opc(f'ACQuire:SEGMented:AUToreplay {param}')
[docs]
def get_max(self) -> bool:
"""
``ACQuire:SEGMented:MAX`` \n
Snippet: ``value: bool = driver.acquire.segmented.get_max()`` \n
The number of acquisitions in a fast segmentation acquisition series depends on the record length.
"""
response = self._core.io.query_str_with_opc('ACQuire:SEGMented:MAX?')
return Conversions.str_to_bool(response)
[docs]
def set_max(self, max_acqs: bool) -> None:
"""
``ACQuire:SEGMented:MAX`` \n
Snippet: ``driver.acquire.segmented.set_max(max_acqs = False)`` \n
The number of acquisitions in a fast segmentation acquisition series depends on the record length.
:param max_acqs: OFF | ON \n
- ON: Acquires the maximum possible number of acquisitions in a series.
- OFF: Acquires the number of acquisitions defined using ACQuire:COUNt.
"""
param = Conversions.bool_to_str(max_acqs)
self._core.io.write_with_opc(f'ACQuire:SEGMented:MAX {param}')