from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TracesCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("traces", core, parent)
[docs]
def set(self, traces_to_export: enums.SelectionScope) -> None:
"""
``FORMat:DEXPort:TRACes`` \n
Snippet: ``driver.applications.k9X11Ad.formatPy.dexport.traces.set(traces_to_export = enums.SelectionScope.ALL)`` \n
Selects the data to be included in a data export file (see method ``RsFsw.massMemory.store.trace.set()`` ) . For details
on exporting data see 'Trace/data ex/import'.
:param traces_to_export: SINGle | ALL SINGle Only a single trace is selected for export, namely the one specified by the method ``RsFsw.massMemory.store.trace.set()`` command. ALL Selects all active traces and result tables (e.g. 'Result Summary', marker peak list etc.) in the current application for export to an ASCII file. The trace parameter for the method ``RsFsw.massMemory.store.trace.set()`` command is ignored.
"""
param = Conversions.enum_scalar_to_str(traces_to_export, enums.SelectionScope)
self._core.io.write(f'FORMat:DEXPort:TRACes {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.SelectionScope:
"""
``FORMat:DEXPort:TRACes`` \n
Snippet: ``value: enums.SelectionScope = driver.applications.k9X11Ad.formatPy.dexport.traces.get()`` \n
Selects the data to be included in a data export file (see method ``RsFsw.massMemory.store.trace.set()`` ) . For details
on exporting data see 'Trace/data ex/import'.
"""
response = self._core.io.query_str(f'FORMat:DEXPort:TRACes?')
return Conversions.str_to_scalar_enum(response, enums.SelectionScope)