from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LrWpanCls:
"""
| Commands in total: 380
| Subgroups: 13
| Direct child commands: 4
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("lrWpan", core, parent)
@property
def clipping(self):
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
if not hasattr(self, '_clipping'):
from .Clipping import ClippingCls
self._clipping = ClippingCls(self._core, self._cmd_group)
return self._clipping
@property
def clock(self):
"""
| Commands in total: 4
| Subgroups: 1
| Direct child commands: 3
"""
if not hasattr(self, '_clock'):
from .Clock import ClockCls
self._clock = ClockCls(self._core, self._cmd_group)
return self._clock
@property
def emlld(self):
"""
| Commands in total: 70
| Subgroups: 6
| Direct child commands: 8
"""
if not hasattr(self, '_emlld'):
from .Emlld import EmlldCls
self._emlld = EmlldCls(self._core, self._cmd_group)
return self._emlld
@property
def filterPy(self):
"""
| Commands in total: 16
| Subgroups: 1
| Direct child commands: 2
"""
if not hasattr(self, '_filterPy'):
from .FilterPy import FilterPyCls
self._filterPy = FilterPyCls(self._core, self._cmd_group)
return self._filterPy
@property
def huwb(self):
"""
| Commands in total: 77
| Subgroups: 6
| Direct child commands: 9
"""
if not hasattr(self, '_huwb'):
from .Huwb import HuwbCls
self._huwb = HuwbCls(self._core, self._cmd_group)
return self._huwb
@property
def impairments(self):
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
if not hasattr(self, '_impairments'):
from .Impairments import ImpairmentsCls
self._impairments = ImpairmentsCls(self._core, self._cmd_group)
return self._impairments
@property
def mms(self):
"""
| Commands in total: 33
| Subgroups: 5
| Direct child commands: 18
"""
if not hasattr(self, '_mms'):
from .Mms import MmsCls
self._mms = MmsCls(self._core, self._cmd_group)
return self._mms
@property
def oqpsk(self):
"""
| Commands in total: 67
| Subgroups: 6
| Direct child commands: 7
"""
if not hasattr(self, '_oqpsk'):
from .Oqpsk import OqpskCls
self._oqpsk = OqpskCls(self._core, self._cmd_group)
return self._oqpsk
@property
def sens(self):
"""
| Commands in total: 69
| Subgroups: 6
| Direct child commands: 14
"""
if not hasattr(self, '_sens'):
from .Sens import SensCls
self._sens = SensCls(self._core, self._cmd_group)
return self._sens
@property
def setting(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_setting'):
from .Setting import SettingCls
self._setting = SettingCls(self._core, self._cmd_group)
return self._setting
@property
def symbolRate(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_symbolRate'):
from .SymbolRate import SymbolRateCls
self._symbolRate = SymbolRateCls(self._core, self._cmd_group)
return self._symbolRate
@property
def trigger(self):
"""
| Commands in total: 30
| Subgroups: 7
| Direct child commands: 5
"""
if not hasattr(self, '_trigger'):
from .Trigger import TriggerCls
self._trigger = TriggerCls(self._core, self._cmd_group)
return self._trigger
@property
def waveform(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_waveform'):
from .Waveform import WaveformCls
self._waveform = WaveformCls(self._core, self._cmd_group)
return self._waveform
[docs]
def preset(self) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:PRESet`` \n
Snippet: ``driver.source.bb.lrWpan.preset()`` \n
Sets all parameters of the application to their default values. These values are the ``*RST`` values of the commands of
the application.
"""
self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:PRESet')
[docs]
def preset_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:PRESet`` \n
Snippet: ``driver.source.bb.lrWpan.preset_with_opc()`` \n
Sets all parameters of the application to their default values. These values are the ``*RST`` values of the commands of
the application.
Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:LRWPan:PRESet', opc_timeout_ms)
[docs]
def get_slength(self) -> int:
"""
``[SOURce<HW>]:BB:LRWPan:SLENgth`` \n
Snippet: ``value: int = driver.source.bb.lrWpan.get_slength()`` \n
Sets the sequence length of the signal in number of frames. The signal is calculated in advance and output in the
arbitrary waveform generator. The maximum number of frames is calculated as follows: Max. No. of Frames = Arbitrary
waveform memory size/(sampling rate x 10 ms) .
:return: slength: integer Range: 1 to 1024
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:SLENgth?')
return Conversions.str_to_int(response)
[docs]
def set_slength(self, slength: int) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:SLENgth`` \n
Snippet: ``driver.source.bb.lrWpan.set_slength(slength = 1)`` \n
Sets the sequence length of the signal in number of frames. The signal is calculated in advance and output in the
arbitrary waveform generator. The maximum number of frames is calculated as follows: Max. No. of Frames = Arbitrary
waveform memory size/(sampling rate x 10 ms) .
:param slength: integer Range: 1 to 1024
"""
param = Conversions.decimal_value_to_str(slength)
self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:SLENgth {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:LRWPan:STATe`` \n
Snippet: ``value: bool = driver.source.bb.lrWpan.get_state()`` \n
Enables the baseband signal application and disables all the other baseband signal applications in the same signal path.
:return: hrp_uwb_state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, hrp_uwb_state: bool) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:STATe`` \n
Snippet: ``driver.source.bb.lrWpan.set_state(hrp_uwb_state = False)`` \n
Enables the baseband signal application and disables all the other baseband signal applications in the same signal path.
:param hrp_uwb_state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(hrp_uwb_state)
self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:STATe {param}')
# noinspection PyTypeChecker
[docs]
def get_std(self) -> enums.HrpUwbMode:
"""
``[SOURce<HW>]:BB:LRWPan:STD`` \n
Snippet: ``value: enums.HrpUwbMode = driver.source.bb.lrWpan.get_std()`` \n
Sets the 802.15.4 mode.
:return: mode: NONHRP | BPRF | HPRF | OQPSK | MMS | EHPRF | SENS | SYNSFD NONHRP Enables HRP non-ERDEV mode. BPRF Enables HRP-ERDEV base pulse repetition frequency (BPRF) mode. HPRF Enables HRP-ERDEV higher pulse repetition frequency (HPRF) mode. OQPSK Requires R&S SMW-K180. Enables 802.15.4 with O-QPSK modulation mode. MMS Requires R&S SMW-K181. Enables multi-millisecond advanced ranging (MMS) mode. EHPRF Requires R&S SMW-K181. Enables enhanced modulation and low latency (EM+LLD) mode SENS Requires R&S SMW-K182. Enables sensing mode. SYNSFD Enables SYN+SFD mode. The SYN packet and the SFD packet without the DATA part is sent.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:STD?')
return Conversions.str_to_scalar_enum(response, enums.HrpUwbMode)
[docs]
def set_std(self, mode: enums.HrpUwbMode) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:STD`` \n
Snippet: ``driver.source.bb.lrWpan.set_std(mode = enums.HrpUwbMode.BPRF)`` \n
Sets the 802.15.4 mode.
:param mode: NONHRP | BPRF | HPRF | OQPSK | MMS | EHPRF | SENS | SYNSFD NONHRP Enables HRP non-ERDEV mode. BPRF Enables HRP-ERDEV base pulse repetition frequency (BPRF) mode. HPRF Enables HRP-ERDEV higher pulse repetition frequency (HPRF) mode. OQPSK Requires R&S SMW-K180. Enables 802.15.4 with O-QPSK modulation mode. MMS Requires R&S SMW-K181. Enables multi-millisecond advanced ranging (MMS) mode. EHPRF Requires R&S SMW-K181. Enables enhanced modulation and low latency (EM+LLD) mode SENS Requires R&S SMW-K182. Enables sensing mode. SYNSFD Enables SYN+SFD mode. The SYN packet and the SFD packet without the DATA part is sent.
"""
param = Conversions.enum_scalar_to_str(mode, enums.HrpUwbMode)
self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:STD {param}')
def clone(self) -> 'LrWpanCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = LrWpanCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group