[docs]classLfOutputCls:"""LfOutput commands group definition. 35 total commands, 8 Subgroups, 3 group commands Repeated Capability: LfOutput, default value after init: LfOutput.Nr1"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("lfOutput",core,parent)self._cmd_group.rep_cap=RepeatedCapability(self._cmd_group.group_name,'repcap_lfOutput_get','repcap_lfOutput_set',repcap.LfOutput.Nr1)defrepcap_lfOutput_set(self,lfOutput:repcap.LfOutput)->None:"""Repeated Capability default value numeric suffix. This value is used, if you do not explicitely set it in the child set/get methods, or if you leave it to LfOutput.Default Default value after init: LfOutput.Nr1"""self._cmd_group.set_repcap_enum_value(lfOutput)defrepcap_lfOutput_get(self)->repcap.LfOutput:"""Returns the current default repeated capability for the child set/get methods"""# noinspection PyTypeCheckerreturnself._cmd_group.get_repcap_enum_value()@propertydefbandwidth(self):"""bandwidth commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_bandwidth'):from.BandwidthimportBandwidthClsself._bandwidth=BandwidthCls(self._core,self._cmd_group)returnself._bandwidth@propertydeffrequency(self):"""frequency commands group. 0 Sub-classes, 5 commands."""ifnothasattr(self,'_frequency'):from.FrequencyimportFrequencyClsself._frequency=FrequencyCls(self._core,self._cmd_group)returnself._frequency@propertydefinternal(self):"""internal commands group. 1 Sub-classes, 0 commands."""ifnothasattr(self,'_internal'):from.InternalimportInternalClsself._internal=InternalCls(self._core,self._cmd_group)returnself._internal@propertydefperiod(self):"""period commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_period'):from.PeriodimportPeriodClsself._period=PeriodCls(self._core,self._cmd_group)returnself._period@propertydefshape(self):"""shape commands group. 3 Sub-classes, 1 commands."""ifnothasattr(self,'_shape'):from.ShapeimportShapeClsself._shape=ShapeCls(self._core,self._cmd_group)returnself._shape@propertydefsource(self):"""source commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_source'):from.SourceimportSourceClsself._source=SourceCls(self._core,self._cmd_group)returnself._source@propertydefsweep(self):"""sweep commands group. 1 Sub-classes, 0 commands."""ifnothasattr(self,'_sweep'):from.SweepimportSweepClsself._sweep=SweepCls(self._core,self._cmd_group)returnself._sweep@propertydefstate(self):"""state commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_state'):from.StateimportStateClsself._state=StateCls(self._core,self._cmd_group)returnself._state
[docs]defget_offset(self)->float:"""SCPI: [SOURce]:LFOutput:OFFSet \n Snippet: value: float = driver.source.lfOutput.get_offset() \n Sets a DC offset at the LF Output. \n :return: offset: float Range: depends on lfo voltage """response=self._core.io.query_str('SOURce:LFOutput:OFFSet?')returnConversions.str_to_float(response)
[docs]defset_offset(self,offset:float)->None:"""SCPI: [SOURce]:LFOutput:OFFSet \n Snippet: driver.source.lfOutput.set_offset(offset = 1.0) \n Sets a DC offset at the LF Output. \n :param offset: float Range: depends on lfo voltage """param=Conversions.decimal_value_to_str(offset)self._core.io.write(f'SOURce:LFOutput:OFFSet {param}')
# noinspection PyTypeChecker
[docs]defget_simpedance(self)->enums.LfSourceImp:"""SCPI: [SOURce]:LFOutput:SIMPedance \n Snippet: value: enums.LfSourceImp = driver.source.lfOutput.get_simpedance() \n Selects the impedance of the LF output. \n :return: simpedance: G600| G50 """response=self._core.io.query_str('SOURce:LFOutput:SIMPedance?')returnConversions.str_to_scalar_enum(response,enums.LfSourceImp)
[docs]defset_simpedance(self,simpedance:enums.LfSourceImp)->None:"""SCPI: [SOURce]:LFOutput:SIMPedance \n Snippet: driver.source.lfOutput.set_simpedance(simpedance = enums.LfSourceImp.G50) \n Selects the impedance of the LF output. \n :param simpedance: G600| G50 """param=Conversions.enum_scalar_to_str(simpedance,enums.LfSourceImp)self._core.io.write(f'SOURce:LFOutput:SIMPedance {param}')
[docs]defget_voltage(self)->float:"""SCPI: [SOURce]:LFOutput:VOLTage \n Snippet: value: float = driver.source.lfOutput.get_voltage() \n Sets the voltage of the LF output. \n :return: voltage: float Range: dynamic (see data sheet) """response=self._core.io.query_str('SOURce:LFOutput:VOLTage?')returnConversions.str_to_float(response)
[docs]defset_voltage(self,voltage:float)->None:"""SCPI: [SOURce]:LFOutput:VOLTage \n Snippet: driver.source.lfOutput.set_voltage(voltage = 1.0) \n Sets the voltage of the LF output. \n :param voltage: float Range: dynamic (see data sheet) """param=Conversions.decimal_value_to_str(voltage)self._core.io.write(f'SOURce:LFOutput:VOLTage {param}')
defclone(self)->'LfOutputCls':"""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=LfOutputCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group