[docs]classRangeCls:"""Range commands group definition. 23 total commands, 12 Subgroups, 1 group commands Repeated Capability: RangePy, default value after init: RangePy.Ix1"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("range",core,parent)self._cmd_group.rep_cap=RepeatedCapability(self._cmd_group.group_name,'repcap_rangePy_get','repcap_rangePy_set',repcap.RangePy.Ix1)defrepcap_rangePy_set(self,rangePy:repcap.RangePy)->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 RangePy.Default Default value after init: RangePy.Ix1"""self._cmd_group.set_repcap_enum_value(rangePy)defrepcap_rangePy_get(self)->repcap.RangePy:"""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. 2 Sub-classes, 0 commands."""ifnothasattr(self,'_bandwidth'):from.BandwidthimportBandwidthClsself._bandwidth=BandwidthCls(self._core,self._cmd_group)returnself._bandwidth@propertydefbreakPy(self):"""breakPy commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_breakPy'):from.BreakPyimportBreakPyClsself._breakPy=BreakPyCls(self._core,self._cmd_group)returnself._breakPy@propertydefcount(self):"""count commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_count'):from.CountimportCountClsself._count=CountCls(self._core,self._cmd_group)returnself._count@propertydefdetector(self):"""detector commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_detector'):from.DetectorimportDetectorClsself._detector=DetectorCls(self._core,self._cmd_group)returnself._detector@propertydeffilterPy(self):"""filterPy commands group. 1 Sub-classes, 0 commands."""ifnothasattr(self,'_filterPy'):from.FilterPyimportFilterPyClsself._filterPy=FilterPyCls(self._core,self._cmd_group)returnself._filterPy@propertydeffrequency(self):"""frequency commands group. 2 Sub-classes, 0 commands."""ifnothasattr(self,'_frequency'):from.FrequencyimportFrequencyClsself._frequency=FrequencyCls(self._core,self._cmd_group)returnself._frequency@propertydefinputPy(self):"""inputPy commands group. 3 Sub-classes, 0 commands."""ifnothasattr(self,'_inputPy'):from.InputPyimportInputPyClsself._inputPy=InputPyCls(self._core,self._cmd_group)returnself._inputPy@propertydefpoints(self):"""points commands group. 1 Sub-classes, 0 commands."""ifnothasattr(self,'_points'):from.PointsimportPointsClsself._points=PointsCls(self._core,self._cmd_group)returnself._points@propertydefrefLevel(self):"""refLevel commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_refLevel'):from.RefLevelimportRefLevelClsself._refLevel=RefLevelCls(self._core,self._cmd_group)returnself._refLevel@propertydefsweep(self):"""sweep commands group. 1 Sub-classes, 0 commands."""ifnothasattr(self,'_sweep'):from.SweepimportSweepClsself._sweep=SweepCls(self._core,self._cmd_group)returnself._sweep@propertydeflimit(self):"""limit commands group. 3 Sub-classes, 0 commands."""ifnothasattr(self,'_limit'):from.LimitimportLimitClsself._limit=LimitCls(self._core,self._cmd_group)returnself._limit@propertydeftransducer(self):"""transducer commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_transducer'):from.TransducerimportTransducerClsself._transducer=TransducerCls(self._core,self._cmd_group)returnself._transducer
[docs]defdelete(self,rangePy=repcap.RangePy.Default)->None:"""SCPI: [SENSe]:LIST:RANGe<ri>:DELete \n Snippet: driver.sense.listPy.range.delete(rangePy = repcap.RangePy.Default) \n Removes a range from the sweep list. Note that INTRO_CMD_HELP: For triggered gated measurements,only the following gate trigger sources are supported: \n - you cannot delete the reference range - a minimum of three ranges is mandatory. The sweep list cannot be configured using remote commands during an on-going sweep operation. \n :param rangePy: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Range') """rangePy_cmd_val=self._cmd_group.get_repcap_cmd_value(rangePy,repcap.RangePy)self._core.io.write(f'SENSe:LIST:RANGe{rangePy_cmd_val}:DELete')
[docs]defdelete_with_opc(self,rangePy=repcap.RangePy.Default,opc_timeout_ms:int=-1)->None:rangePy_cmd_val=self._cmd_group.get_repcap_cmd_value(rangePy,repcap.RangePy)"""SCPI: [SENSe]:LIST:RANGe<ri>:DELete \n Snippet: driver.sense.listPy.range.delete_with_opc(rangePy = repcap.RangePy.Default) \n Removes a range from the sweep list. Note that INTRO_CMD_HELP: For triggered gated measurements,only the following gate trigger sources are supported: \n - you cannot delete the reference range - a minimum of three ranges is mandatory. The sweep list cannot be configured using remote commands during an on-going sweep operation. \n Same as delete, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value. \n :param rangePy: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Range') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call."""self._core.io.write_with_opc(f'SENSe:LIST:RANGe{rangePy_cmd_val}:DELete',opc_timeout_ms)
defclone(self)->'RangeCls':"""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=RangeCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group