[docs]defget_value(self)->float:"""SCPI: [SOURce<HW>]:CORRection:VALue \n Snippet: value: float = driver.source.correction.get_value() \n Queries the current value for user correction. \n :return: value: float Range: -100 to 100 """response=self._core.io.query_str('SOURce<HwInstance>:CORRection:VALue?')returnConversions.str_to_float(response)
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:CORRection:[STATe] \n Snippet: value: bool = driver.source.correction.get_state() \n Activates user correction with the currently selected table. \n :return: state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:CORRection:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: [SOURce<HW>]:CORRection:[STATe] \n Snippet: driver.source.correction.set_state(state = False) \n Activates user correction with the currently selected table. \n :param state: 1| ON| 0| OFF """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce<HwInstance>:CORRection:STATe {param}')
defclone(self)->'CorrectionCls':"""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=CorrectionCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group