from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LcaptureCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("lcapture", core, parent)
[docs]
def set(self, state: bool) -> None:
"""
``[SENSe]:SWEep:LCAPture`` \n
Snippet: ``driver.applications.k14Xnr5G.sense.sweep.lcapture.set(state = False)`` \n
Turns the long capture on and off.
Prerequisites for this command \n
- Number of component carriers must be '1' (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.noCc.set()`` ) .
- Turn off segmented capture (method ``RsFsw.applications.k14Xnr5G.sense.sweep.scapture.state.set()`` ) .
- Multi frame configuration is not supported. Every frame must have the same configuration.
Effects of this command \n
- Frame count functions become unavailable: method ``RsFsw.applications.k14Xnr5G.sense.nr5G.frame.count.set()`` method ``RsFsw.applications.k14Xnr5G.sense.nr5G.frame.count.auto.set()``
- method ``RsFsw.applications.k14Xnr5G.sense.nr5G.frame.count.state.set()``
:param state: ON | OFF | 1 | 0
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SENSe:SWEep:LCAPture {param}')
[docs]
def get(self) -> bool:
"""
``[SENSe]:SWEep:LCAPture`` \n
Snippet: ``value: bool = driver.applications.k14Xnr5G.sense.sweep.lcapture.get()`` \n
Turns the long capture on and off.
Prerequisites for this command \n
- Number of component carriers must be '1' (method ``RsFsw.applications.k14Xnr5G.configure.nr5G.noCc.set()`` ) .
- Turn off segmented capture (method ``RsFsw.applications.k14Xnr5G.sense.sweep.scapture.state.set()`` ) .
- Multi frame configuration is not supported. Every frame must have the same configuration.
Effects of this command \n
- Frame count functions become unavailable: method ``RsFsw.applications.k14Xnr5G.sense.nr5G.frame.count.set()`` method ``RsFsw.applications.k14Xnr5G.sense.nr5G.frame.count.auto.set()``
- method ``RsFsw.applications.k14Xnr5G.sense.nr5G.frame.count.state.set()``
:return: state: ON | OFF | 1 | 0
"""
response = self._core.io.query_str(f'SENSe:SWEep:LCAPture?')
return Conversions.str_to_bool(response)