from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MsetCls:
"""
| Commands in total: 13
| Subgroups: 0
| Direct child commands: 13
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mset", core, parent)
[docs]
def get_boutput(self) -> bool:
"""
``[SOURce<HW>]:BB:NFC:MSET:BOUTput`` \n
Snippet: ``value: bool = driver.source.bb.nfc.mset.get_boutput()`` \n
When activated the signal at the baseband output changes between 0% and 100% voltage to be able to control the Reference
Listeners.
:return: boutput: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:BOUTput?')
return Conversions.str_to_bool(response)
[docs]
def set_boutput(self, boutput: bool) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:BOUTput`` \n
Snippet: ``driver.source.bb.nfc.mset.set_boutput(boutput = False)`` \n
When activated the signal at the baseband output changes between 0% and 100% voltage to be able to control the Reference
Listeners.
:param boutput: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(boutput)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:BOUTput {param}')
[docs]
def get_brate(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:BRATe`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_brate()`` \n
Returns the resulting bitrate for the current settings.
:return: brate: float
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:BRATe?')
return Conversions.str_to_float(response)
[docs]
def get_imodulation(self) -> bool:
"""
``[SOURce<HW>]:BB:NFC:MSET:IMODulation`` \n
Snippet: ``value: bool = driver.source.bb.nfc.mset.get_imodulation()`` \n
When selected, inverse modulation will be used.
:return: imodulation: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:IMODulation?')
return Conversions.str_to_bool(response)
[docs]
def set_imodulation(self, imodulation: bool) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:IMODulation`` \n
Snippet: ``driver.source.bb.nfc.mset.set_imodulation(imodulation = False)`` \n
When selected, inverse modulation will be used.
:param imodulation: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(imodulation)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:IMODulation {param}')
[docs]
def get_mdepth(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:MDEPth`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_mdepth()`` \n
Sets the modulation depth in %.
:return: mdepth: float Range: 0 to 100
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:MDEPth?')
return Conversions.str_to_float(response)
[docs]
def set_mdepth(self, mdepth: float) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:MDEPth`` \n
Snippet: ``driver.source.bb.nfc.mset.set_mdepth(mdepth = 1.0)`` \n
Sets the modulation depth in %.
:param mdepth: float Range: 0 to 100
"""
param = Conversions.decimal_value_to_str(mdepth)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:MDEPth {param}')
[docs]
def get_mindex(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:MINDex`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_mindex()`` \n
Defines the signal's modulation index in %.
:return: mindex: float Range: 0 to 100
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:MINDex?')
return Conversions.str_to_float(response)
[docs]
def set_mindex(self, mindex: float) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:MINDex`` \n
Snippet: ``driver.source.bb.nfc.mset.set_mindex(mindex = 1.0)`` \n
Defines the signal's modulation index in %.
:param mindex: float Range: 0 to 100
"""
param = Conversions.decimal_value_to_str(mindex)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:MINDex {param}')
[docs]
def get_osrise(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:OSRise`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_osrise()`` \n
Determines the size of the overshoot after the rising slope.
:return: orise: float Range: 0 to 42
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:OSRise?')
return Conversions.str_to_float(response)
[docs]
def set_osrise(self, orise: float) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:OSRise`` \n
Snippet: ``driver.source.bb.nfc.mset.set_osrise(orise = 1.0)`` \n
Determines the size of the overshoot after the rising slope.
:param orise: float Range: 0 to 42
"""
param = Conversions.decimal_value_to_str(orise)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:OSRise {param}')
[docs]
def get_rcurve(self) -> bool:
"""
``[SOURce<HW>]:BB:NFC:MSET:RCURve`` \n
Snippet: ``value: bool = driver.source.bb.nfc.mset.get_rcurve()`` \n
When activated an 'RLC curve' is applied to the signal, otherwise a linear ramp is used.
:return: rcurve: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:RCURve?')
return Conversions.str_to_bool(response)
[docs]
def set_rcurve(self, rcurve: bool) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:RCURve`` \n
Snippet: ``driver.source.bb.nfc.mset.set_rcurve(rcurve = False)`` \n
When activated an 'RLC curve' is applied to the signal, otherwise a linear ramp is used.
:param rcurve: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(rcurve)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:RCURve {param}')
[docs]
def get_slope(self) -> bool:
"""
``[SOURce<HW>]:BB:NFC:MSET:SLOPe`` \n
Snippet: ``value: bool = driver.source.bb.nfc.mset.get_slope()`` \n
Determines the transition between the modulated and unmodulated parts (Edge/Slope) .
:return: eslope: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:SLOPe?')
return Conversions.str_to_bool(response)
[docs]
def set_slope(self, eslope: bool) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:SLOPe`` \n
Snippet: ``driver.source.bb.nfc.mset.set_slope(eslope = False)`` \n
Determines the transition between the modulated and unmodulated parts (Edge/Slope) .
:param eslope: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(eslope)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:SLOPe {param}')
[docs]
def get_symbol_rate(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:SRATe`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_symbol_rate()`` \n
Enters the sample rate, i.e. the time resolution of the generated signal.
:return: srate: float Range: depends on protocol mode to dynamic
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:SRATe?')
return Conversions.str_to_float(response)
[docs]
def set_symbol_rate(self, srate: float) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:SRATe`` \n
Snippet: ``driver.source.bb.nfc.mset.set_symbol_rate(srate = 1.0)`` \n
Enters the sample rate, i.e. the time resolution of the generated signal.
:param srate: float Range: depends on protocol mode to dynamic
"""
param = Conversions.decimal_value_to_str(srate)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:SRATe {param}')
[docs]
def get_tfall(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:TFALl`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_tfall()`` \n
Defines the fall time (90 to 5 %) in us.
:return: tfall: float Range: 0 to dynamic
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:TFALl?')
return Conversions.str_to_float(response)
[docs]
def set_tfall(self, tfall: float) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:TFALl`` \n
Snippet: ``driver.source.bb.nfc.mset.set_tfall(tfall = 1.0)`` \n
Defines the fall time (90 to 5 %) in us.
:param tfall: float Range: 0 to dynamic
"""
param = Conversions.decimal_value_to_str(tfall)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:TFALl {param}')
[docs]
def get_tlow(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:TLOW`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_tlow()`` \n
Defines the signals low time (below 5%) in us.
:return: tlow: float Range: 0.4 to dynamic
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:TLOW?')
return Conversions.str_to_float(response)
[docs]
def set_tlow(self, tlow: float) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:TLOW`` \n
Snippet: ``driver.source.bb.nfc.mset.set_tlow(tlow = 1.0)`` \n
Defines the signals low time (below 5%) in us.
:param tlow: float Range: 0.4 to dynamic
"""
param = Conversions.decimal_value_to_str(tlow)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:TLOW {param}')
[docs]
def get_trise(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:TRISe`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_trise()`` \n
Defines the signals rise time (5 to 90 %) in us.
:return: trise: float Range: dynamic to dynamic
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:TRISe?')
return Conversions.str_to_float(response)
[docs]
def set_trise(self, trise: float) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:TRISe`` \n
Snippet: ``driver.source.bb.nfc.mset.set_trise(trise = 1.0)`` \n
Defines the signals rise time (5 to 90 %) in us.
:param trise: float Range: dynamic to dynamic
"""
param = Conversions.decimal_value_to_str(trise)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:TRISe {param}')
[docs]
def get_usfall(self) -> float:
"""
``[SOURce<HW>]:BB:NFC:MSET:USFall`` \n
Snippet: ``value: float = driver.source.bb.nfc.mset.get_usfall()`` \n
Determines the size of the undershoot (ringing) after the falling slope.
:return: ofall: float Range: 0 to 42
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NFC:MSET:USFall?')
return Conversions.str_to_float(response)
[docs]
def set_usfall(self, ofall: float) -> None:
"""
``[SOURce<HW>]:BB:NFC:MSET:USFall`` \n
Snippet: ``driver.source.bb.nfc.mset.set_usfall(ofall = 1.0)`` \n
Determines the size of the undershoot (ringing) after the falling slope.
:param ofall: float Range: 0 to 42
"""
param = Conversions.decimal_value_to_str(ofall)
self._core.io.write(f'SOURce<HwInstance>:BB:NFC:MSET:USFall {param}')