[docs]defget_mode(self)->enums.RegTrigMode:"""SCPI: [SOURce<HW>]:REGenerator:RESTart:MODE \n Snippet: value: enums.RegTrigMode = driver.source.regenerator.restart.get_mode() \n Selects the event which leads to a restart of the REG simulation. \n :return: mode: AUTO| AAUTo AUTO The signal generation starts after the REG is enabled. The signal is generated continuously; all configured objects are simulated. AAUT Simulation starts upon trigger event ([:SOURcehw]:REGenerator:RESTart:EXECute) . Then the signal is generated continuously; all configured objects are simulated. """response=self._core.io.query_str('SOURce<HwInstance>:REGenerator:RESTart:MODE?')returnConversions.str_to_scalar_enum(response,enums.RegTrigMode)
[docs]defset_mode(self,mode:enums.RegTrigMode)->None:"""SCPI: [SOURce<HW>]:REGenerator:RESTart:MODE \n Snippet: driver.source.regenerator.restart.set_mode(mode = enums.RegTrigMode.AAUTo) \n Selects the event which leads to a restart of the REG simulation. \n :param mode: AUTO| AAUTo AUTO The signal generation starts after the REG is enabled. The signal is generated continuously; all configured objects are simulated. AAUT Simulation starts upon trigger event ([:SOURcehw]:REGenerator:RESTart:EXECute) . Then the signal is generated continuously; all configured objects are simulated. """param=Conversions.enum_scalar_to_str(mode,enums.RegTrigMode)self._core.io.write(f'SOURce<HwInstance>:REGenerator:RESTart:MODE {param}')
# noinspection PyTypeChecker
[docs]defget_rmode(self)->enums.TrigRunMode:"""SCPI: [SOURce<HW>]:REGenerator:RESTart:RMODe \n Snippet: value: enums.TrigRunMode = driver.source.regenerator.restart.get_rmode() \n Queries the status of signal generation for all trigger modes. \n :return: rmode: STOP| RUN """response=self._core.io.query_str('SOURce<HwInstance>:REGenerator:RESTart:RMODe?')returnConversions.str_to_scalar_enum(response,enums.TrigRunMode)
# noinspection PyTypeChecker
[docs]defget_source(self)->enums.TrigSourReg:"""SCPI: [SOURce<HW>]:REGenerator:RESTart:SOURce \n Snippet: value: enums.TrigSourReg = driver.source.regenerator.restart.get_source() \n Selects the trigger signal source and determines the way the triggering is executed. \n :return: source: INTernal| ERRTA| ERRTB INTernal Internal triggering by the command [:SOURcehw]:REGenerator:RESTart:EXECute. ERRTA|ERRTB External trigger signal via one of the external global trigger connectors. See [:SOURce]:INPut:USERch:SIGNal. """response=self._core.io.query_str('SOURce<HwInstance>:REGenerator:RESTart:SOURce?')returnConversions.str_to_scalar_enum(response,enums.TrigSourReg)
[docs]defset_source(self,source:enums.TrigSourReg)->None:"""SCPI: [SOURce<HW>]:REGenerator:RESTart:SOURce \n Snippet: driver.source.regenerator.restart.set_source(source = enums.TrigSourReg.ERRTA) \n Selects the trigger signal source and determines the way the triggering is executed. \n :param source: INTernal| ERRTA| ERRTB INTernal Internal triggering by the command [:SOURcehw]:REGenerator:RESTart:EXECute. ERRTA|ERRTB External trigger signal via one of the external global trigger connectors. See [:SOURce]:INPut:USERch:SIGNal. """param=Conversions.enum_scalar_to_str(source,enums.TrigSourReg)self._core.io.write(f'SOURce<HwInstance>:REGenerator:RESTart:SOURce {param}')
[docs]defget_st_attenuation(self)->float:"""SCPI: [SOURce<HW>]:REGenerator:RESTart:STATtenuation \n Snippet: value: float = driver.source.regenerator.restart.get_st_attenuation() \n If [:SOURce<hw>]:REGenerator:RESTart:MODE AAUT, sets the attenuation applied on the output signal during the time the signal generation is stopped. \n :return: stop_time_att: float Range: 0 to 60 """response=self._core.io.query_str('SOURce<HwInstance>:REGenerator:RESTart:STATtenuation?')returnConversions.str_to_float(response)
[docs]defset_st_attenuation(self,stop_time_att:float)->None:"""SCPI: [SOURce<HW>]:REGenerator:RESTart:STATtenuation \n Snippet: driver.source.regenerator.restart.set_st_attenuation(stop_time_att = 1.0) \n If [:SOURce<hw>]:REGenerator:RESTart:MODE AAUT, sets the attenuation applied on the output signal during the time the signal generation is stopped. \n :param stop_time_att: float Range: 0 to 60 """param=Conversions.decimal_value_to_str(stop_time_att)self._core.io.write(f'SOURce<HwInstance>:REGenerator:RESTart:STATtenuation {param}')
defclone(self)->'RestartCls':"""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=RestartCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group