from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class W3GppCls:
"""
| Commands in total: 564
| Subgroups: 14
| Direct child commands: 5
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("w3Gpp", core, parent)
@property
def bstation(self):
"""
| Commands in total: 171
| Subgroups: 13
| Direct child commands: 1
"""
if not hasattr(self, '_bstation'):
from .Bstation import BstationCls
self._bstation = BstationCls(self._core, self._cmd_group)
return self._bstation
@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: 3
| Subgroups: 0
| 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 copy(self):
"""
| Commands in total: 4
| Subgroups: 1
| Direct child commands: 3
"""
if not hasattr(self, '_copy'):
from .Copy import CopyCls
self._copy = CopyCls(self._core, self._cmd_group)
return self._copy
@property
def crate(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_crate'):
from .Crate import CrateCls
self._crate = CrateCls(self._core, self._cmd_group)
return self._crate
@property
def filterPy(self):
"""
| Commands in total: 12
| Subgroups: 2
| Direct child commands: 1
"""
if not hasattr(self, '_filterPy'):
from .FilterPy import FilterPyCls
self._filterPy = FilterPyCls(self._core, self._cmd_group)
return self._filterPy
@property
def gpp3(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_gpp3'):
from .Gpp3 import Gpp3Cls
self._gpp3 = Gpp3Cls(self._core, self._cmd_group)
return self._gpp3
@property
def mstation(self):
"""
| Commands in total: 262
| Subgroups: 14
| Direct child commands: 1
"""
if not hasattr(self, '_mstation'):
from .Mstation import MstationCls
self._mstation = MstationCls(self._core, self._cmd_group)
return self._mstation
@property
def power(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_power'):
from .Power import PowerCls
self._power = PowerCls(self._core, self._cmd_group)
return self._power
@property
def pparameter(self):
"""
| Commands in total: 7
| Subgroups: 3
| Direct child commands: 2
"""
if not hasattr(self, '_pparameter'):
from .Pparameter import PparameterCls
self._pparameter = PparameterCls(self._core, self._cmd_group)
return self._pparameter
@property
def setting(self):
"""
| Commands in total: 16
| Subgroups: 2
| Direct child commands: 4
"""
if not hasattr(self, '_setting'):
from .Setting import SettingCls
self._setting = SettingCls(self._core, self._cmd_group)
return self._setting
@property
def trigger(self):
"""
| Commands in total: 20
| Subgroups: 6
| 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 ts25141(self):
"""
| Commands in total: 55
| Subgroups: 8
| Direct child commands: 4
"""
if not hasattr(self, '_ts25141'):
from .Ts25141 import Ts25141Cls
self._ts25141 = Ts25141Cls(self._core, self._cmd_group)
return self._ts25141
@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
# noinspection PyTypeChecker
[docs]
def get_link(self) -> enums.LinkDir:
"""
``[SOURce<HW>]:BB:W3GPp:LINK`` \n
Snippet: ``value: enums.LinkDir = driver.source.bb.w3Gpp.get_link()`` \n
The command defines the transmission direction. The signal either corresponds to that of a base station (FORWard | DOWN)
or that of a user equipment (REVerse | UP) .
:return: link: DOWN | UP | FORWard | REVerse
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:LINK?')
return Conversions.str_to_scalar_enum(response, enums.LinkDir)
[docs]
def set_link(self, link: enums.LinkDir) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:LINK`` \n
Snippet: ``driver.source.bb.w3Gpp.set_link(link = enums.LinkDir.DOWN)`` \n
The command defines the transmission direction. The signal either corresponds to that of a base station (FORWard | DOWN)
or that of a user equipment (REVerse | UP) .
:param link: DOWN | UP | FORWard | REVerse
"""
param = Conversions.enum_scalar_to_str(link, enums.LinkDir)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:LINK {param}')
# noinspection PyTypeChecker
[docs]
def get_lreference(self) -> enums.WcdmaLevRef:
"""
``[SOURce<HW>]:BB:W3GPp:LREFerence`` \n
Snippet: ``value: enums.WcdmaLevRef = driver.source.bb.w3Gpp.get_lreference()`` \n
Determines the power reference for the calculation of the output signal power in uplink direction.
:return: reference: RMS | DPCC | PMP | LPP | EDCH | HACK | PCQI RMS RMS Power DPCC First DPCCH PMP PRACH Message Part LPP Last PRACH Preamble EDCH Requires R&S SMW-K83. First E-DCH HACK Requires R&S SMW-K83. First HARQ-ACK PCQI Requires R&S SMW-K83. First PCI/CQI
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:LREFerence?')
return Conversions.str_to_scalar_enum(response, enums.WcdmaLevRef)
[docs]
def set_lreference(self, reference: enums.WcdmaLevRef) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:LREFerence`` \n
Snippet: ``driver.source.bb.w3Gpp.set_lreference(reference = enums.WcdmaLevRef.DPCC)`` \n
Determines the power reference for the calculation of the output signal power in uplink direction.
:param reference: RMS | DPCC | PMP | LPP | EDCH | HACK | PCQI RMS RMS Power DPCC First DPCCH PMP PRACH Message Part LPP Last PRACH Preamble EDCH Requires R&S SMW-K83. First E-DCH HACK Requires R&S SMW-K83. First HARQ-ACK PCQI Requires R&S SMW-K83. First PCI/CQI
"""
param = Conversions.enum_scalar_to_str(reference, enums.WcdmaLevRef)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:LREFerence {param}')
[docs]
def preset(self) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:PRESet`` \n
Snippet: ``driver.source.bb.w3Gpp.preset()`` \n
Sets the parameters of the digital standard to their default values (``*RST`` values specified for the commands) .
Not affected is the state set with the command SOURce<hw>:BB:W3GPp:STATe.
"""
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:PRESet')
[docs]
def preset_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:PRESet`` \n
Snippet: ``driver.source.bb.w3Gpp.preset_with_opc()`` \n
Sets the parameters of the digital standard to their default values (``*RST`` values specified for the commands) .
Not affected is the state set with the command SOURce<hw>:BB:W3GPp:STATe.
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:W3GPp:PRESet', opc_timeout_ms)
[docs]
def get_slength(self) -> int:
"""
``[SOURce<HW>]:BB:W3GPp:SLENgth`` \n
Snippet: ``value: int = driver.source.bb.w3Gpp.get_slength()`` \n
Defines the sequence length of the arbitrary waveform component of the 3GPP signal in the number of frames.
This component is calculated in advance and output in the arbitrary waveform generator. It is added to the realtime
signal components (Enhanced Channels) . When working in Advanced Mode (W3GP:BST1:CHAN:HSDP:HSET:AMOD ON) , it is
recommended to adjust the current ARB sequence length to the suggested one.
:return: slength: integer Range: 1 to Max. No. of Frames = Arbitrary waveform memory size/(3.84 Mcps x 10 ms) .
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:SLENgth?')
return Conversions.str_to_int(response)
[docs]
def set_slength(self, slength: int) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:SLENgth`` \n
Snippet: ``driver.source.bb.w3Gpp.set_slength(slength = 1)`` \n
Defines the sequence length of the arbitrary waveform component of the 3GPP signal in the number of frames.
This component is calculated in advance and output in the arbitrary waveform generator. It is added to the realtime
signal components (Enhanced Channels) . When working in Advanced Mode (W3GP:BST1:CHAN:HSDP:HSET:AMOD ON) , it is
recommended to adjust the current ARB sequence length to the suggested one.
:param slength: integer Range: 1 to Max. No. of Frames = Arbitrary waveform memory size/(3.84 Mcps x 10 ms) .
"""
param = Conversions.decimal_value_to_str(slength)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:SLENgth {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:W3GPp:STATe`` \n
Snippet: ``value: bool = driver.source.bb.w3Gpp.get_state()`` \n
Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path.
:return: state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:STATe`` \n
Snippet: ``driver.source.bb.w3Gpp.set_state(state = False)`` \n
Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path.
:param state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:STATe {param}')
def clone(self) -> 'W3GppCls':
"""
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 = W3GppCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group