from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SyncCls:
"""
| Commands in total: 12
| Subgroups: 0
| Direct child commands: 12
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sync", core, parent)
[docs]
def get_epower(self) -> float:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:EPOWer`` \n
Snippet: ``value: float = driver.source.bb.v5G.downlink.sync.get_epower()`` \n
Set the power level of synchronization signal, particularly PSS, SSS and ESS.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:EPOWer?')
return Conversions.str_to_float(response)
[docs]
def set_epower(self, epower: float) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:EPOWer`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_epower(epower = 1.0)`` \n
Set the power level of synchronization signal, particularly PSS, SSS and ESS.
:param epower: float Range: -80 to 10
"""
param = Conversions.decimal_value_to_str(epower)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:EPOWer {param}')
[docs]
def get_piq_sequence(self) -> str:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PIQSequence`` \n
Snippet: ``value: str = driver.source.bb.v5G.downlink.sync.get_piq_sequence()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:PIQSequence?')
return trim_str_response(response)
[docs]
def set_piq_sequence(self, piq_sequence: str) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PIQSequence`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_piq_sequence(piq_sequence = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(piq_sequence)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:PIQSequence {param}')
# noinspection PyTypeChecker
[docs]
def get_pmodulation(self) -> enums.SyncModulationScheme:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PMODulation`` \n
Snippet: ``value: enums.SyncModulationScheme = driver.source.bb.v5G.downlink.sync.get_pmodulation()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:PMODulation?')
return Conversions.str_to_scalar_enum(response, enums.SyncModulationScheme)
[docs]
def set_pmodulation(self, pmodulation: enums.SyncModulationScheme) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PMODulation`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_pmodulation(pmodulation = enums.SyncModulationScheme.IQFile)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(pmodulation, enums.SyncModulationScheme)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:PMODulation {param}')
[docs]
def get_ppower(self) -> float:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PPOWer`` \n
Snippet: ``value: float = driver.source.bb.v5G.downlink.sync.get_ppower()`` \n
Set the power level of synchronization signal, particularly PSS, SSS and ESS.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:PPOWer?')
return Conversions.str_to_float(response)
[docs]
def set_ppower(self, ppower: float) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PPOWer`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_ppower(ppower = 1.0)`` \n
Set the power level of synchronization signal, particularly PSS, SSS and ESS.
:param ppower: float Range: -80 to 10
"""
param = Conversions.decimal_value_to_str(ppower)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:PPOWer {param}')
[docs]
def get_psequence(self) -> str:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PSEQuence`` \n
Snippet: ``value: str = driver.source.bb.v5G.downlink.sync.get_psequence()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:PSEQuence?')
return trim_str_response(response)
[docs]
def set_psequence(self, psequence: str) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PSEQuence`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_psequence(psequence = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(psequence)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:PSEQuence {param}')
[docs]
def get_pstate(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PSTate`` \n
Snippet: ``value: bool = driver.source.bb.v5G.downlink.sync.get_pstate()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:PSTate?')
return Conversions.str_to_bool(response)
[docs]
def set_pstate(self, psync_state: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:PSTate`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_pstate(psync_state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(psync_state)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:PSTate {param}')
[docs]
def get_siq_sequence(self) -> str:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SIQSequence`` \n
Snippet: ``value: str = driver.source.bb.v5G.downlink.sync.get_siq_sequence()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:SIQSequence?')
return trim_str_response(response)
[docs]
def set_siq_sequence(self, siq_sequence: str) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SIQSequence`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_siq_sequence(siq_sequence = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(siq_sequence)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:SIQSequence {param}')
# noinspection PyTypeChecker
[docs]
def get_smodulation(self) -> enums.SyncModulationScheme:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SMODulation`` \n
Snippet: ``value: enums.SyncModulationScheme = driver.source.bb.v5G.downlink.sync.get_smodulation()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:SMODulation?')
return Conversions.str_to_scalar_enum(response, enums.SyncModulationScheme)
[docs]
def set_smodulation(self, mod_scheme: enums.SyncModulationScheme) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SMODulation`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_smodulation(mod_scheme = enums.SyncModulationScheme.IQFile)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(mod_scheme, enums.SyncModulationScheme)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:SMODulation {param}')
[docs]
def get_spower(self) -> float:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SPOWer`` \n
Snippet: ``value: float = driver.source.bb.v5G.downlink.sync.get_spower()`` \n
Set the power level of synchronization signal, particularly PSS, SSS and ESS.
:return: spower: float Range: -80 to 10
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:SPOWer?')
return Conversions.str_to_float(response)
[docs]
def set_spower(self, spower: float) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SPOWer`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_spower(spower = 1.0)`` \n
Set the power level of synchronization signal, particularly PSS, SSS and ESS.
:param spower: float Range: -80 to 10
"""
param = Conversions.decimal_value_to_str(spower)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:SPOWer {param}')
[docs]
def get_ssequence(self) -> str:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SSEQuence`` \n
Snippet: ``value: str = driver.source.bb.v5G.downlink.sync.get_ssequence()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:SSEQuence?')
return trim_str_response(response)
[docs]
def set_ssequence(self, ssequence: str) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SSEQuence`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_ssequence(ssequence = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(ssequence)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:SSEQuence {param}')
[docs]
def get_sstate(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SSTate`` \n
Snippet: ``value: bool = driver.source.bb.v5G.downlink.sync.get_sstate()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:SSTate?')
return Conversions.str_to_bool(response)
[docs]
def set_sstate(self, ssync_state: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:SSTate`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_sstate(ssync_state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(ssync_state)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:SSTate {param}')
# noinspection PyTypeChecker
[docs]
def get_tx_antenna(self) -> enums.TxAntennaGnss:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:TXANtenna`` \n
Snippet: ``value: enums.TxAntennaGnss = driver.source.bb.v5G.downlink.sync.get_tx_antenna()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:SYNC:TXANtenna?')
return Conversions.str_to_scalar_enum(response, enums.TxAntennaGnss)
[docs]
def set_tx_antenna(self, tx_antenna: enums.TxAntennaGnss) -> None:
"""
``[SOURce<HW>]:BB:V5G:DL:SYNC:TXANtenna`` \n
Snippet: ``driver.source.bb.v5G.downlink.sync.set_tx_antenna(tx_antenna = enums.TxAntennaGnss.ALL)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(tx_antenna, enums.TxAntennaGnss)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:SYNC:TXANtenna {param}')