[docs]classDataCls:"""Data commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("data",core,parent)
[docs]defset(self,frequency:List[float],level:List[float],window=repcap.Window.Default)->None:"""SCPI: CALCulate<n>:MASK:UPPer[:DATA] \n Snippet: driver.calculate.mask.upper.data.set(frequency = [1.1, 2.2, 3.3], level = [1.1, 2.2, 3.3], window = repcap.Window.Default) \n Activates and defines the shape of the upper frequency mask trigger mask. You have to select a mask before you can use this command with method RsFsw.Calculate.Mask.Name.set. [N] pairs of numerical values. [N] is the number of data points the mask consists of. Each data point is defined by the frequency and the level. All values are separated by commas. \n :param frequency: Frequency of the data point within the current span. Unit: Hz :param level: Level of the data point. The unit of the power levels depends on method RsFsw.Calculate.Mask.Mode.set. Unit: DBM :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') """param=ArgSingleList().compose_cmd_string(ArgSingle.as_open_list('frequency',frequency,DataType.FloatList,None),ArgSingle.as_open_list('level',level,DataType.FloatList,None))window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)self._core.io.write(f'CALCulate{window_cmd_val}:MASK:UPPer:DATA {param}'.rstrip())
# noinspection PyTypeChecker
[docs]classDataStruct(StructBase):"""Response structure. Fields: \n - Frequency: List[float]: Frequency of the data point within the current span. Unit: Hz - Level: List[float]: Level of the data point. The unit of the power levels depends on [CMDLINKRESOLVED Calculate.Mask.Mode#set CMDLINKRESOLVED]. Unit: DBM"""__meta_args_list=[ArgStruct('Frequency',DataType.FloatList,None,False,True,1),ArgStruct('Level',DataType.FloatList,None,False,True,1)]def__init__(self):StructBase.__init__(self,self)self.Frequency:List[float]=Noneself.Level:List[float]=None
[docs]defget(self,window=repcap.Window.Default)->DataStruct:"""SCPI: CALCulate<n>:MASK:UPPer[:DATA] \n Snippet: value: DataStruct = driver.calculate.mask.upper.data.get(window = repcap.Window.Default) \n Activates and defines the shape of the upper frequency mask trigger mask. You have to select a mask before you can use this command with method RsFsw.Calculate.Mask.Name.set. [N] pairs of numerical values. [N] is the number of data points the mask consists of. Each data point is defined by the frequency and the level. All values are separated by commas. \n :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :return: structure: for return value, see the help for DataStruct structure arguments."""window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)returnself._core.io.query_struct(f'CALCulate{window_cmd_val}:MASK:UPPer:DATA?',self.__class__.DataStruct())