[docs]classStsCls:"""Sts commands group definition. 7 total commands, 1 Subgroups, 6 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("sts",core,parent)@propertydefdata(self):"""data commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_data'):from.DataimportDataClsself._data=DataCls(self._core,self._cmd_group)returnself._data
[docs]defget_cpart(self)->str:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:CPARt \n Snippet: value: str = driver.source.bb.huwb.sts.get_cpart() \n Sets the counter part of the V valued. The value is a 32-bit value in hexadecimal representation. \n :return: counter_part: integer """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:STS:CPARt?')returntrim_str_response(response)
[docs]defset_cpart(self,counter_part:str)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:CPARt \n Snippet: driver.source.bb.huwb.sts.set_cpart(counter_part = rawAbc) \n Sets the counter part of the V valued. The value is a 32-bit value in hexadecimal representation. \n :param counter_part: integer """param=Conversions.value_to_str(counter_part)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:STS:CPARt {param}')
# noinspection PyTypeChecker
[docs]defget_dlen(self)->enums.HrpUwbStsDeltaLen:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:DLEN \n Snippet: value: enums.HrpUwbStsDeltaLen = driver.source.bb.huwb.sts.get_dlen() \n Queries the delta length of the scrambled timestamp sequence (STS) . \n :return: delta_length: DL_4| DL_8 """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:STS:DLEN?')returnConversions.str_to_scalar_enum(response,enums.HrpUwbStsDeltaLen)
[docs]defset_dlen(self,delta_length:enums.HrpUwbStsDeltaLen)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:DLEN \n Snippet: driver.source.bb.huwb.sts.set_dlen(delta_length = enums.HrpUwbStsDeltaLen.DL_4) \n Queries the delta length of the scrambled timestamp sequence (STS) . \n :param delta_length: DL_4| DL_8 """param=Conversions.enum_scalar_to_str(delta_length,enums.HrpUwbStsDeltaLen)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:STS:DLEN {param}')
[docs]defget_dls(self)->bool:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:DLS \n Snippet: value: bool = driver.source.bb.huwb.sts.get_dls() \n Activates the STS source. If activated, you can select an STS data list from a designated folder to import a user defined STS sequence. \n :return: sts_datalist: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:STS:DLS?')returnConversions.str_to_bool(response)
[docs]defset_dls(self,sts_datalist:bool)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:DLS \n Snippet: driver.source.bb.huwb.sts.set_dls(sts_datalist = False) \n Activates the STS source. If activated, you can select an STS data list from a designated folder to import a user defined STS sequence. \n :param sts_datalist: 1| ON| 0| OFF """param=Conversions.bool_to_str(sts_datalist)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:STS:DLS {param}')
[docs]defget_key(self)->str:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:KEY \n Snippet: value: str = driver.source.bb.huwb.sts.get_key() \n Sets the key value of the scrambled timestamp sequence (STS) . The value is a 128-bit value in hexadecimal representation. \n :return: key: integer """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:STS:KEY?')returntrim_str_response(response)
[docs]defset_key(self,key:str)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:KEY \n Snippet: driver.source.bb.huwb.sts.set_key(key = rawAbc) \n Sets the key value of the scrambled timestamp sequence (STS) . The value is a 128-bit value in hexadecimal representation. \n :param key: integer """param=Conversions.value_to_str(key)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:STS:KEY {param}')
[docs]defget_upart(self)->str:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:UPARt \n Snippet: value: str = driver.source.bb.huwb.sts.get_upart() \n Sets the upper part of the V value. The value is a 96-bit value in hexadecimal representation. \n :return: upper_part: integer """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:STS:UPARt?')returntrim_str_response(response)
[docs]defset_upart(self,upper_part:str)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:STS:UPARt \n Snippet: driver.source.bb.huwb.sts.set_upart(upper_part = rawAbc) \n Sets the upper part of the V value. The value is a 96-bit value in hexadecimal representation. \n :param upper_part: integer """param=Conversions.value_to_str(upper_part)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:STS:UPARt {param}')
defclone(self)->'StsCls':"""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=StsCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group