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 GbasCls:
"""
| Commands in total: 192
| Subgroups: 8
| Direct child commands: 9
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("gbas", 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: 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 filterPy(self):
"""
| Commands in total: 14
| Subgroups: 3
| 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 mset(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_mset'):
from .Mset import MsetCls
self._mset = MsetCls(self._core, self._cmd_group)
return self._mset
@property
def setting(self):
"""
| Commands in total: 4
| Subgroups: 0
| 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: 22
| 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 vdb(self):
"""
| Commands in total: 134
| Subgroups: 12
| Direct child commands: 1
"""
if not hasattr(self, '_vdb'):
from .Vdb import VdbCls
self._vdb = VdbCls(self._core, self._cmd_group)
return self._vdb
@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 get_gpow(self) -> bool:
"""
``[SOURce<HW>]:BB:GBAS:GPOW`` \n
Snippet: ``value: bool = driver.source.bb.gbas.get_gpow()`` \n
Enables gated power mode.
:return: gpow: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:GPOW?')
return Conversions.str_to_bool(response)
[docs]
def set_gpow(self, gpow: bool) -> None:
"""
``[SOURce<HW>]:BB:GBAS:GPOW`` \n
Snippet: ``driver.source.bb.gbas.set_gpow(gpow = False)`` \n
Enables gated power mode.
:param gpow: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(gpow)
self._core.io.write(f'SOURce<HwInstance>:BB:GBAS:GPOW {param}')
[docs]
def get_mf_channels(self) -> bool:
"""
``[SOURce<HW>]:BB:GBAS:MFCHannels`` \n
Snippet: ``value: bool = driver.source.bb.gbas.get_mf_channels()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:MFCHannels?')
return Conversions.str_to_bool(response)
[docs]
def set_mf_channels(self, mfch: bool) -> None:
"""
``[SOURce<HW>]:BB:GBAS:MFCHannels`` \n
Snippet: ``driver.source.bb.gbas.set_mf_channels(mfch = False)`` \n
No help available
"""
param = Conversions.bool_to_str(mfch)
self._core.io.write(f'SOURce<HwInstance>:BB:GBAS:MFCHannels {param}')
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.GbasMode:
"""
``[SOURce<HW>]:BB:GBAS:MODE`` \n
Snippet: ``value: enums.GbasMode = driver.source.bb.gbas.get_mode()`` \n
Sets the GBAS mode. Select between GBAS (LAAS) header information or SCAT-I header information.
:return: scat: GBAS | SCAT
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:MODE?')
return Conversions.str_to_scalar_enum(response, enums.GbasMode)
[docs]
def set_mode(self, scat: enums.GbasMode) -> None:
"""
``[SOURce<HW>]:BB:GBAS:MODE`` \n
Snippet: ``driver.source.bb.gbas.set_mode(scat = enums.GbasMode.GBAS)`` \n
Sets the GBAS mode. Select between GBAS (LAAS) header information or SCAT-I header information.
:param scat: GBAS | SCAT
"""
param = Conversions.enum_scalar_to_str(scat, enums.GbasMode)
self._core.io.write(f'SOURce<HwInstance>:BB:GBAS:MODE {param}')
[docs]
def get_no_frames(self) -> int:
"""
``[SOURce<HW>]:BB:GBAS:NOFRames`` \n
Snippet: ``value: int = driver.source.bb.gbas.get_no_frames()`` \n
Queries the number of VDB frames.
:return: no_frame: integer Range: 1 to 12500
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:NOFRames?')
return Conversions.str_to_int(response)
[docs]
def preset(self) -> None:
"""
``[SOURce<HW>]:BB:GBAS:PRESet`` \n
Snippet: ``driver.source.bb.gbas.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:GBAS:STATe.
"""
self._core.io.write(f'SOURce<HwInstance>:BB:GBAS:PRESet')
[docs]
def preset_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SOURce<HW>]:BB:GBAS:PRESet`` \n
Snippet: ``driver.source.bb.gbas.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:GBAS: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:GBAS:PRESet', opc_timeout_ms)
[docs]
def get_scati(self) -> bool:
"""
``[SOURce<HW>]:BB:GBAS:SCATi`` \n
Snippet: ``value: bool = driver.source.bb.gbas.get_scati()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:SCATi?')
return Conversions.str_to_bool(response)
[docs]
def set_scati(self, scat: bool) -> None:
"""
``[SOURce<HW>]:BB:GBAS:SCATi`` \n
Snippet: ``driver.source.bb.gbas.set_scati(scat = False)`` \n
No help available
"""
param = Conversions.bool_to_str(scat)
self._core.io.write(f'SOURce<HwInstance>:BB:GBAS:SCATi {param}')
[docs]
def get_sr_info(self) -> str:
"""
``[SOURce<HW>]:BB:GBAS:SRINfo`` \n
Snippet: ``value: str = driver.source.bb.gbas.get_sr_info()`` \n
Queries the used sample rate.
:return: sr_info: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:SRINfo?')
return trim_str_response(response)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:GBAS:STATe`` \n
Snippet: ``value: bool = driver.source.bb.gbas.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:GBAS:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``[SOURce<HW>]:BB:GBAS:STATe`` \n
Snippet: ``driver.source.bb.gbas.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:GBAS:STATe {param}')
[docs]
def get_version(self) -> str:
"""
``[SOURce<HW>]:BB:GBAS:VERSion`` \n
Snippet: ``value: str = driver.source.bb.gbas.get_version()`` \n
Queries the GBAS specification version that corresponds to the set GBAS mode.
:return: version: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GBAS:VERSion?')
return trim_str_response(response)
def clone(self) -> 'GbasCls':
"""
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 = GbasCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group