[docs]classAbsoluteCls:"""Absolute commands group definition. 2 total commands, 1 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("absolute",core,parent)@propertydefstate(self):"""state commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_state'):from.StateimportStateClsself._state=StateCls(self._core,self._cmd_group)returnself._state
[docs]defset(self,limit:float,reserved:float=None,window=repcap.Window.Default,limitIx=repcap.LimitIx.Default,gapChannel=repcap.GapChannel.Default)->None:"""SCPI: CALCulate<n>:LIMit<li>:ACPower:GAP<gap>[:AUTO]:ABSolute \n Snippet: driver.calculate.limit.acPower.gap.auto.absolute.set(limit = 1.0, reserved = 1.0, window = repcap.Window.Default, limitIx = repcap.LimitIx.Default, gapChannel = repcap.GapChannel.Default) \n Defines the absolute limit of the specified gap (CACLR) channel. If you define both an absolute limit and a relative limit, the FSW uses the lower value for the limit check. \n :param limit: Defines the absolute limit of the specified gap channel. Unit: dBm :param reserved: Ignored. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :param limitIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Limit') :param gapChannel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Gap') """param=ArgSingleList().compose_cmd_string(ArgSingle('limit',limit,DataType.Float),ArgSingle('reserved',reserved,DataType.Float,None,is_optional=True))window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)limitIx_cmd_val=self._cmd_group.get_repcap_cmd_value(limitIx,repcap.LimitIx)gapChannel_cmd_val=self._cmd_group.get_repcap_cmd_value(gapChannel,repcap.GapChannel)self._core.io.write(f'CALCulate{window_cmd_val}:LIMit{limitIx_cmd_val}:ACPower:GAP{gapChannel_cmd_val}:AUTO:ABSolute {param}'.rstrip())
# noinspection PyTypeChecker
[docs]classAbsoluteStruct(StructBase):"""Response structure. Fields: \n - Limit: float: Defines the absolute limit of the specified gap channel. Unit: dBm - Reserved: float: Ignored."""__meta_args_list=[ArgStruct.scalar_float('Limit'),ArgStruct.scalar_float('Reserved')]def__init__(self):StructBase.__init__(self,self)self.Limit:float=Noneself.Reserved:float=None
[docs]defget(self,window=repcap.Window.Default,limitIx=repcap.LimitIx.Default,gapChannel=repcap.GapChannel.Default)->AbsoluteStruct:"""SCPI: CALCulate<n>:LIMit<li>:ACPower:GAP<gap>[:AUTO]:ABSolute \n Snippet: value: AbsoluteStruct = driver.calculate.limit.acPower.gap.auto.absolute.get(window = repcap.Window.Default, limitIx = repcap.LimitIx.Default, gapChannel = repcap.GapChannel.Default) \n Defines the absolute limit of the specified gap (CACLR) channel. If you define both an absolute limit and a relative limit, the FSW uses the lower value for the limit check. \n :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :param limitIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Limit') :param gapChannel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Gap') :return: structure: for return value, see the help for AbsoluteStruct structure arguments."""window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)limitIx_cmd_val=self._cmd_group.get_repcap_cmd_value(limitIx,repcap.LimitIx)gapChannel_cmd_val=self._cmd_group.get_repcap_cmd_value(gapChannel,repcap.GapChannel)returnself._core.io.query_struct(f'CALCulate{window_cmd_val}:LIMit{limitIx_cmd_val}:ACPower:GAP{gapChannel_cmd_val}:AUTO:ABSolute?',self.__class__.AbsoluteStruct())
defclone(self)->'AbsoluteCls':"""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=AbsoluteCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group