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
class PathCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("path", core, parent)
[docs]
def set(self, filename: str) -> None:
"""
``RIQ:FIQ:PATH`` \n
Snippet: ``driver.applications.k6Pulse.riq.fiq.path.set(filename = 'abc')`` \n
Selects the I/Q data file which contains the reference waveform. The file must be in iq.tar format as specified in 'I/Q
Data File Format (iq-tar) '.
:param filename: String containing the path and name of the file.
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'RIQ:FIQ:PATH {param}')
[docs]
def get(self) -> str:
"""
``RIQ:FIQ:PATH`` \n
Snippet: ``value: str = driver.applications.k6Pulse.riq.fiq.path.get()`` \n
Selects the I/Q data file which contains the reference waveform. The file must be in iq.tar format as specified in 'I/Q
Data File Format (iq-tar) '.
:return: filename: String containing the path and name of the file.
"""
response = self._core.io.query_str(f'RIQ:FIQ:PATH?')
return trim_str_response(response)