[docs]classModeCls:"""Mode commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("mode",core,parent)# noinspection PyTypeChecker
[docs]defget_advanced(self)->enums.AutoManualMode:"""SCPI: [SOURce<HW>]:SWEep:POWer:MODE:ADVanced \n Snippet: value: enums.AutoManualMode = driver.source.sweep.power.mode.get_advanced() \n No command help available \n :return: pow_mode_adv: No help available """response=self._core.io.query_str('SOURce<HwInstance>:SWEep:POWer:MODE:ADVanced?')returnConversions.str_to_scalar_enum(response,enums.AutoManualMode)
[docs]defset_advanced(self,pow_mode_adv:enums.AutoManualMode)->None:"""SCPI: [SOURce<HW>]:SWEep:POWer:MODE:ADVanced \n Snippet: driver.source.sweep.power.mode.set_advanced(pow_mode_adv = enums.AutoManualMode.AUTO) \n No command help available \n :param pow_mode_adv: No help available """param=Conversions.enum_scalar_to_str(pow_mode_adv,enums.AutoManualMode)self._core.io.write(f'SOURce<HwInstance>:SWEep:POWer:MODE:ADVanced {param}')
# noinspection PyTypeChecker
[docs]defget_value(self)->enums.AutoManStep:"""SCPI: [SOURce<HW>]:SWEep:POWer:MODE \n Snippet: value: enums.AutoManStep = driver.source.sweep.power.mode.get_value() \n Sets the cycle mode for the level sweep. \n :return: mode: AUTO| MANual| STEP AUTO Each trigger triggers exactly one complete sweep. MANual The trigger system is not active. You can trigger every step individually with the command [:SOURcehw]:POWer:MANual. The level value increases at each step by the value that you define with [:SOURcehw]:POWer:STEP[:INCRement]. Values directly entered with the command [:SOURcehw]:POWer:MANual are not taken into account. STEP Each trigger triggers one sweep step only. The level increases by the value entered with [:SOURcehw]:POWer:STEP[:INCRement]. """response=self._core.io.query_str('SOURce<HwInstance>:SWEep:POWer:MODE?')returnConversions.str_to_scalar_enum(response,enums.AutoManStep)
[docs]defset_value(self,mode:enums.AutoManStep)->None:"""SCPI: [SOURce<HW>]:SWEep:POWer:MODE \n Snippet: driver.source.sweep.power.mode.set_value(mode = enums.AutoManStep.AUTO) \n Sets the cycle mode for the level sweep. \n :param mode: AUTO| MANual| STEP AUTO Each trigger triggers exactly one complete sweep. MANual The trigger system is not active. You can trigger every step individually with the command [:SOURcehw]:POWer:MANual. The level value increases at each step by the value that you define with [:SOURcehw]:POWer:STEP[:INCRement]. Values directly entered with the command [:SOURcehw]:POWer:MANual are not taken into account. STEP Each trigger triggers one sweep step only. The level increases by the value entered with [:SOURcehw]:POWer:STEP[:INCRement]. """param=Conversions.enum_scalar_to_str(mode,enums.AutoManStep)self._core.io.write(f'SOURce<HwInstance>:SWEep:POWer:MODE {param}')