[docs]defget_asn(self)->enums.HrpUwbActSegmentNum:"""SCPI: [SOURce<HW>]:BB:HUWB:ASN \n Snippet: value: enums.HrpUwbActSegmentNum = driver.source.bb.huwb.get_asn() \n Sets the number of active segments. \n :return: acg_seg_number: ASN_1| ASN_2| ASN_3| ASN_4 """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:ASN?')returnConversions.str_to_scalar_enum(response,enums.HrpUwbActSegmentNum)
[docs]defset_asn(self,acg_seg_number:enums.HrpUwbActSegmentNum)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:ASN \n Snippet: driver.source.bb.huwb.set_asn(acg_seg_number = enums.HrpUwbActSegmentNum.ASN_1) \n Sets the number of active segments. \n :param acg_seg_number: ASN_1| ASN_2| ASN_3| ASN_4 """param=Conversions.enum_scalar_to_str(acg_seg_number,enums.HrpUwbActSegmentNum)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:ASN {param}')
[docs]defget_bandwidth(self)->float:"""SCPI: [SOURce<HW>]:BB:HUWB:BWIDth \n Snippet: value: float = driver.source.bb.huwb.get_bandwidth() \n Queries the channel bandwidth. \n :return: hrp_uwb_band_width: No help available """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:BWIDth?')returnConversions.str_to_float(response)
# noinspection PyTypeChecker
[docs]defget_cccl(self)->enums.HrpUwbConvConsLen:"""SCPI: [SOURce<HW>]:BB:HUWB:CCCL \n Snippet: value: enums.HrpUwbConvConsLen = driver.source.bb.huwb.get_cccl() \n Sets the constraint length of the convolutional code. \n :return: cccl: CL3| CL7 """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:CCCL?')returnConversions.str_to_scalar_enum(response,enums.HrpUwbConvConsLen)
[docs]defset_cccl(self,cccl:enums.HrpUwbConvConsLen)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:CCCL \n Snippet: driver.source.bb.huwb.set_cccl(cccl = enums.HrpUwbConvConsLen.CL3) \n Sets the constraint length of the convolutional code. \n :param cccl: CL3| CL7 """param=Conversions.enum_scalar_to_str(cccl,enums.HrpUwbConvConsLen)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:CCCL {param}')
[docs]defget_cnumber(self)->int:"""SCPI: [SOURce<HW>]:BB:HUWB:CNUMber \n Snippet: value: int = driver.source.bb.huwb.get_cnumber() \n Sets the channel number. \n :return: channel_number: integer Range: 0 to 15 """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:CNUMber?')returnConversions.str_to_int(response)
[docs]defget_f_2_ms(self)->bool:"""SCPI: [SOURce<HW>]:BB:HUWB:F2MS \n Snippet: value: bool = driver.source.bb.huwb.get_f_2_ms() \n Sets the frame length of a generated waveform shorter than 2 ms to a fixed value of 2 ms. If activated, the idle interval is set to 0.0 us by default. \n :return: fixed_2_ms_frame: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:F2MS?')returnConversions.str_to_bool(response)
[docs]defset_f_2_ms(self,fixed_2_ms_frame:bool)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:F2MS \n Snippet: driver.source.bb.huwb.set_f_2_ms(fixed_2_ms_frame = False) \n Sets the frame length of a generated waveform shorter than 2 ms to a fixed value of 2 ms. If activated, the idle interval is set to 0.0 us by default. \n :param fixed_2_ms_frame: 1| ON| 0| OFF """param=Conversions.bool_to_str(fixed_2_ms_frame)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:F2MS {param}')
[docs]defget_iinterval(self)->float:"""SCPI: [SOURce<HW>]:BB:HUWB:IINTerval \n Snippet: value: float = driver.source.bb.huwb.get_iinterval() \n Sets the time of the interval separating two frames. \n :return: iinterval: float Range: 0 to 1000000, Unit: us """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:IINTerval?')returnConversions.str_to_float(response)
[docs]defset_iinterval(self,iinterval:float)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:IINTerval \n Snippet: driver.source.bb.huwb.set_iinterval(iinterval = 1.0) \n Sets the time of the interval separating two frames. \n :param iinterval: float Range: 0 to 1000000, Unit: us """param=Conversions.decimal_value_to_str(iinterval)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:IINTerval {param}')
# noinspection PyTypeChecker
[docs]defget_oba(self)->enums.ZigbeeOperatingBand:"""SCPI: [SOURce<HW>]:BB:HUWB:OBA \n Snippet: value: enums.ZigbeeOperatingBand = driver.source.bb.huwb.get_oba() \n No command help available \n :return: oper_band: No help available """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:OBA?')returnConversions.str_to_scalar_enum(response,enums.ZigbeeOperatingBand)
[docs]defset_oba(self,oper_band:enums.ZigbeeOperatingBand)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:OBA \n Snippet: driver.source.bb.huwb.set_oba(oper_band = enums.ZigbeeOperatingBand.OB2380) \n No command help available \n :param oper_band: No help available """param=Conversions.enum_scalar_to_str(oper_band,enums.ZigbeeOperatingBand)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:OBA {param}')
[docs]defpreset(self)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:PRESet \n Snippet: driver.source.bb.huwb.preset() \n Sets the parameters of the digital standard to their default values (*RST values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:HUWB:STATe. \n """self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:PRESet')
[docs]defpreset_with_opc(self,opc_timeout_ms:int=-1)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:PRESet \n Snippet: driver.source.bb.huwb.preset_with_opc() \n Sets the parameters of the digital standard to their default values (*RST values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:HUWB:STATe. \n Same as preset, but waits for the operation to complete before continuing further. Use the RsSmbv.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call."""self._core.io.write_with_opc(f'SOURce<HwInstance>:BB:HUWB:PRESet',opc_timeout_ms)
[docs]defget_slength(self)->int:"""SCPI: [SOURce<HW>]:BB:HUWB:SLENgth \n Snippet: value: int = driver.source.bb.huwb.get_slength() \n Sets the sequence length of the signal in number of frames. The signal is calculated in advance and output in the arbitrary waveform generator. The maximum number of frames is calculated as follows: Max. No. of Frames = Arbitrary waveform memory size/(sampling rate x 10 ms) . \n :return: slength: integer Range: 1 to 1024 """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:SLENgth?')returnConversions.str_to_int(response)
[docs]defset_slength(self,slength:int)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:SLENgth \n Snippet: driver.source.bb.huwb.set_slength(slength = 1) \n Sets the sequence length of the signal in number of frames. The signal is calculated in advance and output in the arbitrary waveform generator. The maximum number of frames is calculated as follows: Max. No. of Frames = Arbitrary waveform memory size/(sampling rate x 10 ms) . \n :param slength: integer Range: 1 to 1024 """param=Conversions.decimal_value_to_str(slength)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:SLENgth {param}')
[docs]defget_state(self)->bool:"""SCPI: [SOURce<HW>]:BB:HUWB:STATe \n Snippet: value: bool = driver.source.bb.huwb.get_state() \n Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path. \n :return: hrp_uwb_state: 1| ON| 0| OFF """response=self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,hrp_uwb_state:bool)->None:"""SCPI: [SOURce<HW>]:BB:HUWB:STATe \n Snippet: driver.source.bb.huwb.set_state(hrp_uwb_state = False) \n Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path. \n :param hrp_uwb_state: 1| ON| 0| OFF """param=Conversions.bool_to_str(hrp_uwb_state)self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:STATe {param}')
defclone(self)->'HuwbCls':"""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=HuwbCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group