[docs]classExternalCls:"""External commands group definition. 1 total commands, 0 Subgroups, 1 group commands Repeated Capability: ExternalPort, default value after init: ExternalPort.Nr1"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("external",core,parent)self._cmd_group.rep_cap=RepeatedCapability(self._cmd_group.group_name,'repcap_externalPort_get','repcap_externalPort_set',repcap.ExternalPort.Nr1)defrepcap_externalPort_set(self,externalPort:repcap.ExternalPort)->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 ExternalPort.Default Default value after init: ExternalPort.Nr1"""self._cmd_group.set_repcap_enum_value(externalPort)defrepcap_externalPort_get(self)->repcap.ExternalPort:"""Returns the current default repeated capability for the child set/get methods"""# noinspection PyTypeCheckerreturnself._cmd_group.get_repcap_enum_value()
[docs]defset(self,gate_level:float,externalPort=repcap.ExternalPort.Default)->None:"""SCPI: [SENSe]:SWEep:EGATe:LEVel[:EXTernal<tp>] \n Snippet: driver.sense.sweep.egate.level.external.set(gate_level = 1.0, externalPort = repcap.ExternalPort.Default) \n Defines the gate level for which the gate is open. Is only available for triggered gated measurements ([SENSe:]SWEep:EGATe:AUTOMAN) . \n :param gate_level: numeric value Range: 0.5 V to 3.5 V, Unit: V :param externalPort: optional repeated capability selector. Default value: Nr1 (settable in the interface 'External') """param=Conversions.decimal_value_to_str(gate_level)externalPort_cmd_val=self._cmd_group.get_repcap_cmd_value(externalPort,repcap.ExternalPort)self._core.io.write(f'SENSe:SWEep:EGATe:LEVel:EXTernal{externalPort_cmd_val}{param}')
[docs]defget(self,externalPort=repcap.ExternalPort.Default)->float:"""SCPI: [SENSe]:SWEep:EGATe:LEVel[:EXTernal<tp>] \n Snippet: value: float = driver.sense.sweep.egate.level.external.get(externalPort = repcap.ExternalPort.Default) \n Defines the gate level for which the gate is open. Is only available for triggered gated measurements ([SENSe:]SWEep:EGATe:AUTOMAN) . \n :param externalPort: optional repeated capability selector. Default value: Nr1 (settable in the interface 'External') :return: gate_level: numeric value Range: 0.5 V to 3.5 V, Unit: V"""externalPort_cmd_val=self._cmd_group.get_repcap_cmd_value(externalPort,repcap.ExternalPort)response=self._core.io.query_str(f'SENSe:SWEep:EGATe:LEVel:EXTernal{externalPort_cmd_val}?')returnConversions.str_to_float(response)
defclone(self)->'ExternalCls':"""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=ExternalCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group