from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ConfigCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("config", core, parent)
[docs]
def get_preview(self) -> bool:
"""
``SAVeset:CONFig:PREView`` \n
Snippet: ``value: bool = driver.saveset.config.get_preview()`` \n
If set to OFF, the saveset is stored without the preview image to reduce the file size. Use the command each time before
you save a saveset.
"""
response = self._core.io.query_str_with_opc('SAVeset:CONFig:PREView?')
return Conversions.str_to_bool(response)
[docs]
def set_preview(self, include_preview_image_in_saveset: bool) -> None:
"""
``SAVeset:CONFig:PREView`` \n
Snippet: ``driver.saveset.config.set_preview(include_preview_image_in_saveset = False)`` \n
If set to OFF, the saveset is stored without the preview image to reduce the file size. Use the command each time before
you save a saveset.
:param include_preview_image_in_saveset: OFF | ON
"""
param = Conversions.bool_to_str(include_preview_image_in_saveset)
self._core.io.write_with_opc(f'SAVeset:CONFig:PREView {param}')