[docs]classGraphicsCls:"""Graphics commands group definition. 10 total commands, 3 Subgroups, 5 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("graphics",core,parent)@propertydefsource(self):"""source commands group. 0 Sub-classes, 2 commands."""ifnothasattr(self,'_source'):from.SourceimportSourceClsself._source=SourceCls(self._core,self._cmd_group)returnself._source@propertydefsymbolRate(self):"""symbolRate commands group. 0 Sub-classes, 2 commands."""ifnothasattr(self,'_symbolRate'):from.SymbolRateimportSymbolRateClsself._symbolRate=SymbolRateCls(self._core,self._cmd_group)returnself._symbolRate@propertydeftrigger(self):"""trigger commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_trigger'):from.TriggerimportTriggerClsself._trigger=TriggerCls(self._core,self._cmd_group)returnself._trigger
[docs]defset_add(self,size:enums.TranRecSize)->None:"""SCPI: [SOURce]:BB:GRAPhics:ADD \n Snippet: driver.source.bb.graphics.set_add(size = enums.TranRecSize.MAXimized) \n Adds a graphical signal display (according to the current MODE, SOURce, SRATe:* and TRIGger:* settings) . \n :param size: MAXimized| MINimized """param=Conversions.enum_scalar_to_str(size,enums.TranRecSize)self._core.io.write(f'SOURce:BB:GRAPhics:ADD {param}')
[docs]defclose(self)->None:"""SCPI: [SOURce]:BB:GRAPhics:CLOSe \n Snippet: driver.source.bb.graphics.close() \n Closes all graphical signal displays. \n """self._core.io.write(f'SOURce:BB:GRAPhics:CLOSe')
[docs]defclose_with_opc(self,opc_timeout_ms:int=-1)->None:"""SCPI: [SOURce]:BB:GRAPhics:CLOSe \n Snippet: driver.source.bb.graphics.close_with_opc() \n Closes all graphical signal displays. \n Same as close, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call."""self._core.io.write_with_opc(f'SOURce:BB:GRAPhics:CLOSe',opc_timeout_ms)
[docs]defget_fft_fscale(self)->bool:"""SCPI: [SOURce]:BB:GRAPhics:FFTFscale \n Snippet: value: bool = driver.source.bb.graphics.get_fft_fscale() \n Defines the normalization of the power values in the power spectrum diagram. \n :return: state: 1| ON| 0| OFF 1 Normalized power in dBFS 0 Shows power distribution in dB/Hz """response=self._core.io.query_str('SOURce:BB:GRAPhics:FFTFscale?')returnConversions.str_to_bool(response)
[docs]defset_fft_fscale(self,state:bool)->None:"""SCPI: [SOURce]:BB:GRAPhics:FFTFscale \n Snippet: driver.source.bb.graphics.set_fft_fscale(state = False) \n Defines the normalization of the power values in the power spectrum diagram. \n :param state: 1| ON| 0| OFF 1 Normalized power in dBFS 0 Shows power distribution in dB/Hz """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce:BB:GRAPhics:FFTFscale {param}')
[docs]defget_mode(self)->enums.TranRecMode:"""SCPI: [SOURce<HW>]:BB:GRAPhics:MODE \n Snippet: value: enums.TranRecMode = driver.source.bb.graphics.get_mode() \n Sets the graphics mode of the graphical signal display. \n :return: mode: IQ| VECTor| CCDF| PSPectrum| CONStellation| EYEI| EYEQ """response=self._core.io.query_str('SOURce<HwInstance>:BB:GRAPhics:MODE?')returnConversions.str_to_scalar_enum(response,enums.TranRecMode)
[docs]defset_mode(self,mode:enums.TranRecMode)->None:"""SCPI: [SOURce<HW>]:BB:GRAPhics:MODE \n Snippet: driver.source.bb.graphics.set_mode(mode = enums.TranRecMode.CCDF) \n Sets the graphics mode of the graphical signal display. \n :param mode: IQ| VECTor| CCDF| PSPectrum| CONStellation| EYEI| EYEQ """param=Conversions.enum_scalar_to_str(mode,enums.TranRecMode)self._core.io.write(f'SOURce<HwInstance>:BB:GRAPhics:MODE {param}')
defclone(self)->'GraphicsCls':"""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=GraphicsCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group