Source code for RsCma.Implementations.Source.AfRf.Generator.Dialing.Scal.Frequency

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class FrequencyCls: """Frequency commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("frequency", core, parent)
[docs] def reset(self) -> None: """SCPI: SOURce:AFRF:GENerator<Instance>:DIALing:SCAL:FREQuency:RESet \n Snippet: driver.source.afRf.generator.dialing.scal.frequency.reset() \n Triggers a reset of user-defined frequency values to the default frequency values of the SELCAL standard. \n """ self._core.io.write(f'SOURce:AFRF:GENerator<Instance>:DIALing:SCAL:FREQuency:RESet')
[docs] def reset_with_opc(self, opc_timeout_ms: int = -1) -> None: """SCPI: SOURce:AFRF:GENerator<Instance>:DIALing:SCAL:FREQuency:RESet \n Snippet: driver.source.afRf.generator.dialing.scal.frequency.reset_with_opc() \n Triggers a reset of user-defined frequency values to the default frequency values of the SELCAL standard. \n Same as reset, but waits for the operation to complete before continuing further. Use the RsCma.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'SOURce:AFRF:GENerator<Instance>:DIALing:SCAL:FREQuency:RESet', opc_timeout_ms)
[docs] def get_value(self) -> List[float]: """SCPI: SOURce:AFRF:GENerator<Instance>:DIALing:SCAL:FREQuency \n Snippet: value: List[float] = driver.source.afRf.generator.dialing.scal.frequency.get_value() \n Configures the user-defined tone table for SELCAL. To enable the table, set as follows: SOURce:AFRF:GEN:DIALing:SCAL:STANdard UDEFined See alsomethod RsCma.Source.AfRf. Generator.Dialing.Scal.standard \n :return: frequency: Comma-separated list of up to 16 frequencies You can specify fewer than 16 values to configure only the beginning of the tone table. Range: see table , Unit: Hz """ response = self._core.io.query_bin_or_ascii_float_list('SOURce:AFRF:GENerator<Instance>:DIALing:SCAL:FREQuency?') return response
[docs] def set_value(self, frequency: List[float]) -> None: """SCPI: SOURce:AFRF:GENerator<Instance>:DIALing:SCAL:FREQuency \n Snippet: driver.source.afRf.generator.dialing.scal.frequency.set_value(frequency = [1.1, 2.2, 3.3]) \n Configures the user-defined tone table for SELCAL. To enable the table, set as follows: SOURce:AFRF:GEN:DIALing:SCAL:STANdard UDEFined See alsomethod RsCma.Source.AfRf. Generator.Dialing.Scal.standard \n :param frequency: Comma-separated list of up to 16 frequencies You can specify fewer than 16 values to configure only the beginning of the tone table. Range: see table , Unit: Hz """ param = Conversions.list_to_csv_str(frequency) self._core.io.write(f'SOURce:AFRF:GENerator<Instance>:DIALing:SCAL:FREQuency {param}')