Source code for RsFsw.Implementations.Applications.K30_NoiseFigure.Sense.Frequency.Table.Data

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DataCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("data", core, parent)

[docs] def set(self, frequency: List[float]) -> None: """ ``[SENSe]:FREQuency:TABLe:DATA`` \n Snippet: ``driver.applications.k30NoiseFigure.sense.frequency.table.data.set(frequency = [1.1, 2.2, 3.3])`` \n Defines the contents of the frequency table. The command overwrites the current contents of the frequency table. :param frequency: Defines a frequency for each entry in the frequency table. A frequency table can contain up to 10001 entries. Range: 0 Hz to fmax, Unit: HZ """ param = Conversions.list_to_csv_str(frequency) self._core.io.write(f'SENSe:FREQuency:TABLe:DATA {param}')
[docs] def get(self) -> List[float]: """ ``[SENSe]:FREQuency:TABLe:DATA`` \n Snippet: ``value: List[float] = driver.applications.k30NoiseFigure.sense.frequency.table.data.get()`` \n Defines the contents of the frequency table. The command overwrites the current contents of the frequency table. :return: frequency: Defines a frequency for each entry in the frequency table. A frequency table can contain up to 10001 entries. Range: 0 Hz to fmax, Unit: HZ """ response = self._core.io.query_bin_or_ascii_float_list(f'SENSe:FREQuency:TABLe:DATA?') return response