from typing import List
from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UserCls:
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("user", core, parent)
[docs]
def get_catalog(self) -> List[str]:
"""
``[SOURce<HW>]:BB:W3GPp:MSTation:ENHanced:DPDCh:CCODing:USER:CATalog`` \n
Snippet: ``value: List[str] = driver.source.bb.w3Gpp.mstation.enhanced.dpdch.ccoding.user.get_catalog()`` \n
The command queries existing files with stored user channel codings. The files are stored with the fixed file extensions
3g_ccod_ul in a directory of the user's choice. The directory applicable to the commands is defined with the method
``RsSmw.massMemory.current_directory()`` .
:return: catalog: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:DPDCh:CCODing:USER:CATalog?')
return Conversions.str_to_str_list(response)
[docs]
def delete(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:MSTation:ENHanced:DPDCh:CCODing:USER:DELete`` \n
Snippet: ``driver.source.bb.w3Gpp.mstation.enhanced.dpdch.ccoding.user.delete(filename = 'abc')`` \n
The command deletes the specified files with stored user channel codings. The files are stored with the fixed file
extensions 3g_ccod_ul in a directory of the user's choice. The directory applicable to the commands is defined with the
method ``RsSmw.massMemory.current_directory()`` . To access the files in this directory, you only have to give the file
name, without the path and the file extension. The command triggers an event and therefore has no query form and no
``*RST`` value.
:param filename: string
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:DPDCh:CCODing:USER:DELete {param}')
[docs]
def load(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:MSTation:ENHanced:DPDCh:CCODing:USER:LOAD`` \n
Snippet: ``driver.source.bb.w3Gpp.mstation.enhanced.dpdch.ccoding.user.load(filename = 'abc')`` \n
The command loads the specified files with stored user channel codings. The files are stored with the fixed file
extensions 3g_ccod_ul in a directory of the user's choice. The directory applicable to the commands is defined with the
method ``RsSmw.massMemory.current_directory()`` . To access the files in this directory, you only have to give the file
name, without the path and the file extension.
:param filename: string
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:DPDCh:CCODing:USER:LOAD {param}')
[docs]
def set_store(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:MSTation:ENHanced:DPDCh:CCODing:USER:STORe`` \n
Snippet: ``driver.source.bb.w3Gpp.mstation.enhanced.dpdch.ccoding.user.set_store(filename = 'abc')`` \n
The command saves the current settings for channel coding as user channel coding in the specified file. The files are
stored with the fixed file extensions 3g_ccod_ul in a directory of the user's choice. The directory in which the file is
stored is defined with the method ``RsSmw.massMemory.current_directory()`` . To store the files in this directory, you
only have to give the file name, without the path and the file extension.
:param filename: string
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:DPDCh:CCODing:USER:STORe {param}')