[docs]classPixelCls:"""Pixel commands group definition. 6 total commands, 0 Subgroups, 6 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("pixel",core,parent)
[docs]defset_color(self,pix_test_color:enums.PixelTestPredefined)->None:"""SCPI: TEST:PIXel:COLor \n Snippet: driver.test.pixel.set_color(pix_test_color = enums.PixelTestPredefined.AUTO) \n Selects the color of the screen. 'AUTO' switches from one color to the next in tme intervals of approximately 3 s per color. \n :param pix_test_color: RED| BLUE| WHITe| GREen| AUTO| GR25| GR50| GR75| BLACk """param=Conversions.enum_scalar_to_str(pix_test_color,enums.PixelTestPredefined)self._core.io.write(f'TEST:PIXel:COLor {param}')
[docs]defget_gradient(self)->bool:"""SCPI: TEST:PIXel:GRADient \n Snippet: value: bool = driver.test.pixel.get_gradient() \n Activates the gradient for display screen test. \n :return: pix_test_grad_stat: 1| ON| 0| OFF """response=self._core.io.query_str('TEST:PIXel:GRADient?')returnConversions.str_to_bool(response)
[docs]defset_gradient(self,pix_test_grad_stat:bool)->None:"""SCPI: TEST:PIXel:GRADient \n Snippet: driver.test.pixel.set_gradient(pix_test_grad_stat = False) \n Activates the gradient for display screen test. \n :param pix_test_grad_stat: 1| ON| 0| OFF """param=Conversions.bool_to_str(pix_test_grad_stat)self._core.io.write(f'TEST:PIXel:GRADient {param}')
[docs]defget_point_size(self)->int:"""SCPI: TEST:PIXel:POINtsize \n Snippet: value: int = driver.test.pixel.get_point_size() \n Sets the point size of the test text. \n :return: pix_test_grad_stat: integer Range: 0 to 999 """response=self._core.io.query_str('TEST:PIXel:POINtsize?')returnConversions.str_to_int(response)
[docs]defset_point_size(self,pix_test_grad_stat:int)->None:"""SCPI: TEST:PIXel:POINtsize \n Snippet: driver.test.pixel.set_point_size(pix_test_grad_stat = 1) \n Sets the point size of the test text. \n :param pix_test_grad_stat: integer Range: 0 to 999 """param=Conversions.decimal_value_to_str(pix_test_grad_stat)self._core.io.write(f'TEST:PIXel:POINtsize {param}')
[docs]defget_rgba(self)->List[int]:"""SCPI: TEST:PIXel:RGBA \n Snippet: value: List[int] = driver.test.pixel.get_rgba() \n Sets a specific RGBA color for the screen. \n :return: pixel_test_rgba: No help available """response=self._core.io.query_bin_or_ascii_int_list('TEST:PIXel:RGBA?')returnresponse
[docs]defset_rgba(self,pixel_test_rgba:List[int])->None:"""SCPI: TEST:PIXel:RGBA \n Snippet: driver.test.pixel.set_rgba(pixel_test_rgba = [1, 2, 3]) \n Sets a specific RGBA color for the screen. \n :param pixel_test_rgba: No help available """param=Conversions.list_to_csv_str(pixel_test_rgba)self._core.io.write(f'TEST:PIXel:RGBA {param}')
[docs]defget_text(self)->bool:"""SCPI: TEST:PIXel:TEXT \n Snippet: value: bool = driver.test.pixel.get_text() \n Activats the test text mode. \n :return: pix_test_grad_stat: 1| ON| 0| OFF """response=self._core.io.query_str('TEST:PIXel:TEXT?')returnConversions.str_to_bool(response)
[docs]defset_text(self,pix_test_grad_stat:bool)->None:"""SCPI: TEST:PIXel:TEXT \n Snippet: driver.test.pixel.set_text(pix_test_grad_stat = False) \n Activats the test text mode. \n :param pix_test_grad_stat: 1| ON| 0| OFF """param=Conversions.bool_to_str(pix_test_grad_stat)self._core.io.write(f'TEST:PIXel:TEXT {param}')