[docs]classRabCls:"""Rab commands group definition. 5 total commands, 1 Subgroups, 4 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("rab",core,parent)@propertydefmac(self):"""mac commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_mac'):from.MacimportMacClsself._mac=MacCls(self._core,self._cmd_group)returnself._mac# noinspection PyTypeChecker
[docs]defget_length(self)->enums.EvdoRabLen:"""SCPI: [SOURce<HW>]:BB:EVDO:ANETwork:RAB:LENGth \n Snippet: value: enums.EvdoRabLen = driver.source.bb.evdo.anetwork.rab.get_length() \n Sets the duration (in slots) of a Reverse Activity bit. Note: This parameter is available for physical layer subtype 0&1 only. \n :return: length: RL8| RL16| RL32| RL64 """response=self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:ANETwork:RAB:LENGth?')returnConversions.str_to_scalar_enum(response,enums.EvdoRabLen)
[docs]defset_length(self,length:enums.EvdoRabLen)->None:"""SCPI: [SOURce<HW>]:BB:EVDO:ANETwork:RAB:LENGth \n Snippet: driver.source.bb.evdo.anetwork.rab.set_length(length = enums.EvdoRabLen.RL16) \n Sets the duration (in slots) of a Reverse Activity bit. Note: This parameter is available for physical layer subtype 0&1 only. \n :param length: RL8| RL16| RL32| RL64 """param=Conversions.enum_scalar_to_str(length,enums.EvdoRabLen)self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:ANETwork:RAB:LENGth {param}')
[docs]defget_level(self)->float:"""SCPI: [SOURce<HW>]:BB:EVDO:ANETwork:RAB:LEVel \n Snippet: value: float = driver.source.bb.evdo.anetwork.rab.get_level() \n Sets the power within the MAC block for the Reverse Activity channel. \n :return: level: float Range: -25 to -7 """response=self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:ANETwork:RAB:LEVel?')returnConversions.str_to_float(response)
[docs]defset_level(self,level:float)->None:"""SCPI: [SOURce<HW>]:BB:EVDO:ANETwork:RAB:LEVel \n Snippet: driver.source.bb.evdo.anetwork.rab.set_level(level = 1.0) \n Sets the power within the MAC block for the Reverse Activity channel. \n :param level: float Range: -25 to -7 """param=Conversions.decimal_value_to_str(level)self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:ANETwork:RAB:LEVel {param}')
[docs]defget_offset(self)->int:"""SCPI: [SOURce<HW>]:BB:EVDO:ANETwork:RAB:OFFSet \n Snippet: value: int = driver.source.bb.evdo.anetwork.rab.get_offset() \n Sets the starting time offset of the Reverse Activity bit in slots. The command is specified in Reverse Activity Length/8 units. The RA bit starts when the following equation is satisfied: System Time mod RAB length = RAB Offset, where System Time is expressed in slots. Note: This parameter is available for physical layer subtype 0&1 only. \n :return: offset: integer Range: 0 to 7 """response=self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:ANETwork:RAB:OFFSet?')returnConversions.str_to_int(response)
[docs]defset_offset(self,offset:int)->None:"""SCPI: [SOURce<HW>]:BB:EVDO:ANETwork:RAB:OFFSet \n Snippet: driver.source.bb.evdo.anetwork.rab.set_offset(offset = 1) \n Sets the starting time offset of the Reverse Activity bit in slots. The command is specified in Reverse Activity Length/8 units. The RA bit starts when the following equation is satisfied: System Time mod RAB length = RAB Offset, where System Time is expressed in slots. Note: This parameter is available for physical layer subtype 0&1 only. \n :param offset: integer Range: 0 to 7 """param=Conversions.decimal_value_to_str(offset)self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:ANETwork:RAB:OFFSet {param}')
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:BB:EVDO:ANETwork:RAB:STATe \n Snippet: value: bool = driver.source.bb.evdo.anetwork.rab.get_state() \n Activates or deactivates the reverse activity bit (RAB) . \n :return: state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:BB:EVDO:ANETwork:RAB:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: [SOURce<HW>]:BB:EVDO:ANETwork:RAB:STATe \n Snippet: driver.source.bb.evdo.anetwork.rab.set_state(state = False) \n Activates or deactivates the reverse activity bit (RAB) . \n :param state: 1| ON| 0| OFF """param=Conversions.bool_to_str(state)self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:ANETwork:RAB:STATe {param}')
defclone(self)->'RabCls':"""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=RabCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group