Source code for RsFsw.Implementations.Applications.K17_Mcgd.Sense.Carrier.Spacing

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SpacingCls: """Spacing commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("spacing", core, parent)
[docs] def set(self, carrier_spacing: float) -> None: """SCPI: [SENSe]:CARRier:SPACing \n Snippet: driver.applications.k17Mcgd.sense.carrier.spacing.set(carrier_spacing = 1.0) \n Sets/queries the carrier spacing in Hz between the multiple carriers. \n :param carrier_spacing: Unit: HZ """ param = Conversions.decimal_value_to_str(carrier_spacing) self._core.io.write(f'SENSe:CARRier:SPACing {param}')
[docs] def get(self) -> float: """SCPI: [SENSe]:CARRier:SPACing \n Snippet: value: float = driver.applications.k17Mcgd.sense.carrier.spacing.get() \n Sets/queries the carrier spacing in Hz between the multiple carriers. \n :return: carrier_spacing: Unit: HZ""" response = self._core.io.query_str(f'SENSe:CARRier:SPACing?') return Conversions.str_to_float(response)