[docs]defget_data(self)->bytes:"""SCPI: HCOPy:DATA \n Snippet: value: bytes = driver.hardCopy.get_data() \n Transfers the hard copy data directly as a NByte stream to the remote client. \n :return: data: block data """response=self._core.io.query_bin_block('HCOPy:DATA?')returnresponse
# noinspection PyTypeChecker
[docs]defget_region(self)->enums.HardCopyRegion:"""SCPI: HCOPy:REGion \n Snippet: value: enums.HardCopyRegion = driver.hardCopy.get_region() \n Selects the area to be copied. You can create a snapshot of the screen or an active dialog. \n :return: region: ALL| DIALog """response=self._core.io.query_str('HCOPy:REGion?')returnConversions.str_to_scalar_enum(response,enums.HardCopyRegion)
[docs]defset_region(self,region:enums.HardCopyRegion)->None:"""SCPI: HCOPy:REGion \n Snippet: driver.hardCopy.set_region(region = enums.HardCopyRegion.ALL) \n Selects the area to be copied. You can create a snapshot of the screen or an active dialog. \n :param region: ALL| DIALog """param=Conversions.enum_scalar_to_str(region,enums.HardCopyRegion)self._core.io.write(f'HCOPy:REGion {param}')
defclone(self)->'HardCopyCls':"""Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group"""new_group=HardCopyCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group