Source code for RsSmw.Implementations.Source.Iq.Output.Analog.Envelope.Shaping.Coefficients

from typing import List

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


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

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

[docs] def get_catalog(self) -> List[str]: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:COEFficients:CATalog`` \n Snippet: ``value: List[str] = driver.source.iq.output.analog.envelope.shaping.coefficients.get_catalog()`` \n Queries the available polynomial files in the default directory. Only files with the file extension iq_poly are listed. :return: catalog: string """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:COEFficients:CATalog?') return Conversions.str_to_str_list(response)
[docs] def load(self, filename: str) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:COEFficients:LOAD`` \n Snippet: ``driver.source.iq.output.analog.envelope.shaping.coefficients.load(filename = 'abc')`` \n Loads the selected polynomial file. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:COEFficients:LOAD {param}')
[docs] def set_store(self, filename: str) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:COEFficients:STORe`` \n Snippet: ``driver.source.iq.output.analog.envelope.shaping.coefficients.set_store(filename = 'abc')`` \n Saves the polynomial function as polynomial file. :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:COEFficients:STORe {param}')
[docs] def get_value(self) -> List[float]: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:COEFficients`` \n Snippet: ``value: List[float] = driver.source.iq.output.analog.envelope.shaping.coefficients.get_value()`` \n Sets the polynomial coefficients. """ response = self._core.io.query_bin_or_ascii_float_list('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:COEFficients?') return response
[docs] def set_value(self, ipartq_out_env_poly_coeffs: List[float]) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:COEFficients`` \n Snippet: ``driver.source.iq.output.analog.envelope.shaping.coefficients.set_value(ipartq_out_env_poly_coeffs = [1.1, 2.2, 3.3])`` \n Sets the polynomial coefficients. """ param = Conversions.list_to_csv_str(ipartq_out_env_poly_coeffs) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:COEFficients {param}')