Source code for RsSmbv.Implementations.Source.Bb.Huwb

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HuwbCls:
	"""
	| Commands in total: 139
	| Subgroups: 13
	| Direct child commands: 12
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("huwb", core, parent)

	@property
	def clipping(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_clipping'):
			from .Clipping import ClippingCls
			self._clipping = ClippingCls(self._core, self._cmd_group)
		return self._clipping

	@property
	def clock(self):
		"""
		| Commands in total: 4
		| Subgroups: 1
		| Direct child commands: 3
		"""
		if not hasattr(self, '_clock'):
			from .Clock import ClockCls
			self._clock = ClockCls(self._core, self._cmd_group)
		return self._clock

	@property
	def fconfig(self):
		"""
		| Commands in total: 24
		| Subgroups: 5
		| Direct child commands: 17
		"""
		if not hasattr(self, '_fconfig'):
			from .Fconfig import FconfigCls
			self._fconfig = FconfigCls(self._core, self._cmd_group)
		return self._fconfig

	@property
	def filterPy(self):
		"""
		| Commands in total: 16
		| Subgroups: 1
		| Direct child commands: 2
		"""
		if not hasattr(self, '_filterPy'):
			from .FilterPy import FilterPyCls
			self._filterPy = FilterPyCls(self._core, self._cmd_group)
		return self._filterPy

	@property
	def impairments(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_impairments'):
			from .Impairments import ImpairmentsCls
			self._impairments = ImpairmentsCls(self._core, self._cmd_group)
		return self._impairments

	@property
	def macHeader(self):
		"""
		| Commands in total: 31
		| Subgroups: 0
		| Direct child commands: 31
		"""
		if not hasattr(self, '_macHeader'):
			from .MacHeader import MacHeaderCls
			self._macHeader = MacHeaderCls(self._core, self._cmd_group)
		return self._macHeader

	@property
	def phr(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_phr'):
			from .Phr import PhrCls
			self._phr = PhrCls(self._core, self._cmd_group)
		return self._phr

	@property
	def setting(self):
		"""
		| Commands in total: 4
		| Subgroups: 0
		| Direct child commands: 4
		"""
		if not hasattr(self, '_setting'):
			from .Setting import SettingCls
			self._setting = SettingCls(self._core, self._cmd_group)
		return self._setting

	@property
	def sfd(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_sfd'):
			from .Sfd import SfdCls
			self._sfd = SfdCls(self._core, self._cmd_group)
		return self._sfd

	@property
	def symbolRate(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_symbolRate'):
			from .SymbolRate import SymbolRateCls
			self._symbolRate = SymbolRateCls(self._core, self._cmd_group)
		return self._symbolRate

	@property
	def sts(self):
		"""
		| Commands in total: 7
		| Subgroups: 1
		| Direct child commands: 6
		"""
		if not hasattr(self, '_sts'):
			from .Sts import StsCls
			self._sts = StsCls(self._core, self._cmd_group)
		return self._sts

	@property
	def trigger(self):
		"""
		| Commands in total: 30
		| Subgroups: 7
		| Direct child commands: 5
		"""
		if not hasattr(self, '_trigger'):
			from .Trigger import TriggerCls
			self._trigger = TriggerCls(self._core, self._cmd_group)
		return self._trigger

	@property
	def waveform(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_waveform'):
			from .Waveform import WaveformCls
			self._waveform = WaveformCls(self._core, self._cmd_group)
		return self._waveform

	# noinspection PyTypeChecker
[docs] def get_asl(self) -> enums.HrpUwbActSegmentLength: """ ``[SOURce<HW>]:BB:HUWB:ASL`` \n Snippet: ``value: enums.HrpUwbActSegmentLength = driver.source.bb.huwb.get_asl()`` \n Sets the active segment length. :return: act_seg_length: ASL_16 | ASL_32 | ASL_64 | ASL_128 | ASL_256 | ASL_512 | ASL_1024 | ASL_2048 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:ASL?') return Conversions.str_to_scalar_enum(response, enums.HrpUwbActSegmentLength)
[docs] def set_asl(self, act_seg_length: enums.HrpUwbActSegmentLength) -> None: """ ``[SOURce<HW>]:BB:HUWB:ASL`` \n Snippet: ``driver.source.bb.huwb.set_asl(act_seg_length = enums.HrpUwbActSegmentLength.ASL_1024)`` \n Sets the active segment length. :param act_seg_length: ASL_16 | ASL_32 | ASL_64 | ASL_128 | ASL_256 | ASL_512 | ASL_1024 | ASL_2048 """ param = Conversions.enum_scalar_to_str(act_seg_length, enums.HrpUwbActSegmentLength) self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:ASL {param}')
# noinspection PyTypeChecker
[docs] def get_asn(self) -> enums.HrpUwbActSegmentNum: """ ``[SOURce<HW>]:BB:HUWB:ASN`` \n Snippet: ``value: enums.HrpUwbActSegmentNum = driver.source.bb.huwb.get_asn()`` \n Sets the number of active segments. :return: acg_seg_number: ASN_1 | ASN_2 | ASN_3 | ASN_4 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:ASN?') return Conversions.str_to_scalar_enum(response, enums.HrpUwbActSegmentNum)
[docs] def set_asn(self, acg_seg_number: enums.HrpUwbActSegmentNum) -> None: """ ``[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. :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] def get_bandwidth(self) -> float: """ ``[SOURce<HW>]:BB:HUWB:BWIDth`` \n Snippet: ``value: float = driver.source.bb.huwb.get_bandwidth()`` \n Queries the channel bandwidth. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:BWIDth?') return Conversions.str_to_float(response)
# noinspection PyTypeChecker
[docs] def get_cccl(self) -> enums.HrpUwbConvConsLen: """ ``[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. :return: cccl: CL3 | CL7 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:CCCL?') return Conversions.str_to_scalar_enum(response, enums.HrpUwbConvConsLen)
[docs] def set_cccl(self, cccl: enums.HrpUwbConvConsLen) -> None: """ ``[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. :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] def get_cnumber(self) -> int: """ ``[SOURce<HW>]:BB:HUWB:CNUMber`` \n Snippet: ``value: int = driver.source.bb.huwb.get_cnumber()`` \n Sets the channel number. :return: channel_number: integer Range: 0 to 15 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:CNUMber?') return Conversions.str_to_int(response)
[docs] def set_cnumber(self, channel_number: int) -> None: """ ``[SOURce<HW>]:BB:HUWB:CNUMber`` \n Snippet: ``driver.source.bb.huwb.set_cnumber(channel_number = 1)`` \n Sets the channel number. :param channel_number: integer Range: 0 to 15 """ param = Conversions.decimal_value_to_str(channel_number) self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:CNUMber {param}')
[docs] def get_f_2_ms(self) -> bool: """ ``[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. :return: fixed_2_ms_frame: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:F2MS?') return Conversions.str_to_bool(response)
[docs] def set_f_2_ms(self, fixed_2_ms_frame: bool) -> None: """ ``[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. :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] def get_iinterval(self) -> float: """ ``[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. :return: iinterval: float Range: 0 to 1000000, Unit: us """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:IINTerval?') return Conversions.str_to_float(response)
[docs] def set_iinterval(self, iinterval: float) -> None: """ ``[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. :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] def get_oba(self) -> enums.ZigbeeOperatingBand: """ ``[SOURce<HW>]:BB:HUWB:OBA`` \n Snippet: ``value: enums.ZigbeeOperatingBand = driver.source.bb.huwb.get_oba()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:OBA?') return Conversions.str_to_scalar_enum(response, enums.ZigbeeOperatingBand)
[docs] def set_oba(self, oper_band: enums.ZigbeeOperatingBand) -> None: """ ``[SOURce<HW>]:BB:HUWB:OBA`` \n Snippet: ``driver.source.bb.huwb.set_oba(oper_band = enums.ZigbeeOperatingBand.OB2380)`` \n 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] def preset(self) -> None: """ ``[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. """ self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:PRESet')
[docs] def preset_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``[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. 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. :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] def get_slength(self) -> int: """ ``[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) . :return: slength: integer Range: 1 to 1024 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:SLENgth?') return Conversions.str_to_int(response)
[docs] def set_slength(self, slength: int) -> None: """ ``[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) . :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] def get_state(self) -> bool: """ ``[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. :return: hrp_uwb_state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, hrp_uwb_state: bool) -> None: """ ``[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. :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}')
# noinspection PyTypeChecker
[docs] def get_std(self) -> enums.HrpUwbMode: """ ``[SOURce<HW>]:BB:HUWB:STD`` \n Snippet: ``value: enums.HrpUwbMode = driver.source.bb.huwb.get_std()`` \n Sets the HRP UWB mode. :return: mode: NONHRP | HPRF | BPRF NONHRP Enables HRP non-ERDEV mode. BPRF Enables HRP-ERDEV base pulse repetition frequency (BPRF) mode. HPRF Enables HRP-ERDEV higher pulse repetition frequency (HPRF) mode. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:HUWB:STD?') return Conversions.str_to_scalar_enum(response, enums.HrpUwbMode)
[docs] def set_std(self, mode: enums.HrpUwbMode) -> None: """ ``[SOURce<HW>]:BB:HUWB:STD`` \n Snippet: ``driver.source.bb.huwb.set_std(mode = enums.HrpUwbMode.BPRF)`` \n Sets the HRP UWB mode. :param mode: NONHRP | HPRF | BPRF NONHRP Enables HRP non-ERDEV mode. BPRF Enables HRP-ERDEV base pulse repetition frequency (BPRF) mode. HPRF Enables HRP-ERDEV higher pulse repetition frequency (HPRF) mode. """ param = Conversions.enum_scalar_to_str(mode, enums.HrpUwbMode) self._core.io.write(f'SOURce<HwInstance>:BB:HUWB:STD {param}')
def clone(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) return new_group