from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class DetailsCls:
"""Details commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("details", core, parent)
[docs]
def get_albs(self) -> bool:
"""SCPI: SCENario:OUTPut:ARB:DETails:ALBS \n
Snippet: value: bool = driver.scenario.output.arb.details.get_albs() \n
Enables you to calculate the antenna attenuation for each sample. Otherwise a lookup at center position is used. \n
:return: albs: ON| OFF| 1| 0
"""
response = self._core.io.query_str('SCENario:OUTPut:ARB:DETails:ALBS?')
return Conversions.str_to_bool(response)
[docs]
def set_albs(self, albs: bool) -> None:
"""SCPI: SCENario:OUTPut:ARB:DETails:ALBS \n
Snippet: driver.scenario.output.arb.details.set_albs(albs = False) \n
Enables you to calculate the antenna attenuation for each sample. Otherwise a lookup at center position is used. \n
:param albs: ON| OFF| 1| 0
"""
param = Conversions.bool_to_str(albs)
self._core.io.write(f'SCENario:OUTPut:ARB:DETails:ALBS {param}')
[docs]
def get_truncate(self) -> bool:
"""SCPI: SCENario:OUTPut:ARB:DETails:TRUNcate \n
Snippet: value: bool = driver.scenario.output.arb.details.get_truncate() \n
Enables signal truncation. If enabled, the calculation process allows truncated signals at the end of the signal duration,
for example, only a fraction of a pulse if the time ends within the last pulse. \n
:return: truncate: ON| OFF| 1| 0
"""
response = self._core.io.query_str('SCENario:OUTPut:ARB:DETails:TRUNcate?')
return Conversions.str_to_bool(response)
[docs]
def set_truncate(self, truncate: bool) -> None:
"""SCPI: SCENario:OUTPut:ARB:DETails:TRUNcate \n
Snippet: driver.scenario.output.arb.details.set_truncate(truncate = False) \n
Enables signal truncation. If enabled, the calculation process allows truncated signals at the end of the signal duration,
for example, only a fraction of a pulse if the time ends within the last pulse. \n
:param truncate: ON| OFF| 1| 0
"""
param = Conversions.bool_to_str(truncate)
self._core.io.write(f'SCENario:OUTPut:ARB:DETails:TRUNcate {param}')