from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class HardCopyCls:
"""HardCopy commands group definition. 4 total commands, 2 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("hardCopy", core, parent)
@property
def formatPy(self):
"""formatPy commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_formatPy'):
from .FormatPy import FormatPyCls
self._formatPy = FormatPyCls(self._core, self._cmd_group)
return self._formatPy
@property
def size(self):
"""size commands group. 0 Sub-classes, 2 commands."""
if not hasattr(self, '_size'):
from .Size import SizeCls
self._size = SizeCls(self._core, self._cmd_group)
return self._size
[docs] def get_data(self) -> bytes:
"""SCPI: HCOPy:DATA \n
Snippet: value: bytes = driver.hardCopy.get_data() \n
Returns the actual display content (screenshot) . \n
:return: result: No help available
"""
response = self._core.io.query_bin_block('HCOPy:DATA?')
return response