[docs]classClockCls:"""Clock commands group definition. 4 total commands, 1 Subgroups, 3 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("clock",core,parent)@propertydefsynchronization(self):"""synchronization commands group. 1 Sub-classes, 0 commands."""ifnothasattr(self,'_synchronization'):from.SynchronizationimportSynchronizationClsself._synchronization=SynchronizationCls(self._core,self._cmd_group)returnself._synchronization# noinspection PyTypeChecker
[docs]defget_mode(self)->enums.EuTraClockMode:"""SCPI: [SOURce<HW>]:BB:OFDM:CLOCk:MODE \n Snippet: value: enums.EuTraClockMode = driver.source.bb.ofdm.clock.get_mode() \n Sets the type of externally supplied clock. \n :return: clock_mode: SAMPle """response=self._core.io.query_str('SOURce<HwInstance>:BB:OFDM:CLOCk:MODE?')returnConversions.str_to_scalar_enum(response,enums.EuTraClockMode)
[docs]defset_mode(self,clock_mode:enums.EuTraClockMode)->None:"""SCPI: [SOURce<HW>]:BB:OFDM:CLOCk:MODE \n Snippet: driver.source.bb.ofdm.clock.set_mode(clock_mode = enums.EuTraClockMode.CUSTom) \n Sets the type of externally supplied clock. \n :param clock_mode: SAMPle """param=Conversions.enum_scalar_to_str(clock_mode,enums.EuTraClockMode)self._core.io.write(f'SOURce<HwInstance>:BB:OFDM:CLOCk:MODE {param}')
[docs]defget_multiplier(self)->int:"""SCPI: [SOURce<HW>]:BB:OFDM:CLOCk:MULTiplier \n Snippet: value: int = driver.source.bb.ofdm.clock.get_multiplier() \n No command help available \n :return: clock_samp_mult: No help available """response=self._core.io.query_str('SOURce<HwInstance>:BB:OFDM:CLOCk:MULTiplier?')returnConversions.str_to_int(response)
[docs]defset_multiplier(self,clock_samp_mult:int)->None:"""SCPI: [SOURce<HW>]:BB:OFDM:CLOCk:MULTiplier \n Snippet: driver.source.bb.ofdm.clock.set_multiplier(clock_samp_mult = 1) \n No command help available \n :param clock_samp_mult: No help available """param=Conversions.decimal_value_to_str(clock_samp_mult)self._core.io.write(f'SOURce<HwInstance>:BB:OFDM:CLOCk:MULTiplier {param}')
# noinspection PyTypeChecker
[docs]defget_source(self)->enums.ClockSourceC:"""SCPI: [SOURce<HW>]:BB:OFDM:CLOCk:SOURce \n Snippet: value: enums.ClockSourceC = driver.source.bb.ofdm.clock.get_source() \n INTRO_CMD_HELP: Selects the clock source: \n - INTernal: Internal clock reference - ELCLock: External local clock - EXTernal = ELCLock: Setting only Provided for backward compatibility with other Rohde & Schwarz signal generators \n :return: clock_source: INTernal| ELCLock| EXTernal """response=self._core.io.query_str('SOURce<HwInstance>:BB:OFDM:CLOCk:SOURce?')returnConversions.str_to_scalar_enum(response,enums.ClockSourceC)
[docs]defset_source(self,clock_source:enums.ClockSourceC)->None:"""SCPI: [SOURce<HW>]:BB:OFDM:CLOCk:SOURce \n Snippet: driver.source.bb.ofdm.clock.set_source(clock_source = enums.ClockSourceC.ELCLock) \n INTRO_CMD_HELP: Selects the clock source: \n - INTernal: Internal clock reference - ELCLock: External local clock - EXTernal = ELCLock: Setting only Provided for backward compatibility with other Rohde & Schwarz signal generators \n :param clock_source: INTernal| ELCLock| EXTernal """param=Conversions.enum_scalar_to_str(clock_source,enums.ClockSourceC)self._core.io.write(f'SOURce<HwInstance>:BB:OFDM:CLOCk:SOURce {param}')
defclone(self)->'ClockCls':"""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=ClockCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group