[docs]classNotchCls:"""Notch commands group definition. 8 total commands, 4 Subgroups, 3 group commands Repeated Capability: NotchFilter, default value after init: NotchFilter.Nr1"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("notch",core,parent)self._cmd_group.rep_cap=RepeatedCapability(self._cmd_group.group_name,'repcap_notchFilter_get','repcap_notchFilter_set',repcap.NotchFilter.Nr1)defrepcap_notchFilter_set(self,notchFilter:repcap.NotchFilter)->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 NotchFilter.Default Default value after init: NotchFilter.Nr1"""self._cmd_group.set_repcap_enum_value(notchFilter)defrepcap_notchFilter_get(self)->repcap.NotchFilter:"""Returns the current default repeated capability for the child set/get methods"""# noinspection PyTypeCheckerreturnself._cmd_group.get_repcap_enum_value()@propertydefapply(self):"""apply commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_apply'):from.ApplyimportApplyClsself._apply=ApplyCls(self._core,self._cmd_group)returnself._apply@propertydefbandwidth(self):"""bandwidth commands group. 2 Sub-classes, 0 commands."""ifnothasattr(self,'_bandwidth'):from.BandwidthimportBandwidthClsself._bandwidth=BandwidthCls(self._core,self._cmd_group)returnself._bandwidth@propertydeffrequency(self):"""frequency commands group. 1 Sub-classes, 0 commands."""ifnothasattr(self,'_frequency'):from.FrequencyimportFrequencyClsself._frequency=FrequencyCls(self._core,self._cmd_group)returnself._frequency@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_clock(self)->int:"""SCPI: [SOURce<HW>]:BB:ONEWeb:NOTCh:CLOCk \n Snippet: value: int = driver.source.bb.oneweb.notch.get_clock() \n Queries the current clock frequency of the waveform signal. Works like the command [:SOURce<hw>]:BB:ARBitrary:CLOCk. \n :return: clock_freq: integer Range: 400 to 2000E6 """response=self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:NOTCh:CLOCk?')returnConversions.str_to_int(response)
[docs]defget_count(self)->int:"""SCPI: [SOURce<HW>]:BB:ONEWeb:NOTCh:COUNt \n Snippet: value: int = driver.source.bb.oneweb.notch.get_count() \n Sets the number of notches. \n :return: num_of_notch: No help available """response=self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:NOTCh:COUNt?')returnConversions.str_to_int(response)
[docs]defset_count(self,num_of_notch:int)->None:"""SCPI: [SOURce<HW>]:BB:ONEWeb:NOTCh:COUNt \n Snippet: driver.source.bb.oneweb.notch.set_count(num_of_notch = 1) \n Sets the number of notches. \n :param num_of_notch: integer Range: 1 to 25 """param=Conversions.decimal_value_to_str(num_of_notch)self._core.io.write(f'SOURce<HwInstance>:BB:ONEWeb:NOTCh:COUNt {param}')
[docs]defget_value(self)->bool:"""SCPI: [SOURce<HW>]:BB:ONEWeb:NOTCh \n Snippet: value: bool = driver.source.bb.oneweb.notch.get_value() \n Enables or disables the notch filter. \n :return: notch_state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:NOTCh?')returnConversions.str_to_bool(response)
[docs]defset_value(self,notch_state:bool)->None:"""SCPI: [SOURce<HW>]:BB:ONEWeb:NOTCh \n Snippet: driver.source.bb.oneweb.notch.set_value(notch_state = False) \n Enables or disables the notch filter. \n :param notch_state: 1| ON| 0| OFF """param=Conversions.bool_to_str(notch_state)self._core.io.write(f'SOURce<HwInstance>:BB:ONEWeb:NOTCh {param}')
defclone(self)->'NotchCls':"""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=NotchCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group