Source code for RsCmwCdma2kSig.Implementations.Configure_.Sms_.Outgoing_.File

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class File: """File commands group definition. 2 total commands, 0 Sub-groups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("file", core, parent) # noinspection PyTypeChecker
[docs] class InfoStruct(StructBase): """Structure for reading output parameters. Fields: \n - Teleservice_Id: str: String parameter, shows the teleservice identifier. CMT-91 | CPT-95 | CMT-95 | VMN-95 | WAP | WEMT | SCPT | CATPT - Message_Encoding: str: String parameter, shows the encoding of the message. ASCII, binary, Unicode - Message_Text: str: String parameter, shows the message text. - Message_Length: int: Shows the number (decimal) of characters of the message text. Range: 0 to 10E+3""" __meta_args_list = [ ArgStruct.scalar_str('Teleservice_Id'), ArgStruct.scalar_str('Message_Encoding'), ArgStruct.scalar_str('Message_Text'), ArgStruct.scalar_int('Message_Length')] def __init__(self): StructBase.__init__(self, self) self.Teleservice_Id: str = None self.Message_Encoding: str = None self.Message_Text: str = None self.Message_Length: int = None
[docs] def get_info(self) -> InfoStruct: """SCPI: CONFigure:CDMA:SIGNaling<Instance>:SMS:OUTGoing:FILE:INFO \n Snippet: value: InfoStruct = driver.configure.sms.outgoing.file.get_info() \n Display information of the outgoing message file referenced by method RsCmwCdma2kSig.Configure.Sms.Outgoing.File.value. \n :return: structure: for return value, see the help for InfoStruct structure arguments. """ return self._core.io.query_struct('CONFigure:CDMA:SIGNaling<Instance>:SMS:OUTGoing:FILE:INFO?', self.__class__.InfoStruct())
[docs] def get_value(self) -> str: """SCPI: CONFigure:CDMA:SIGNaling<Instance>:SMS:OUTGoing:FILE \n Snippet: value: str = driver.configure.sms.outgoing.file.get_value() \n Select outgoing message file. To view information of the message file use method RsCmwCdma2kSig.Configure.Sms.Outgoing. File.info. All message files are stored in directory D:/Rohde-Schwarz/CMW/Data/sms/CDMA2000. \n :return: sms_file: String parameter to specify the outgoing SMS message. """ response = self._core.io.query_str('CONFigure:CDMA:SIGNaling<Instance>:SMS:OUTGoing:FILE?') return trim_str_response(response)
[docs] def set_value(self, sms_file: str) -> None: """SCPI: CONFigure:CDMA:SIGNaling<Instance>:SMS:OUTGoing:FILE \n Snippet: driver.configure.sms.outgoing.file.set_value(sms_file = '1') \n Select outgoing message file. To view information of the message file use method RsCmwCdma2kSig.Configure.Sms.Outgoing. File.info. All message files are stored in directory D:/Rohde-Schwarz/CMW/Data/sms/CDMA2000. \n :param sms_file: String parameter to specify the outgoing SMS message. """ param = Conversions.value_to_quoted_str(sms_file) self._core.io.write(f'CONFigure:CDMA:SIGNaling<Instance>:SMS:OUTGoing:FILE {param}')