Source code for RsSmcv.Implementations.Source.Iq.Output.Analog.Envelope.Shaping.Pv.File

from typing import List

from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
from .........Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class FileCls: """File commands group definition. 4 total commands, 0 Subgroups, 4 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("file", core, parent)
[docs] def get_catalog(self) -> List[str]: """SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:PV:FILE:CATalog \n Snippet: value: List[str] = driver.source.iq.output.analog.envelope.shaping.pv.file.get_catalog() \n No command help available \n :return: catalog: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:PV:FILE:CATalog?') return Conversions.str_to_str_list(response)
[docs] def get_data(self) -> List[float]: """SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:PV:FILE:DATA \n Snippet: value: List[float] = driver.source.iq.output.analog.envelope.shaping.pv.file.get_data() \n No command help available \n :return: emul_sgt_iq_out_env_shape_data_pv: No help available """ response = self._core.io.query_bin_or_ascii_float_list('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:PV:FILE:DATA?') return response
[docs] def set_data(self, emul_sgt_iq_out_env_shape_data_pv: List[float]) -> None: """SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:PV:FILE:DATA \n Snippet: driver.source.iq.output.analog.envelope.shaping.pv.file.set_data(emul_sgt_iq_out_env_shape_data_pv = [1.1, 2.2, 3.3]) \n No command help available \n :param emul_sgt_iq_out_env_shape_data_pv: No help available """ param = Conversions.list_to_csv_str(emul_sgt_iq_out_env_shape_data_pv) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:PV:FILE:DATA {param}')
[docs] def set_new(self, ipartd_pi_db_emul_sgt_iq_out_env_shape_data_pv_new_file: List[float]) -> None: """SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:PV:FILE:NEW \n Snippet: driver.source.iq.output.analog.envelope.shaping.pv.file.set_new(ipartd_pi_db_emul_sgt_iq_out_env_shape_data_pv_new_file = [1.1, 2.2, 3.3]) \n No command help available \n :param ipartd_pi_db_emul_sgt_iq_out_env_shape_data_pv_new_file: No help available """ param = Conversions.list_to_csv_str(ipartd_pi_db_emul_sgt_iq_out_env_shape_data_pv_new_file) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:PV:FILE:NEW {param}')
[docs] def get_select(self) -> str: """SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:PV:FILE:[SELect] \n Snippet: value: str = driver.source.iq.output.analog.envelope.shaping.pv.file.get_select() \n No command help available \n :return: filename: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:PV:FILE:SELect?') return trim_str_response(response)
[docs] def set_select(self, filename: str) -> None: """SCPI: [SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:SHAPing:PV:FILE:[SELect] \n Snippet: driver.source.iq.output.analog.envelope.shaping.pv.file.set_select(filename = 'abc') \n No command help available \n :param filename: No help available """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:SHAPing:PV:FILE:SELect {param}')