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
[docs]class AcquisitionCls:
"""Acquisition commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("acquisition", core, parent)
[docs] def get_create(self) -> str:
"""SCPI: [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. \n
: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:
"""SCPI: [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. \n
: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}')