Source code for RsFsw.Implementations.Applications.K70_Vsa.Trace.Iq.Wband.Mbwidth

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MbwidthCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, max_bandwidth: float) -> None: """ ``TRACe:IQ:WBANd:MBWidth`` \n Snippet: ``driver.applications.k70Vsa.trace.iq.wband.mbwidth.set(max_bandwidth = 1.0)`` \n Defines the maximum analysis bandwidth. Any value can be specified; the next higher fixed bandwidth is used. Defining a value other than 'MAX' is useful if you want to specify the sample rate directly and at the same time, ensure a minimum bandwidth is available. (See 'Sample rate and maximum usable I/Q bandwidth for RF input') . :param max_bandwidth: 80 MHz Restricts the analysis bandwidth to a maximum of 80 MHz. The bandwidth extension options greater than 160 MHz are disabled. method ``RsFsw.applications.k17Mcgd.trace.iq.wband.state.set()`` is set to OFF. 160 MHz Restricts the analysis bandwidth to a maximum of 160 MHz. The bandwidth extension option R&S FSW-B320 is deactivated. (Not available or required if other bandwidth extension options larger than 320 MHz are installed.) method ``RsFsw.applications.k17Mcgd.trace.iq.wband.state.set()`` is set to ON. 1200 MHz | 500 MHz | 320 MHz | MAX All installed bandwidth extension options are activated. The currently available maximum bandwidth is allowed. (See 'Sample rate and maximum usable I/Q bandwidth for RF input') . method ``RsFsw.applications.k17Mcgd.trace.iq.wband.state.set()`` is set to ON. Unit: Hz """ param = Conversions.decimal_value_to_str(max_bandwidth) self._core.io.write(f'TRACe:IQ:WBANd:MBWidth {param}')
[docs] def get(self) -> float: """ ``TRACe:IQ:WBANd:MBWidth`` \n Snippet: ``value: float = driver.applications.k70Vsa.trace.iq.wband.mbwidth.get()`` \n Defines the maximum analysis bandwidth. Any value can be specified; the next higher fixed bandwidth is used. Defining a value other than 'MAX' is useful if you want to specify the sample rate directly and at the same time, ensure a minimum bandwidth is available. (See 'Sample rate and maximum usable I/Q bandwidth for RF input') . """ response = self._core.io.query_str(f'TRACe:IQ:WBANd:MBWidth?') return Conversions.str_to_float(response)