Source code for RsSmw.Implementations.Source.Bb.Dm.Standard.Ulist

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class UlistCls: """Ulist commands group definition. 4 total commands, 0 Subgroups, 4 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ulist", core, parent)
[docs] def get_catalog(self) -> List[str]: """SCPI: [SOURce<HW>]:BB:DM:STANdard:ULISt:CATalog \n Snippet: value: List[str] = driver.source.bb.dm.standard.ulist.get_catalog() \n Queries the files with digital modulation respectively user standard settings in the default directory. Listed are files with the file extension *.dm and *.dm_stu. Refer to 'Accessing files in the default or in a specified directory' for general information on file handling in the default and a specific directory. \n :return: catalog: 'filename1,filename2,...' Returns a string of file names separated by commas. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DM:STANdard:ULISt:CATalog?') return Conversions.str_to_str_list(response)
[docs] def delete(self, filename: str) -> None: """SCPI: [SOURce<HW>]:BB:DM:STANdard:ULISt:DELete \n Snippet: driver.source.bb.dm.standard.ulist.delete(filename = 'abc') \n Deletes the selected file from the default or specified directory. Deleted are files with the file extension *. dm respectively *.dm_stu. Refer to 'Accessing files in the default or in a specified directory' for general information on file handling in the default and a specific directory. \n :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:DM:STANdard:ULISt:DELete {param}')
[docs] def load(self, filename: str) -> None: """SCPI: [SOURce<HW>]:BB:DM:STANdard:ULISt:LOAD \n Snippet: driver.source.bb.dm.standard.ulist.load(filename = 'abc') \n Loads the selected file from the default or the specified directory. Loaded are files with extension *.dm respectively *. dm_stu. Refer to 'Accessing files in the default or in a specified directory' for general information on file handling in the default and a specific directory. \n :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:DM:STANdard:ULISt:LOAD {param}')
[docs] def set_store(self, filename: str) -> None: """SCPI: [SOURce<HW>]:BB:DM:STANdard:ULISt:STORe \n Snippet: driver.source.bb.dm.standard.ulist.set_store(filename = 'abc') \n Stores the current settings into the selected file; the file extension (*.dm respectively *. dm_stu) is assigned automatically. Refer to 'Accessing files in the default or in a specified directory' for general information on file handling in the default and a specific directory. \n :param filename: string """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:BB:DM:STANdard:ULISt:STORe {param}')