Source code for RsSmbv.Implementations.Source.Bb.Gnss.Vehicle

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class VehicleCls: """Vehicle commands group definition. 3 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("vehicle", core, parent) @property def catalog(self): """catalog commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_catalog'): from .Catalog import CatalogCls self._catalog = CatalogCls(self._core, self._cmd_group) return self._catalog # noinspection PyTypeChecker
[docs] def get_count(self) -> enums.Count: """SCPI: [SOURce<HW>]:BB:GNSS:VEHicle:COUNt \n Snippet: value: enums.Count = driver.source.bb.gnss.vehicle.get_count() \n No command help available \n :return: number_of_vehicle: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:VEHicle:COUNt?') return Conversions.str_to_scalar_enum(response, enums.Count)
[docs] def set_count(self, number_of_vehicle: enums.Count) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:VEHicle:COUNt \n Snippet: driver.source.bb.gnss.vehicle.set_count(number_of_vehicle = enums.Count._1) \n No command help available \n :param number_of_vehicle: No help available """ param = Conversions.enum_scalar_to_str(number_of_vehicle, enums.Count) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:VEHicle:COUNt {param}')
def clone(self) -> 'VehicleCls': """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 = VehicleCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group