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 AcquisitionCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("acquisition", core, parent)
[docs]
def get_create(self) -> str:
"""
``[SOURce<HW>]:BB:GNSS:ADGeneration:ACQuisition:CREate`` \n
Snippet: ``value: str = driver.source.bb.gnss.adGeneration.acquisition.get_create()`` \n
Saves the current assistance data settings into the selected acquisition file. The file extension (rs_acq) is assigned
automatically. Refer to 'MMEMory Subsystem' for general information on file handling in the default and in a specific
directory.
:return: create: string Filename or complete file path
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:ACQuisition:CREate?')
return trim_str_response(response)
[docs]
def set_create(self, create: str) -> None:
"""
``[SOURce<HW>]:BB:GNSS:ADGeneration:ACQuisition:CREate`` \n
Snippet: ``driver.source.bb.gnss.adGeneration.acquisition.set_create(create = 'abc')`` \n
Saves the current assistance data settings into the selected acquisition file. The file extension (rs_acq) is assigned
automatically. Refer to 'MMEMory Subsystem' for general information on file handling in the default and in a specific
directory.
:param create: string Filename or complete file path
"""
param = Conversions.value_to_quoted_str(create)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:ACQuisition:CREate {param}')